summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-30 23:49:26 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-30 23:49:26 +0900
commit3b687eacd3d901ca87cfc9f1176f272b9b877fd5 (patch)
tree3dd1b725e875cb8b731991efba74f5ffde4b008a
parenta8efde750cac48713f1fd26c9be72b7f8cb44dc7 (diff)
downloadglade-3b687eacd3d901ca87cfc9f1176f272b9b877fd5.tar.gz
Fixing action editor to disallow actions children of actions.
-rw-r--r--plugins/gtk+/glade-gtk.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index f0915418..1aa65f9d 100644
--- a/plugins/gtk+/glade-gtk.c
+++ b/plugins/gtk+/glade-gtk.c
@@ -12031,8 +12031,6 @@ glade_gtk_action_child_selected (GladeBaseEditor *editor,
GladeWidget *gchild,
gpointer data)
{
- GObject *child = glade_widget_get_object (gchild);
-
glade_base_editor_add_label (editor, _("Action"));
glade_base_editor_add_default_properties (editor, gchild);
@@ -12041,6 +12039,15 @@ glade_gtk_action_child_selected (GladeBaseEditor *editor,
glade_base_editor_add_editable (editor, gchild, GLADE_PAGE_GENERAL);
}
+static gboolean
+glade_gtk_action_move_child (GladeBaseEditor *editor,
+ GladeWidget *gparent,
+ GladeWidget *gchild,
+ gpointer data)
+{
+ return FALSE;
+}
+
static void
glade_gtk_action_launch_editor (GObject *action)
{
@@ -12063,6 +12070,7 @@ glade_gtk_action_launch_editor (GObject *action)
NULL);
g_signal_connect (editor, "child-selected", G_CALLBACK (glade_gtk_action_child_selected), NULL);
+ g_signal_connect (editor, "move-child", G_CALLBACK (glade_gtk_action_move_child), NULL);
gtk_widget_show (GTK_WIDGET (editor));