aboutsummaryrefslogtreecommitdiff
path: root/src/main/gnunet-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/gnunet-gtk.c')
-rw-r--r--src/main/gnunet-gtk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/gnunet-gtk.c b/src/main/gnunet-gtk.c
index 842b15ef..0ce872e3 100644
--- a/src/main/gnunet-gtk.c
+++ b/src/main/gnunet-gtk.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet 2 This file is part of GNUnet
3 (C) 2012, 2013 Christian Grothoff (and other contributing authors) 3 (C) 2012-2014 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -275,6 +275,9 @@ plug (const char *container,
275 n = GTK_NOTEBOOK (get_object ("gnunet_gtk_notebook")); 275 n = GTK_NOTEBOOK (get_object ("gnunet_gtk_notebook"));
276 v = GTK_WIDGET (get_object (container)); 276 v = GTK_WIDGET (get_object (container));
277 l = gtk_notebook_get_tab_label (n, v); 277 l = gtk_notebook_get_tab_label (n, v);
278 /* remove old tab, replace with new tab; effectively,
279 we preserve the label; but GtkNotebook does not
280 allow us to directly substitute the body of the tab */
278 g_object_ref (l); 281 g_object_ref (l);
279 gtk_notebook_remove_page (n, 282 gtk_notebook_remove_page (n,
280 gtk_notebook_page_num (n, v)); 283 gtk_notebook_page_num (n, v));