[glade/glade-3-18] GladePreviewer: ignore signal connections to avoid warnings about missing symbols.
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade/glade-3-18] GladePreviewer: ignore signal connections to avoid warnings about missing symbols.
- Date: Wed, 7 May 2014 18:46:21 +0000 (UTC)
commit 2656b6fa8fe4bdef0502897f590d6b5085a55adf
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]