summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-10-07 15:26:07 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-10-07 15:26:07 +0000
commit95a5e5cd09f54d39f091f262e062bda01d16edf7 (patch)
tree32c31467681c517f333683d11cd155b297b4b2bf
parentfe725cf7d91290079d42cedfb8dc18b4fe93f6b2 (diff)
downloadgdk-pixbuf-95a5e5cd09f54d39f091f262e062bda01d16edf7.tar.gz
Fix a typo where gtkrc.vi_VN.tcvn5712 wasn't getting deleted, causing
Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com> * gtk/Makefile.am (install-data-local): Fix a typo where gtkrc.vi_VN.tcvn5712 wasn't getting deleted, causing error messages on install. Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw the handle as well, since we now sometimes ignore exposes on the handle while resizing.
-rw-r--r--ChangeLog12
-rw-r--r--ChangeLog.pre-2-012
-rw-r--r--ChangeLog.pre-2-1012
-rw-r--r--ChangeLog.pre-2-212
-rw-r--r--ChangeLog.pre-2-412
-rw-r--r--ChangeLog.pre-2-612
-rw-r--r--ChangeLog.pre-2-812
-rw-r--r--gtk/Makefile.am2
-rw-r--r--gtk/gtkhpaned.c38
-rw-r--r--gtk/gtkvpaned.c39
10 files changed, 152 insertions, 11 deletions
diff --git a/ChangeLog b/ChangeLog
index 30292518e..d989a4261 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 30292518e..d989a4261 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 30292518e..d989a4261 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 30292518e..d989a4261 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 30292518e..d989a4261 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 30292518e..d989a4261 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 30292518e..d989a4261 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,15 @@
+Thu Oct 7 11:09:55 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/Makefile.am (install-data-local): Fix
+ a typo where gtkrc.vi_VN.tcvn5712 wasn't getting
+ deleted, causing error messages on install.
+
+Thu Oct 7 11:03:06 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtk[hv]paned.c (gtk_{h,v}paned_draw): Redraw
+ the handle as well, since we now sometimes ignore
+ exposes on the handle while resizing.
+
Wed Oct 6 18:02:31 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkrc.c (gtk_rc_append_default_pixmap_path): Fix stupid
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 19ae35959..2e74c9b8d 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -393,7 +393,7 @@ install-data-local:
ln -s gtkrc.iso-8859-5 gtkrc.$$i ; \
done ; \
rm -f gtkrc.lt gtkrc.cy gtkrc.ga gtkrc.et gtkrc.ka \
- gtkrc.vi_VN.viscii111 vi_VN.tcvn5712 gtkrc.vi ; \
+ gtkrc.vi_VN.viscii111 gtkrc.vi_VN.tcvn5712 gtkrc.vi ; \
ln -s gtkrc.iso-8859-13 gtkrc.lt ; \
ln -s gtkrc.iso-8859-14 gtkrc.cy ; \
ln -s gtkrc.iso-8859-14 gtkrc.ga ; \
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c
index 537a3f537..0f9df20c3 100644
--- a/gtk/gtkhpaned.c
+++ b/gtk/gtkhpaned.c
@@ -245,7 +245,7 @@ gtk_hpaned_draw (GtkWidget *widget,
GdkRectangle *area)
{
GtkPaned *paned;
- GdkRectangle child_area;
+ GdkRectangle handle_area, child_area;
guint16 border_width;
g_return_if_fail (widget != NULL);
@@ -253,11 +253,43 @@ gtk_hpaned_draw (GtkWidget *widget,
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget))
{
+ gint width, height;
+
paned = GTK_PANED (widget);
border_width = GTK_CONTAINER (paned)->border_width;
gdk_window_clear_area (widget->window,
area->x, area->y, area->width, area->height);
+
+ /* Redraw the handle
+ */
+ gdk_window_get_size (paned->handle, &width, &height);
+
+ handle_area.x = paned->handle_xpos;
+ handle_area.y = paned->handle_ypos;
+ handle_area.width = width;
+ handle_area.height = height;
+
+ if (gdk_rectangle_intersect (&handle_area, area, &child_area))
+ {
+ child_area.x -= handle_area.x;
+ child_area.y -= handle_area.y;
+ gtk_paint_box (widget->style, paned->handle,
+ GTK_WIDGET_STATE(widget),
+ GTK_SHADOW_OUT,
+ &child_area, widget, "paned",
+ 0, 0,
+ width, height);
+ }
+
+ /* Redraw the groove
+ */
+ gtk_paint_vline(widget->style, widget->window, GTK_STATE_NORMAL,
+ area, widget, "hpaned",
+ 0, widget->allocation.height - 1,
+ border_width + paned->child1_size + paned->gutter_size / 2 - 1);
+ /* Redraw the children
+ */
if (paned->child1 &&
gtk_widget_intersect (paned->child1, area, &child_area))
gtk_widget_draw (paned->child1, &child_area);
@@ -265,10 +297,6 @@ gtk_hpaned_draw (GtkWidget *widget,
gtk_widget_intersect (paned->child2, area, &child_area))
gtk_widget_draw (paned->child2, &child_area);
- gtk_paint_vline(widget->style, widget->window, GTK_STATE_NORMAL,
- area, widget, "hpaned",
- 0, widget->allocation.height - 1,
- border_width + paned->child1_size + paned->gutter_size / 2 - 1);
}
}
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c
index 7e055ddd8..22dfa5cc1 100644
--- a/gtk/gtkvpaned.c
+++ b/gtk/gtkvpaned.c
@@ -245,7 +245,7 @@ gtk_vpaned_draw (GtkWidget *widget,
GdkRectangle *area)
{
GtkPaned *paned;
- GdkRectangle child_area;
+ GdkRectangle handle_area, child_area;
guint16 border_width;
g_return_if_fail (widget != NULL);
@@ -253,11 +253,44 @@ gtk_vpaned_draw (GtkWidget *widget,
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_MAPPED (widget))
{
+ gint width, height;
+
paned = GTK_PANED (widget);
border_width = GTK_CONTAINER (paned)->border_width;
gdk_window_clear_area (widget->window,
area->x, area->y, area->width, area->height);
+
+ /* Redraw the handle
+ */
+ gdk_window_get_size (paned->handle, &width, &height);
+
+ handle_area.x = paned->handle_xpos;
+ handle_area.y = paned->handle_ypos;
+ handle_area.width = width;
+ handle_area.height = height;
+
+ if (gdk_rectangle_intersect (&handle_area, area, &child_area))
+ {
+ child_area.x -= handle_area.x;
+ child_area.y -= handle_area.y;
+ gtk_paint_box (widget->style, paned->handle,
+ GTK_WIDGET_STATE(widget),
+ GTK_SHADOW_OUT,
+ &child_area, widget, "paned",
+ 0, 0,
+ width, height);
+ }
+
+ /* Redraw the groove
+ */
+ gtk_paint_hline(widget->style, widget->window, GTK_STATE_NORMAL,
+ area, widget, "vpaned",
+ 0, widget->allocation.width - 1,
+ border_width + paned->child1_size + paned->gutter_size / 2 - 1);
+
+ /* Redraw the children
+ */
if (paned->child1 &&
gtk_widget_intersect (paned->child1, area, &child_area))
gtk_widget_draw (paned->child1, &child_area);
@@ -265,10 +298,6 @@ gtk_vpaned_draw (GtkWidget *widget,
gtk_widget_intersect (paned->child2, area, &child_area))
gtk_widget_draw (paned->child2, &child_area);
- gtk_paint_hline(widget->style, widget->window, GTK_STATE_NORMAL,
- area, widget, "vpaned",
- 0, widget->allocation.width - 1,
- border_width + paned->child1_size + paned->gutter_size / 2 - 1);
}
}