diff --git a/capplets/keyboard/ChangeLog b/capplets/keyboard/ChangeLog index a4322799f..d145fd5b6 100644 --- a/capplets/keyboard/ChangeLog +++ b/capplets/keyboard/ChangeLog @@ -1,3 +1,8 @@ +2008-10-26 Jens Granseuer + + * gnome-keyboard-properties-xkbot.c: (xkb_options_popup_dialog): + declare variable at beginning of code block, fixes build with gcc 2.x + 2008-10-26 Jens Granseuer * gnome-keyboard-properties-xkbot.c: (option_focused_cb), diff --git a/capplets/keyboard/gnome-keyboard-properties-xkbot.c b/capplets/keyboard/gnome-keyboard-properties-xkbot.c index 6a42856b1..c2af976f8 100644 --- a/capplets/keyboard/gnome-keyboard-properties-xkbot.c +++ b/capplets/keyboard/gnome-keyboard-properties-xkbot.c @@ -400,16 +400,18 @@ chooser_response_cb (GtkDialog * dialog, gint response, gpointer data) } } -/* Create popup dialog*/ +/* Create popup dialog */ void xkb_options_popup_dialog (GladeXML * dialog) { + GtkWidget *chooser; + chooser_dialog = glade_xml_new (GNOMECC_GLADE_DIR "/gnome-keyboard-properties.glade", "xkb_options_dialog", NULL); - GtkWidget *chooser = CWID ("xkb_options_dialog"); + chooser = CWID ("xkb_options_dialog"); gtk_window_set_transient_for (GTK_WINDOW (chooser), GTK_WINDOW (WID ("keyboard_dialog")));