summaryrefslogtreecommitdiff
path: root/wm/obconf/patches/patch-aa
blob: 57517e13eb873391e7931ee524a5c6a9f400b08b (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
$NetBSD: patch-aa,v 1.1 2004/01/14 22:33:28 wiz Exp $

--- src/handlers.c.orig	Sun Sep 28 11:10:25 2003
+++ src/handlers.c
@@ -45,13 +45,12 @@ void setup_behavior_tab()
   GtkWidget *edgeresist = glade_xml_get_widget(glade, "resist_edge");
   GtkSizeGroup *group1  = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
 
-  gtk_size_group_add_widget(group1, winresist);
-  gtk_size_group_add_widget(group1, edgeresist);
-
   GtkWidget *winresist_l  = glade_xml_get_widget(glade, "resist_window_label");
   GtkWidget *edgeresist_l = glade_xml_get_widget(glade, "resist_edge_label");
   GtkSizeGroup *group2    = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
 
+  gtk_size_group_add_widget(group1, winresist);
+  gtk_size_group_add_widget(group1, edgeresist);
   gtk_size_group_add_widget(group2, winresist_l);
   gtk_size_group_add_widget(group2, edgeresist_l);
 }
@@ -62,13 +61,12 @@ void setup_dock_tab()
     GtkWidget *dir  = glade_xml_get_widget(glade, "dock_direction");
     GtkSizeGroup *group1 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
 
-    gtk_size_group_add_widget(group1, posi);
-    gtk_size_group_add_widget(group1, dir);
-
     GtkWidget *posi_l = glade_xml_get_widget(glade, "dock_position_label");
     GtkWidget *dir_l  = glade_xml_get_widget(glade, "dock_direction_label");
     GtkSizeGroup *group2 = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
 
+    gtk_size_group_add_widget(group1, posi);
+    gtk_size_group_add_widget(group1, dir);
     gtk_size_group_add_widget(group2, posi_l);
     gtk_size_group_add_widget(group2, dir_l);
 }
@@ -979,14 +977,15 @@ static void on_desktop_names_cell_edited
                                          const gchar *new_text,
                                          gpointer data)
 {
-    if (mapping) return;
-
-    GtkTreePath *path = gtk_tree_path_new_from_string (path_string);
+    GtkTreePath *path;
     GtkTreeIter it;
     gchar *old_text;
     GList *lit;
     gint i;
     xmlNodePtr n, c;
+
+    if (mapping) return;
+    path = gtk_tree_path_new_from_string (path_string);
 
     gtk_tree_model_get_iter(GTK_TREE_MODEL(desktop_store), &it, path);