summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlberto Garcia <agarcia@igalia.com>2010-10-08 02:37:23 +0200
committerChristian Dywan <christian@twotoasts.de>2010-10-22 18:58:47 +0200
commitd6a73fd5b0c8e30b22ed77f5ffa47bed2b506040 (patch)
treeec5ada040b78fed901983a1389101ad0cec85df6 /modules
parent56d5b454431f00ba043c289bc75f4579a6a25696 (diff)
downloadgtk+-d6a73fd5b0c8e30b22ed77f5ffa47bed2b506040.tar.gz
Assign all g_signal_connect() and friends to gulong variables
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
Diffstat (limited to 'modules')
-rw-r--r--modules/other/gail/gailcontainer.c23
-rw-r--r--modules/other/gail/gaillabel.h2
2 files changed, 7 insertions, 18 deletions
diff --git a/modules/other/gail/gailcontainer.c b/modules/other/gail/gailcontainer.c
index 8cb314a3dc..81e0c0504b 100644
--- a/modules/other/gail/gailcontainer.c
+++ b/modules/other/gail/gailcontainer.c
@@ -214,28 +214,17 @@ gail_container_real_initialize (AtkObject *obj,
gpointer data)
{
GailContainer *container = GAIL_CONTAINER (obj);
- guint handler_id;
ATK_OBJECT_CLASS (gail_container_parent_class)->initialize (obj, data);
container->children = gtk_container_get_children (GTK_CONTAINER (data));
- /*
- * We store the handler ids for these signals in case some objects
- * need to remove these handlers.
- */
- handler_id = g_signal_connect (data,
- "add",
- G_CALLBACK (gail_container_add_gtk),
- obj);
- g_object_set_data (G_OBJECT (obj), "gail-add-handler-id",
- GUINT_TO_POINTER (handler_id));
- handler_id = g_signal_connect (data,
- "remove",
- G_CALLBACK (gail_container_remove_gtk),
- obj);
- g_object_set_data (G_OBJECT (obj), "gail-remove-handler-id",
- GUINT_TO_POINTER (handler_id));
+ g_signal_connect (data, "add",
+ G_CALLBACK (gail_container_add_gtk),
+ obj);
+ g_signal_connect (data, "remove",
+ G_CALLBACK (gail_container_remove_gtk),
+ obj);
if (GTK_IS_TOOLBAR (data))
obj->role = ATK_ROLE_TOOL_BAR;
diff --git a/modules/other/gail/gaillabel.h b/modules/other/gail/gaillabel.h
index 1706aa5f3c..f1012e645c 100644
--- a/modules/other/gail/gaillabel.h
+++ b/modules/other/gail/gaillabel.h
@@ -43,7 +43,7 @@ struct _GailLabel
gint cursor_position;
gint selection_bound;
gint label_length;
- guint window_create_handler;
+ gulong window_create_handler;
gboolean has_top_level;
};