diff options
author | Kristian Rietveld <kris@imendio.com> | 2007-02-14 12:13:48 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2007-02-14 12:13:48 +0000 |
commit | 6ab7015dfed553799e09fc95dc155f2898f4d77a (patch) | |
tree | e97ba62a1597aea45478b0459069e8ae245891d3 /gtk/gtktreeviewcolumn.c | |
parent | 44d79a77accc2058511e579567a4b4478b863485 (diff) | |
download | gtk+-6ab7015dfed553799e09fc95dc155f2898f4d77a.tar.gz |
use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window position
2007-02-14 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
use TREE_VIEW_DRAG_WIDTH/2 when calculating the drag window
position instead of a hardcoded value. (Taken from maemo-gtk).
svn path=/trunk/; revision=17292
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 6904c6f38a..585dda2076 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1259,7 +1259,7 @@ _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column) attr.width = TREE_VIEW_DRAG_WIDTH; attr.height = tree_view->priv->header_height; - attr.x = (column->button->allocation.x + (rtl ? 0 : column->button->allocation.width)) - 3; + attr.x = (column->button->allocation.x + (rtl ? 0 : column->button->allocation.width)) - TREE_VIEW_DRAG_WIDTH / 2; column->window = gdk_window_new (tree_view->priv->header_window, &attr, attributes_mask); gdk_window_set_user_data (column->window, tree_view); |