mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Implement gail_image_get_image_size for storage GICON and ICON_NAME
Bug #602724.
This commit is contained in:
parent
65485cbc7c
commit
7abd4d1359
@ -229,20 +229,16 @@ gail_image_get_image_size (AtkImage *image,
|
||||
break;
|
||||
}
|
||||
case GTK_IMAGE_STOCK:
|
||||
{
|
||||
GtkIconSize size;
|
||||
GtkSettings *settings;
|
||||
settings = gtk_settings_get_for_screen (gtk_widget_get_screen (widget));
|
||||
gtk_image_get_stock(gtk_image, NULL, &size);
|
||||
gtk_icon_size_lookup_for_settings (settings, size, width, height);
|
||||
break;
|
||||
}
|
||||
case GTK_IMAGE_ICON_SET:
|
||||
case GTK_IMAGE_ICON_NAME:
|
||||
case GTK_IMAGE_GICON:
|
||||
{
|
||||
GtkIconSize size;
|
||||
GtkSettings *settings;
|
||||
|
||||
settings = gtk_settings_get_for_screen (gtk_widget_get_screen (widget));
|
||||
gtk_image_get_icon_set(gtk_image, NULL, &size);
|
||||
|
||||
g_object_get (gtk_image, "icon-size", &size, NULL);
|
||||
gtk_icon_size_lookup_for_settings (settings, size, width, height);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user