diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2007-08-16 16:15:30 +0800 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2007-08-16 16:15:30 +0800 |
commit | bfff564b9f7e666de0ce9acce66f351ed21d9810 (patch) | |
tree | 1bf3469ed9fabbc07a707f60acc14f34badfba15 /lib/egg/egg-toolbar-editor.c | |
parent | 30c6a6045363b1031307db565bcd20b7074afd4b (diff) | |
download | gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.tar gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.tar.gz gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.tar.bz2 gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.tar.lz gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.tar.xz gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.tar.zst gsoc2013-epiphany-bfff564b9f7e666de0ce9acce66f351ed21d9810.zip |
Fix multihead problems in toolbar editor.
2007-08-16 Carlos Garcia Campos <carlosgc@gnome.org>
* lib/egg/egg-toolbar-editor.c: (set_drag_cursor):
* lib/egg/egg-editable-toolbar.c: (configure_item_cursor),
(new_pixbuf_from_widget):
Fix multihead problems in toolbar editor.
svn path=/trunk/; revision=7279
Diffstat (limited to 'lib/egg/egg-toolbar-editor.c')
-rw-r--r-- | lib/egg/egg-toolbar-editor.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index 07674d470..8671cd4c3 100644 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -312,10 +312,12 @@ static void set_drag_cursor (GtkWidget *widget) { GdkCursor *cursor; + GdkScreen *screen; - /* FIXME multihead */ - cursor = gdk_cursor_new (GDK_HAND2); - + screen = gtk_widget_get_screen (widget); + + cursor = gdk_cursor_new_for_display (gdk_screen_get_display (screen), + GDK_HAND2); gdk_window_set_cursor (widget->window, cursor); gdk_cursor_unref (cursor); } |