summaryrefslogtreecommitdiff
path: root/demos/testgtk
diff options
context:
space:
mode:
authorMikael Hallendal <micke@imendio.com>2008-06-20 19:26:50 +0000
committerMikael Hallendal <hallski@src.gnome.org>2008-06-20 19:26:50 +0000
commitdf11b00daeebe46c8e0c00a352992eca343a3cf7 (patch)
treeb2620109571a1b4664ff1f8c93e3576570d64549 /demos/testgtk
parent0eba9bf8fe7777106720d78113c0520e63ec20b9 (diff)
downloadgtk+-df11b00daeebe46c8e0c00a352992eca343a3cf7.tar.gz
Replaced use of gtk_signal_connect with the g_signal_connect equivalents.
2008-06-20 Mikael Hallendal <micke@imendio.com> * tests/testthreads.c: Use g_signal_connect instead of gtk_signal_connect. * demos/testgtk/main.c: switched to use GSignal instead of GtkSignal. While the code is not built, people may still look at it. svn path=/trunk/; revision=20654
Diffstat (limited to 'demos/testgtk')
-rw-r--r--demos/testgtk/main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/demos/testgtk/main.c b/demos/testgtk/main.c
index 9c479dee61..f21c0f80a8 100644
--- a/demos/testgtk/main.c
+++ b/demos/testgtk/main.c
@@ -227,8 +227,7 @@ button_press_event_cb (GtkTreeView *tree_view,
gtk_tree_path_free (path);
}
- gtk_signal_emit_stop_by_name (GTK_OBJECT (tree_view),
- "button_press_event");
+ g_signal_stop_emission_by_name (tree_view, "button-press-event");
return TRUE;
}
@@ -329,8 +328,8 @@ create_tree (void)
gtk_tree_view_append_column (GTK_TREE_VIEW (tree_view),
GTK_TREE_VIEW_COLUMN (column));
- gtk_signal_connect (GTK_OBJECT (selection), "selection_changed", selection_cb, model);
- gtk_signal_connect (GTK_OBJECT (tree_view), "button_press_event", GTK_SIGNAL_FUNC (button_press_event_cb), model);
+ g_signal_connect (selection, "selection-changed", selection_cb, model);
+ g_signal_connect (tree_view, "button-press-event", G_CALLBACK (button_press_event_cb), model);
return tree_view;
}
@@ -347,8 +346,8 @@ main (int argc, char **argv)
gtk_init (&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_signal_connect (GTK_OBJECT (window), "destroy",
- GTK_SIGNAL_FUNC (gtk_main_quit), NULL);
+ g_signal_connect (window, "destroy",
+ G_CALLBACK (gtk_main_quit), NULL);
hbox = gtk_hbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), hbox);