summaryrefslogtreecommitdiff
path: root/x11/gtk2-chtheme/patches/patch-af
blob: 55601d4919740542e67d90af871b7e64d51ec965 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
$NetBSD: patch-af,v 1.1 2005/01/21 20:17:58 kristerw Exp $

--- preview_pane.c.orig	Fri Jan 21 21:01:56 2005
+++ preview_pane.c	Fri Jan 21 21:12:41 2005
@@ -23,17 +23,20 @@
 
 GtkWidget* create_preview_pane(void)
 {
+	GtkWidget* frame;
 	GtkBox* box = GTK_BOX(unfocussable(gtk_vbox_new(FALSE, 5)));
 
 	{
 		gint i;
 
+		GtkWidget *item;
+		GSList* group;
 		GtkWidget *menubar = unfocussable(gtk_menu_bar_new());
 
 		GtkWidget *menu = unfocussable(gtk_menu_new());
 		gtk_menu_shell_append(GTK_MENU_SHELL(menu), unfocussable(gtk_tearoff_menu_item_new()));
 
-		GtkWidget *item = unfocussable(gtk_menu_item_new_with_label("Menu"));
+		item = unfocussable(gtk_menu_item_new_with_label("Menu"));
 		gtk_menu_shell_append(GTK_MENU_SHELL(menubar), item);
 		gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), menu);
 
@@ -51,7 +54,7 @@
 
 		gtk_menu_shell_append(GTK_MENU_SHELL(menu), unfocussable(gtk_separator_menu_item_new()));
 
-		GSList* group = NULL;
+		group = NULL;
 		for (i = 0; i < MENU_PREVIEW_ITEMS; i++)
 		{
 			item = unfocussable(gtk_radio_menu_item_new_with_label(group, "Radio"));
@@ -77,6 +80,7 @@
 	{
 		GtkToolbar* toolbar = GTK_TOOLBAR(unfocussable(gtk_toolbar_new()));
 		GtkWidget* button;
+		GtkRadioButton* radio;
 
 		button = unfocussable(gtk_check_button_new_with_label("Check 1"));
 		gtk_toolbar_append_widget(toolbar, button, "Tooltip", "");
@@ -87,8 +91,6 @@
 
 		gtk_toolbar_append_space(toolbar);
 
-		GtkRadioButton* radio;
-		
 		radio = GTK_RADIO_BUTTON(unfocussable(gtk_radio_button_new_with_label(NULL, "Radio 1")));
 		gtk_toolbar_append_widget(toolbar, GTK_WIDGET(radio), "Tooltip", "");
 		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio), TRUE);
@@ -143,7 +145,7 @@
 		gtk_box_pack_start(box, GTK_WIDGET(hbox), FALSE, FALSE, 0);
 	}
 
-	GtkWidget* frame = unfocussable(gtk_frame_new("Preview"));
+	frame = unfocussable(gtk_frame_new("Preview"));
 	gtk_container_add(GTK_CONTAINER(frame), GTK_WIDGET(box));
 
 	return frame;