summaryrefslogtreecommitdiff
path: root/tests/testnotebookdnd.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-09-24 11:13:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-09-24 11:13:30 -0400
commit3c19eea34b192ac4a4a8bf22506cf29360cc0c2f (patch)
tree265670b104fb60861b66502585f9725a87ea3357 /tests/testnotebookdnd.c
parentb47b1428b817528b30dc6bb84d96ce85681e8aef (diff)
downloadgtk+-3c19eea34b192ac4a4a8bf22506cf29360cc0c2f.tar.gz
GtkNotebook: replace group by group_name
Dealing with bare pointers is problematic for language bindings, using interned strings is much more straightforward and more than good enough for what is needed here. http://bugzilla.gnome.org/show_bug.cgi?id=630521
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r--tests/testnotebookdnd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c
index 04a4aef5dc..6c760dbae6 100644
--- a/tests/testnotebookdnd.c
+++ b/tests/testnotebookdnd.c
@@ -79,8 +79,8 @@ window_creation_function (GtkNotebook *source_notebook,
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
notebook = gtk_notebook_new ();
- gtk_notebook_set_group (GTK_NOTEBOOK (notebook),
- gtk_notebook_get_group (source_notebook));
+ gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook),
+ gtk_notebook_get_group_name (source_notebook));
gtk_container_add (GTK_CONTAINER (window), notebook);
@@ -142,7 +142,7 @@ on_button_drag_data_received (GtkWidget *widget,
static GtkWidget*
create_notebook (gchar **labels,
- gpointer group,
+ const gchar *group,
gint packing,
GtkPositionType pos)
{
@@ -154,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 (GTK_NOTEBOOK (notebook), group);
+ gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook), group);
while (*labels)
{
@@ -184,7 +184,7 @@ create_notebook (gchar **labels,
static GtkWidget*
create_notebook_with_notebooks (gchar **labels,
- gpointer group,
+ const gchar *group,
gint packing,
GtkPositionType pos)
{
@@ -196,7 +196,7 @@ 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 (GTK_NOTEBOOK (notebook), group);
+ gtk_notebook_set_group_name (GTK_NOTEBOOK (notebook), group);
while (*labels)
{