diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2006-03-08 17:22:14 +0000 |
---|---|---|
committer | Carlos Garnacho <carlosg@src.gnome.org> | 2006-03-08 17:22:14 +0000 |
commit | 9fc7bdc3749e23cc84cd51d0d61ab4f4fd471c26 (patch) | |
tree | 3b858aed5b2a56081f4f775462d03fa7b2a1a18f /tests/testnotebookdnd.c | |
parent | 6b661b53e11a968b57debf8df343e0bb75598550 (diff) | |
download | gtk+-9fc7bdc3749e23cc84cd51d0d61ab4f4fd471c26.tar.gz |
Rename ::tab-added and ::tab-removed signals to ::page-added and
2006-03-08 Carlos Garnacho <carlosg@gnome.org>
Rename ::tab-added and ::tab-removed signals to ::page-added and
::page-removed for not conflicting with other tab reordering
implementations. Fixes bug #333743.
Also rename ::tab-reordered to ::page-reordered, and emit it in
gtk_notebook_reorder_child () to make it behave consistently with the
other two signals.
* gtk/gtknotebook.c (gtk_notebook_class_init): rename signals.
(gtk_notebook_reorder_tab)
(gtk_notebook_button_release)
(gtk_notebook_remove)
(gtk_notebook_real_insert_page): emit respectively renamed signals
(gtk_notebook_reorder_child): also emit ::page-reordered here
* tests/testnotebookdnd.c: use renamed signals
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r-- | tests/testnotebookdnd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index 23b6354378..4c48af5649 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -89,9 +89,9 @@ window_creation_function (GtkNotebook *source_notebook, } static void -on_tab_reordered (GtkNotebook *notebook, GtkWidget *child, guint page_num, gpointer data) +on_page_reordered (GtkNotebook *notebook, GtkWidget *child, guint page_num, gpointer data) { - g_print ("tab %d reordered\n", page_num); + g_print ("page %d reordered\n", page_num); } static GtkWidget* @@ -129,8 +129,8 @@ create_notebook (gchar **labels, labels++; } - g_signal_connect (GTK_NOTEBOOK (notebook), "tab-reordered", - G_CALLBACK (on_tab_reordered), NULL); + g_signal_connect (GTK_NOTEBOOK (notebook), "page-reordered", + G_CALLBACK (on_page_reordered), NULL); return notebook; } |