[glade3/glade-3-8] Fixing action editor to disallow actions children of actions.



commit 3b687eacd3d901ca87cfc9f1176f272b9b877fd5
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu Dec 30 23:49:26 2010 +0900

    Fixing action editor to disallow actions children of actions.

 plugins/gtk+/glade-gtk.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c
index f091541..1aa65f9 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));
 	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]