]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix preferences dialog
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 21:05:46 +0000 (14:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 21:05:46 +0000 (14:05 -0700)
Dirk took some old code when he did the merge of the newly split gui
code. Fix it up.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
gtk-gui.c

index 77cf4a9ec49edf7bd904cc9cffb9cce9ee461a8e..f60df9bf161d8565bc3c8416a29c84550e2a188d 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -155,14 +155,14 @@ static void quit(GtkWidget *w, gpointer data)
        gtk_main_quit();
 }
 
-static void create_radio(GtkWidget *dialog, const char *name, ...)
+static void create_radio(GtkWidget *vbox, const char *name, ...)
 {
        va_list args;
        GtkRadioButton *group = NULL;
        GtkWidget *box, *label;
 
        box = gtk_hbox_new(TRUE, 10);
-       gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox), box);
+       gtk_box_pack_start(GTK_BOX(vbox), box, FALSE, FALSE, 0);
 
        label = gtk_label_new(name);
        gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 0);