]> Pileus Git - ~andy/gtk/commitdiff
Small fix to size of torn off window (#60271, Detlef Reichl)
authorOwen Taylor <otaylor@redhat.com>
Tue, 29 Jan 2002 22:14:19 +0000 (22:14 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 29 Jan 2002 22:14:19 +0000 (22:14 +0000)
Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
fix to size of torn off window (#60271, Detlef Reichl)

* gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
by Ross Burton)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/Makefile.am
gtk/gtkhandlebox.c

index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index b1bbdad984ae2240a3e1bd665343cb4e2cc4d758..03a1761a47b48a3a377b53af1d80d276afa0b744 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jan 29 16:35:04 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkhandlebox.c (gtk_handle_box_motion): Small
+       fix to size of torn off window (#60271, Detlef Reichl)
+
+       * gtk/Makefile.am: Don't install gtkhsv.h. (Pointed out
+       by Ross Burton)
+
 Tue Jan 29 18:50:46 2002  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): free
index a1a5985957f724c217d4b3fc34260a33a2741e48..bcdcb3d41c8973ebeaf0e1223d50b70f1aafd592 100644 (file)
@@ -136,7 +136,6 @@ gtk_public_h_sources = @STRIP_BEGIN@ \
        gtkhscale.h             \
        gtkhscrollbar.h         \
        gtkhseparator.h         \
-       gtkhsv.h                \
        gtkiconfactory.h        \
        gtkimage.h              \
        gtkimagemenuitem.h      \
@@ -296,6 +295,7 @@ gtk_c_sources = @STRIP_BEGIN@   \
        gtkhscrollbar.c         \
        gtkhseparator.c         \
        gtkhsv.c                \
+       gtkhsv.h                \
        gtkiconfactory.c        \
        gtkimage.c              \
        gtkimagemenuitem.c      \
index 33d48a2ad67e28cede1a9b3512a20ce4ec7559d0..d4d0125654caa47c9ae908adfeae168c2ff4c276 100644 (file)
@@ -1207,6 +1207,12 @@ gtk_handle_box_motion (GtkWidget      *widget,
 
          width = child_requisition.width + 2 * GTK_CONTAINER (hb)->border_width;
          height = child_requisition.height + 2 * GTK_CONTAINER (hb)->border_width;
+
+         if (hb->handle_position == GTK_POS_LEFT || hb->handle_position == GTK_POS_RIGHT)
+           width += DRAG_HANDLE_SIZE;
+         else
+           height += DRAG_HANDLE_SIZE;
+         
          gdk_window_move_resize (hb->float_window, new_x, new_y, width, height);
          gdk_window_reparent (hb->bin_window, hb->float_window, 0, 0);
          gdk_window_set_hints (hb->float_window, new_x, new_y, 0, 0, 0, 0, GDK_HINT_POS);