Commit 8321eac9 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

Always show icons for catalog menu items and file tools.

parent 53d7f587
......@@ -368,6 +368,8 @@ insert_menu_item (CatalogListData *list_data,
GtkWidget *image;
item = gtk_image_menu_item_new_with_label (g_file_info_get_display_name (file_data->info));
gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (item), TRUE);
image = gtk_image_new_from_gicon (g_file_info_get_icon (file_data->info), GTK_ICON_SIZE_MENU);
gtk_widget_show (image);
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
......
......@@ -82,6 +82,8 @@ db__gth_browser_construct_cb (GthBrowser *browser)
g_clear_error (&error);
}
gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (gtk_ui_manager_get_widget (gth_browser_get_ui_manager (browser), "/ListToolsPopup/Tools/DesktopBackground")), TRUE);
g_object_set_data_full (G_OBJECT (browser), BROWSER_DATA_KEY, data, (GDestroyNotify) browser_data_free);
}
......
......@@ -89,6 +89,9 @@ ir__gth_browser_construct_cb (GthBrowser *browser)
g_clear_error (&error);
}
gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (gtk_ui_manager_get_widget (gth_browser_get_ui_manager (browser), "/ListToolsPopup/Tools/RotateRight")), TRUE);
gtk_image_menu_item_set_always_show_image (GTK_IMAGE_MENU_ITEM (gtk_ui_manager_get_widget (gth_browser_get_ui_manager (browser), "/ListToolsPopup/Tools/RotateLeft")), TRUE);
g_object_set_data_full (G_OBJECT (browser), BROWSER_DATA_KEY, data, (GDestroyNotify) browser_data_free);
}
......
Markdown is supported
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