summaryrefslogtreecommitdiff
path: root/x11/gnome2-control-center/patches/patch-ae
blob: 8b14b89c75a280b3b3301268d6a4aa05a8340caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ae,v 1.1 2005/04/12 00:56:19 rillig Exp $

Needed for gcc-2.95.

--- capplets/keyboard/gnome-keyboard-properties-xkbot.c.orig	Thu Jan 20 00:16:13 2005
+++ capplets/keyboard/gnome-keyboard-properties-xkbot.c	Sat Apr  9 14:00:39 2005
@@ -243,20 +243,22 @@ xkb_options_add_group (const XklConfigIt
                                          GladeXML * dialog)
 {
   GSList * expanders_list = g_object_get_data (G_OBJECT (dialog), EXPANDERS_PROP);
+  gchar *utfGroupName, *titlemarkup;
+  GtkWidget *expander, *align, *vbox;
 
   current1stLevelId = configItem->name;
 
-  gchar *utfGroupName = xci_desc_to_utf8 (configItem);
-  gchar *titlemarkup = g_strconcat ("<span>", utfGroupName, "</span>", NULL);
+  utfGroupName = xci_desc_to_utf8 (configItem);
+  titlemarkup = g_strconcat ("<span>", utfGroupName, "</span>", NULL);
 
-  GtkWidget *expander = gtk_expander_new (titlemarkup);
+  expander = gtk_expander_new (titlemarkup);
   g_object_set_data_full (G_OBJECT (expander), "utfGroupName", utfGroupName, g_free);
 
   g_free (titlemarkup);
   gtk_expander_set_use_markup (GTK_EXPANDER (expander), TRUE);
-  GtkWidget *align = gtk_alignment_new (0, 0, 1, 1);
+  align = gtk_alignment_new (0, 0, 1, 1);
   gtk_alignment_set_padding (GTK_ALIGNMENT (align), 6, 12, 12, 0);
-  GtkWidget *vbox = gtk_vbox_new (TRUE, 6);
+  vbox = gtk_vbox_new (TRUE, 6);
   gtk_container_add (GTK_CONTAINER (align), vbox);
   gtk_container_add (GTK_CONTAINER (expander), align);
   currentVbox = vbox;