+2007-08-11 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * cut-n-paste/toolbar-editor/egg-toolbar-editor.c:
+ (set_drag_cursor):
+ * cut-n-paste/toolbar-editor/egg-editable-toolbar.c:
+ (configure_item_cursor), (new_pixbuf_from_widget):
+
+ Fix multihead problems in toolbar editor. Fixes bug #382055.
+
2007-08-11 Carlos Garcia Campos <carlosgc@gnome.org>
* shell/ev-window.c: (ev_window_cmd_file_open),
if (priv->edit_mode > 0)
{
GdkCursor *cursor;
+ GdkScreen *screen;
GdkPixbuf *pixbuf = NULL;
-
- cursor = gdk_cursor_new (GDK_HAND2);
+
+ screen = gtk_widget_get_screen (GTK_WIDGET (etoolbar));
+
+ cursor = gdk_cursor_new_for_display (gdk_screen_get_display (screen),
+ GDK_HAND2);
gdk_window_set_cursor (widget->window, cursor);
gdk_cursor_unref (cursor);
GdkVisual *visual;
gint icon_width;
gint icon_height;
+ GdkScreen *screen;
icon_width = DEFAULT_ICON_WIDTH;
- if (!gtk_icon_size_lookup_for_settings (gtk_settings_get_default (),
+ screen = gtk_widget_get_screen (widget);
+
+ if (!gtk_icon_size_lookup_for_settings (gtk_settings_get_for_screen (screen),
GTK_ICON_SIZE_LARGE_TOOLBAR,
NULL,
&icon_height))
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);
}