diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-file-management-properties.c | 24 | ||||
-rw-r--r-- | src/caja-file-management-properties.ui | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c index f272f156..20f3c891 100644 --- a/src/caja-file-management-properties.c +++ b/src/caja-file-management-properties.c @@ -190,9 +190,9 @@ static const char * const icon_captions_components[] = enum { EXT_STATE_COLUMN, - EXT_ICON_COLUMN, + EXT_ICON_COLUMN, EXT_INFO_COLUMN, - EXT_STRUCT_COLUMN + EXT_STRUCT_COLUMN }; static void caja_file_management_properties_dialog_update_media_sensitivity (GtkBuilder *builder); @@ -872,7 +872,7 @@ caja_file_management_properties_dialog_setup_extension_page (GtkBuilder *builder GtkTreeSelection *selection; GtkTreeIter iter; GtkIconTheme *icon_theme; - GdkPixbuf *ext_pixbuf_icon; + cairo_surface_t *ext_surface_icon; GtkButton *about_button, *configure_button; gchar *ext_text_info; @@ -901,15 +901,15 @@ caja_file_management_properties_dialog_setup_extension_page (GtkBuilder *builder if (ext->icon != NULL) { - ext_pixbuf_icon = gtk_icon_theme_load_icon (icon_theme, ext->icon, - 24, - GTK_ICON_LOOKUP_USE_BUILTIN, NULL); + ext_surface_icon = gtk_icon_theme_load_surface (icon_theme, ext->icon, + 24, gtk_widget_get_scale_factor (GTK_WIDGET (view)), + NULL, GTK_ICON_LOOKUP_USE_BUILTIN, NULL); } else { - ext_pixbuf_icon = gtk_icon_theme_load_icon (icon_theme, "system-run", - 24, - GTK_ICON_LOOKUP_USE_BUILTIN, NULL); + ext_surface_icon = gtk_icon_theme_load_surface (icon_theme, "system-run", + 24, gtk_widget_get_scale_factor (GTK_WIDGET (view)), + NULL, GTK_ICON_LOOKUP_USE_BUILTIN, NULL); } if (ext->description != NULL) @@ -927,13 +927,13 @@ caja_file_management_properties_dialog_setup_extension_page (GtkBuilder *builder gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, EXT_STATE_COLUMN, ext->state, - EXT_ICON_COLUMN, ext_pixbuf_icon, + EXT_ICON_COLUMN, ext_surface_icon, EXT_INFO_COLUMN, ext_text_info, EXT_STRUCT_COLUMN, ext, -1); g_free (ext_text_info); - if (ext_pixbuf_icon) - g_object_unref (ext_pixbuf_icon); + if (ext_surface_icon) + cairo_surface_destroy (ext_surface_icon); } about_button = GTK_BUTTON (gtk_builder_get_object (builder, "about_extension_button")); diff --git a/src/caja-file-management-properties.ui b/src/caja-file-management-properties.ui index 77fdd7ee..aa337c2f 100644 --- a/src/caja-file-management-properties.ui +++ b/src/caja-file-management-properties.ui @@ -7,7 +7,7 @@ <!-- column-name ext-state --> <column type="gboolean"/> <!-- column-name ext-icon --> - <column type="GdkPixbuf"/> + <column type="CairoSurface"/> <!-- column-name ext-info --> <column type="gchararray"/> <!-- column-name ext-struct --> @@ -2537,7 +2537,7 @@ <child> <object class="GtkCellRendererPixbuf" id="cellrendererpixbuf1"/> <attributes> - <attribute name="pixbuf">1</attribute> + <attribute name="surface">1</attribute> </attributes> </child> </object> |