]> Pileus Git - ~andy/gtk/commitdiff
Implement gtk_paned_get_handle_window
authorChristian Dywan <christian@twotoasts.de>
Fri, 29 Jan 2010 15:49:12 +0000 (16:49 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 29 Jan 2010 15:49:12 +0000 (16:49 +0100)
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=607885
gtk/gtk.symbols
gtk/gtkpaned.c
gtk/gtkpaned.h

index 3e515d3732b2817615168123fd25e57e6fd45676..ab8de03cfeccee6ea825344914dd94946e4e187e 100644 (file)
@@ -2760,6 +2760,7 @@ gtk_paned_add1
 gtk_paned_add2
 gtk_paned_get_child1
 gtk_paned_get_child2
+gtk_paned_get_handle_window
 gtk_paned_get_position
 gtk_paned_get_type G_GNUC_CONST
 gtk_paned_pack1
index 16681822dded81205aebd9bf9b99800410c7bddd..428476f1d9d3bb9156371ada771bb763481e38ea 100644 (file)
@@ -2230,5 +2230,26 @@ gtk_paned_toggle_handle_focus (GtkPaned *paned)
   return FALSE;
 }
 
+/**
+ * gtk_paned_get_handle_window:
+ * @panede: a #GtkPaned
+ *
+ * Returns the #GdkWindow of the handle. This function is
+ * useful when handling button or motion events because it
+ * enables the callback to distinguish between the window
+ * of the paned, a child and the handle.
+ *
+ * Return value: the paned's handle window.
+ *
+ * Since: 2.20
+ **/
+GdkWindow *
+gtk_paned_get_handle_window (GtkPaned *paned)
+{
+  g_return_val_if_fail (GTK_IS_PANED (paned), NULL);
+
+  return paned->handle;
+}
+
 #define __GTK_PANED_C__
 #include "gtkaliasdef.c"
index 178d6cf19d160b6fb631c24c40372df3a0c32f3c..1da08a88f123b1fc09f6e5bb16dfb3eb347616ad 100644 (file)
@@ -127,6 +127,8 @@ void        gtk_paned_set_position (GtkPaned       *paned,
 GtkWidget * gtk_paned_get_child1   (GtkPaned       *paned);
 GtkWidget * gtk_paned_get_child2   (GtkPaned       *paned);
 
+GdkWindow * gtk_paned_get_handle_window (GtkPaned  *paned);
+
 #ifndef GTK_DISABLE_DEPRECATED
 /* Internal function */
 void    gtk_paned_compute_position (GtkPaned  *paned,