diff options
author | Antonio Fernandez <antonio.fernandez@aentos.es> | 2012-08-26 23:53:56 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2012-11-14 13:52:44 +0100 |
commit | 1475c67cc5552e9fa9a8e613eb7a034e489cf0d3 (patch) | |
tree | 5114eb7e08f81a68d03df2b48688ba94f03a572e /vcl/unx/gtk/window/gloactiongroup.cxx | |
parent | 3411a8a23a1cda4fecaaf3dd2b3e83082b6419d0 (diff) |
Added code for accelerators and special items.
Change-Id: Ibd62c4655d671e2920dea5140df8f481c2892fbb
Diffstat (limited to 'vcl/unx/gtk/window/gloactiongroup.cxx')
-rw-r--r-- | vcl/unx/gtk/window/gloactiongroup.cxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/vcl/unx/gtk/window/gloactiongroup.cxx b/vcl/unx/gtk/window/gloactiongroup.cxx index 443c628c8c7b..1a0e88fbd107 100644 --- a/vcl/unx/gtk/window/gloactiongroup.cxx +++ b/vcl/unx/gtk/window/gloactiongroup.cxx @@ -70,7 +70,7 @@ static void g_lo_action_init (GLOAction *action) { action->item = NULL; - action->enabled = FALSE; + action->enabled = TRUE; action->parameter_type = NULL; action->state_type = NULL; action->state_hint = NULL; @@ -84,25 +84,17 @@ g_lo_action_finalize (GObject *object) action->item = NULL; - if (action->parameter_type) { + if (action->parameter_type) g_variant_type_free (action->parameter_type); - action->parameter_type = NULL; - } - if (action->state_type) { + if (action->state_type) g_variant_type_free (action->state_type); - action->state_type = NULL; - } - if (action->state_hint) { + if (action->state_hint) g_variant_unref (action->state_hint); - action->state_hint = NULL; - } - if (action->state) { + if (action->state) g_variant_unref (action->state); - action->state = NULL; - } G_OBJECT_CLASS (g_lo_action_parent_class)->finalize (object); } |