summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-27 17:11:08 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-27 17:11:08 -0700
commit79a866f5b4d51efc15286059ac7e4322b6008eb3 (patch)
tree68cfcafeb97735ecea1d2437d7e412ba6eeef5b8 /gtk-gui.c
parentfda230235ce8879736803dc9e0ae918ce471201f (diff)
downloadsubsurface-79a866f5b4d51efc15286059ac7e4322b6008eb3.tar.gz
Linus would like to be less on the bleeding edge of Gtk+
So we go back to the old interfaces to identify the notebook as part of one group - the one that was just recently deprecated Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 701e8fe46..140129f60 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -460,8 +460,8 @@ static void switch_page(GtkNotebook *notebook, gint arg1, gpointer user_data)
repaint_dive();
}
-static const char notebook_name[] = "123";
-
+static const char notebook_group[] = "123";
+#define GRP_ID ((void *)notebook_group)
typedef struct {
char *name;
GtkWidget *widget;
@@ -500,8 +500,8 @@ static GtkNotebook *create_new_notebook_window(GtkNotebook *source,
gtk_container_add(GTK_CONTAINER(win), vbox);
notebook = gtk_notebook_new();
+ gtk_notebook_set_group(GTK_NOTEBOOK(notebook), GRP_ID);
gtk_widget_set_name(notebook, nbdp->name);
- gtk_notebook_set_group_name(GTK_NOTEBOOK(notebook), notebook_name);
gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 6);
gtk_widget_set_size_request(notebook, 450, 350);
@@ -598,7 +598,7 @@ void init_ui(int argc, char **argv)
/* Notebook for dive info vs profile vs .. */
notebook = gtk_notebook_new();
gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 6);
- gtk_notebook_set_group_name(GTK_NOTEBOOK(notebook), notebook_name);
+ gtk_notebook_set_group(GTK_NOTEBOOK(notebook), GRP_ID);
g_signal_connect(notebook, "create-window", G_CALLBACK(create_new_notebook_window), NULL);
gtk_drag_dest_set(notebook, GTK_DEST_DEFAULT_ALL, &notebook_target, 1, GDK_ACTION_MOVE);
g_signal_connect(notebook, "drag-drop", G_CALLBACK(drag_cb), notebook);