Commit df62de68 authored by Morten Welinder's avatar Morten Welinder
Browse files

icons: add 64x64 version of cross.

This makes the icon appear sharp on 2x scaled displays.
parent c9cf7b5f
......@@ -1205,6 +1205,8 @@ icons/32x32/apps/Makefile
icons/48x48/Makefile
icons/48x48/actions/Makefile
icons/48x48/apps/Makefile
icons/64x64/Makefile
icons/64x64/actions/Makefile
icons/256x256/Makefile
icons/256x256/apps/Makefile
introspection/Makefile
......
SUBDIRS = actions
internalicons = \
cursor-cross.png
EXTRA_DIST = $(internalicons)
SUBDIRS = 16x16 22x22 24x24 32x32 48x48 256x256
SUBDIRS = 16x16 22x22 24x24 32x32 48x48 64x64 256x256
EXTRA_DIST = fake-index-theme win32-gnumeric.ico
......
......@@ -162,6 +162,7 @@
<file>icons/32x32/actions/gnumeric-format-valign-justify.png</file>
<file>icons/32x32/actions/gnumeric-format-valign-top.png</file>
<file>icons/48x48/actions/gnumeric-protection-yes-dialog.png</file>
<file>icons/64x64/actions/cursor-cross.png</file>
<file alias="images/line_pattern_dash_dot.png">src/pixmaps/line_pattern_dash_dot.png</file>
<file alias="images/line_pattern_dash_dot_dot.png">src/pixmaps/line_pattern_dash_dot_dot.png</file>
<file alias="images/line_pattern_dashed.png">src/pixmaps/line_pattern_dashed.png</file>
......
......@@ -201,23 +201,26 @@ item_grid_realize (GocItem *item)
{
GdkDisplay *display;
GnmItemGrid *ig;
GdkPixbuf *cursor_cross_pixbuf;
cairo_surface_t *cursor_cross;
GtkWidget *widget;
parent_class->realize (item);
ig = GNM_ITEM_GRID (item);
ig_reload_style (ig);
display = gtk_widget_get_display (GTK_WIDGET (item->canvas));
widget = GTK_WIDGET (item->canvas);
display = gtk_widget_get_display (widget);
ig->cursor_link = gdk_cursor_new_for_display (display, GDK_HAND2);
cursor_cross_pixbuf =
gtk_icon_theme_load_icon (gtk_icon_theme_get_for_screen (gtk_widget_get_screen (GTK_WIDGET (item->canvas))),
"cursor-cross", 32, 0, NULL);
cursor_cross =
gtk_icon_theme_load_surface (gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget)),
"cursor-cross", 32,
gtk_widget_get_scale_factor (widget),
gtk_widget_get_window (widget),
0, NULL);
ig->cursor_cross =
gdk_cursor_new_from_pixbuf (display,
cursor_cross_pixbuf,
17, 17);
g_object_unref (cursor_cross_pixbuf);
gdk_cursor_new_from_surface (display, cursor_cross, 17, 17);
cairo_surface_destroy (cursor_cross);
cb_cursor_motion (ig);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment