summaryrefslogtreecommitdiff
path: root/capplets/keyboard
diff options
context:
space:
mode:
authorJens Granseuer <jensgr@gmx.net>2008-10-26 13:47:11 +0000
committerJens Granseuer <jensg@src.gnome.org>2008-10-26 13:47:11 +0000
commit76bf98c6181b92fa5b4330b118f46295dbaa8ff0 (patch)
tree5599f2a5e899156f2eb752219d45871deb046862 /capplets/keyboard
parent54ed1aef6a8b767d02fe5b5e6f9606d5a5d6655f (diff)
downloadgnome-control-center-76bf98c6181b92fa5b4330b118f46295dbaa8ff0.tar.gz
declare variable at beginning of code block, fixes build with gcc 2.x
2008-10-26 Jens Granseuer <jensgr@gmx.net> * gnome-keyboard-properties-xkbot.c: (xkb_options_popup_dialog): declare variable at beginning of code block, fixes build with gcc 2.x svn path=/trunk/; revision=9121
Diffstat (limited to 'capplets/keyboard')
-rw-r--r--capplets/keyboard/ChangeLog5
-rw-r--r--capplets/keyboard/gnome-keyboard-properties-xkbot.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/capplets/keyboard/ChangeLog b/capplets/keyboard/ChangeLog
index a4322799f..d145fd5b6 100644
--- a/capplets/keyboard/ChangeLog
+++ b/capplets/keyboard/ChangeLog
@@ -1,5 +1,10 @@
2008-10-26 Jens Granseuer <jensgr@gmx.net>
+ * 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 <jensgr@gmx.net>
+
* gnome-keyboard-properties-xkbot.c: (option_focused_cb),
(xkb_options_add_option), (xkb_options_add_group):
* gnome-keyboard-properties.glade: scroll the options window when the
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")));