[glade] GladePreviewer: ignore signal connections to avoid warnings about missing symbols.



commit 687830bac96a205437c41ed028f5a36a371710ee
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Wed May 7 15:43:29 2014 -0300

    GladePreviewer: ignore signal connections to avoid warnings about missing symbols.

 gladeui/glade-preview-template.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-preview-template.c b/gladeui/glade-preview-template.c
index 847150a..1f9cdb8 100644
--- a/gladeui/glade-preview-template.c
+++ b/gladeui/glade-preview-template.c
@@ -44,12 +44,25 @@ template_init (GTypeInstance *instance, gpointer g_class)
   gtk_widget_init_template (GTK_WIDGET (instance));
 }
 
+static void
+template_connect_function (GtkBuilder   *builder,
+                           GObject      *object,
+                           const gchar  *signal_name,
+                           const gchar  *handler_name,
+                           GObject      *connect_object,
+                           GConnectFlags flags,
+                           gpointer      data)
+{
+  /* Ignore signal connections */
+}
+
 /* Need to associate the class with a template */
 static void
 template_class_init (gpointer g_class, gpointer user_data)
 {
   TypeData *data = user_data;
   gtk_widget_class_set_template (g_class, data->template_data);
+  gtk_widget_class_set_connect_func (g_class, template_connect_function, NULL, NULL);
 }
 
 static GQuark type_data_quark = 0;


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