diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-05-19 05:22:00 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-05-19 05:22:00 +0000 |
commit | 40d59813227a14b8d736afe07dfdcce898f59f9b (patch) | |
tree | fd7e0d713cf8024cbc67d31d424f338fe438375a /tests/testnotebookdnd.c | |
parent | 924d6fdc4e6e920b16ef3caed41903e9a81db2cc (diff) | |
download | gtk+-40d59813227a14b8d736afe07dfdcce898f59f9b.tar.gz |
Deprecate gtk_notebook_[gs]et_group_id in favour of new functions
2007-05-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtknotebook.[hc]: Deprecate gtk_notebook_[gs]et_group_id
in favour of new functions gtk_notebook_[gs]et_group, which
takes a pointer as group identifier and makes it easier to
avoid group id collisions. (#386930, Christian Hammond)
* tests/testnotebookdnd.c: Use new grouping api.
svn path=/trunk/; revision=17873
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r-- | tests/testnotebookdnd.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c index 233d9003ef..d8364455df 100644 --- a/tests/testnotebookdnd.c +++ b/tests/testnotebookdnd.c @@ -28,10 +28,8 @@ enum { PACK_ALTERNATE }; -enum { - GROUP_A, - GROUP_B -}; +static gpointer GROUP_A = "GROUP_A"; +static gpointer GROUP_B = "GROUP_B"; gchar *tabs1 [] = { "aaaaaaaaaa", @@ -144,7 +142,7 @@ on_button_drag_data_received (GtkWidget *widget, static GtkWidget* create_notebook (gchar **labels, - gint group_id, + gpointer group, gint packing, GtkPositionType pos) { @@ -156,7 +154,7 @@ create_notebook (gchar **labels, gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), pos); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE); gtk_container_set_border_width (GTK_CONTAINER (notebook), 6); - gtk_notebook_set_group_id (GTK_NOTEBOOK (notebook), group_id); + gtk_notebook_set_group (GTK_NOTEBOOK (notebook), group); while (*labels) { @@ -186,7 +184,7 @@ create_notebook (gchar **labels, static GtkWidget* create_notebook_with_notebooks (gchar **labels, - gint group_id, + gpointer group, gint packing, GtkPositionType pos) { @@ -198,11 +196,11 @@ create_notebook_with_notebooks (gchar **labels, gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), pos); gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE); gtk_container_set_border_width (GTK_CONTAINER (notebook), 6); - gtk_notebook_set_group_id (GTK_NOTEBOOK (notebook), group_id); + gtk_notebook_set_group (GTK_NOTEBOOK (notebook), group); while (*labels) { - page = create_notebook (labels, group_id, packing, pos); + page = create_notebook (labels, group, packing, pos); title = gtk_label_new (*labels); |