[gnome-system-tools/users-ui-redesign] Add support for GtkBuilder automated signals connection



commit d92ded7fcd51374752bc9cddba208744802a7016
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sun Nov 1 17:19:29 2009 +0100

    Add support for GtkBuilder automated signals connection
    
    All the tools can now set signals in the interface file instead of using a static table in their main.c.

 configure.in            |    1 +
 src/common/gst-dialog.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 9d1d7a8..3e9064b 100644
--- a/configure.in
+++ b/configure.in
@@ -77,6 +77,7 @@ dnl =====================================================
 
 PKG_CHECK_MODULES(GST_DEPENDS,[
 			   gtk+-2.0 >= $GTK_REQUIRED
+			   gmodule-export-2.0
 			   gconf-2.0 >= $GCONF_REQUIRED
 			   liboobs-1 >= $LIBOOBS_REQUIRED
 			   system-tools-backends-2.0 >= $STB_REQUIRED
diff --git a/src/common/gst-dialog.c b/src/common/gst-dialog.c
index 10fe7ab..13d9692 100644
--- a/src/common/gst-dialog.c
+++ b/src/common/gst-dialog.c
@@ -203,6 +203,7 @@ gst_dialog_constructor (GType                  type,
 			/* no point in continuing */
 			exit (-1);
 		}
+		gtk_builder_connect_signals (priv->builder, NULL);
 		priv->child = gst_dialog_get_widget (dialog, priv->widget_name);
 		toplevel = gtk_widget_get_toplevel (priv->child);
 



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