summaryrefslogtreecommitdiff
path: root/cut-n-paste-code/widgets/e-paned/README.changes
blob: 2e147f267cf9a0e3ee5058385150bb0085c824f3 (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

I had to update this widget to fix an annoying sidebar bug (6294 and
probably 6499).

This is the patch I applied, so please check this if and when updating
e-paned from it's original source:


--- e-paned.c	1997/01/02 07:38:15	1.1
+++ e-paned.c	2001/02/27 20:17:26
@@ -606,7 +606,12 @@ e_paned_compute_position(EPaned *paned,
 			      paned->min_position,
 			      paned->max_position);
 
-  paned->last_allocation = allocation;
+  /* Only remember the last allocation if no position has been set
+   * yet, or the last allocation was already previously stored. Otherwise
+   * the second half of the above if can wrongly move the split
+   */
+  if (!paned->position_set || paned->last_allocation >= 0)
+    paned->last_allocation = allocation;
 }
 
 gboolean


Other previous changes to the files in this directory are:

--- e-hpaned.c	1997/01/02 07:38:15	1.1
+++ e-hpaned.c	2000/09/26 00:52:16	1.2
@@ -111,11 +111,7 @@ e_hpaned_init (EHPaned *hpaned)
 GtkWidget *
 e_hpaned_new (void)
 {
-  EHPaned *hpaned;
-
-  hpaned = gtk_type_new (E_TYPE_HPANED);
-
-  return GTK_WIDGET (hpaned);
+  return gtk_widget_new (E_TYPE_HPANED, NULL);
 }
 
 static void

--- e-vpaned.c	1997/01/02 07:38:15	1.1
+++ e-vpaned.c	2000/09/26 00:52:16	1.2
@@ -111,11 +111,7 @@ e_vpaned_init (EVPaned *vpaned)
 GtkWidget *
 e_vpaned_new (void)
 {
-  EVPaned *vpaned;
-
-  vpaned = gtk_type_new (E_TYPE_VPANED);
-
-  return GTK_WIDGET (vpaned);
+  return gtk_widget_new (E_TYPE_VPANED, NULL);
 }
 
 static void