Skip to content

Commit

Permalink
Drop thunar-stock
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Miranda committed Jun 2, 2018
1 parent ea62e4d commit 728339f
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 157 deletions.
1 change: 0 additions & 1 deletion po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ thunar/thunar-simple-job.c
thunar/thunar-size-label.c
thunar/thunar-standard-view.c
thunar/thunar-statusbar.c
thunar/thunar-stock.c
thunar/thunar-templates-action.c
thunar/thunar-thumbnail-cache.c
thunar/thunar-thumbnailer.c
Expand Down
2 changes: 0 additions & 2 deletions thunar/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ thunar_SOURCES = \
thunar-standard-view.h \
thunar-statusbar.c \
thunar-statusbar.h \
thunar-stock.c \
thunar-stock.h \
thunar-templates-action.c \
thunar-templates-action.h \
thunar-thumbnail-cache.c \
Expand Down
4 changes: 0 additions & 4 deletions thunar/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <thunar/thunar-private.h>
#include <thunar/thunar-notify.h>
#include <thunar/thunar-session-client.h>
#include <thunar/thunar-stock.h>
#include <thunar/thunar-preferences.h>


Expand Down Expand Up @@ -152,9 +151,6 @@ main (int argc, char **argv)
/* register additional transformation functions */
thunar_g_initialize_transformations ();

/* initialize the thunar stock items/icons */
thunar_stock_init ();

/* acquire a reference on the global application */
application = thunar_application_get ();

Expand Down
3 changes: 1 addition & 2 deletions thunar/thunar-launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <thunar/thunar-launcher-ui.h>
#include <thunar/thunar-private.h>
#include <thunar/thunar-sendto-model.h>
#include <thunar/thunar-stock.h>
#include <thunar/thunar-device-monitor.h>
#include <thunar/thunar-util.h>
#include <thunar/thunar-window.h>
Expand Down Expand Up @@ -181,7 +180,7 @@ static const GtkActionEntry action_entries[] =
{ "open-with-other", NULL, N_ ("Open With Other _Application..."), NULL, N_ ("Choose another application with which to open the selected file"), G_CALLBACK (thunar_launcher_action_open_with_other), },
{ "open-with-menu", NULL, N_ ("Open With"), NULL, NULL, NULL, },
{ "open-with-other-in-menu", NULL, N_ ("Open With Other _Application..."), NULL, N_ ("Choose another application with which to open the selected file"), G_CALLBACK (thunar_launcher_action_open_with_other), },
{ "sendto-desktop", THUNAR_STOCK_DESKTOP, "", NULL, NULL, G_CALLBACK (thunar_launcher_action_sendto_desktop), },
{ "sendto-desktop", "user-desktop", "", NULL, NULL, G_CALLBACK (thunar_launcher_action_sendto_desktop), },
};

static GQuark thunar_launcher_handler_quark;
Expand Down
3 changes: 1 addition & 2 deletions thunar/thunar-shortcuts-pane.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <thunar/thunar-shortcuts-pane-ui.h>
#include <thunar/thunar-shortcuts-view.h>
#include <thunar/thunar-side-pane.h>
#include <thunar/thunar-stock.h>



Expand Down Expand Up @@ -95,7 +94,7 @@ struct _ThunarShortcutsPane

static const GtkActionEntry action_entries[] =
{
{ "sendto-shortcuts", THUNAR_STOCK_SHORTCUTS, "", NULL, NULL, G_CALLBACK (thunar_shortcuts_pane_action_shortcuts_add), },
{ "sendto-shortcuts", "stock_thunar-shortcuts", "", NULL, NULL, G_CALLBACK (thunar_shortcuts_pane_action_shortcuts_add), },
};


Expand Down
3 changes: 1 addition & 2 deletions thunar/thunar-shortcuts-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#include <thunar/thunar-shortcuts-icon-renderer.h>
#include <thunar/thunar-shortcuts-model.h>
#include <thunar/thunar-shortcuts-view.h>
#include <thunar/thunar-stock.h>



Expand Down Expand Up @@ -1184,7 +1183,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
gtk_widget_show (item);

image = gtk_image_new_from_stock (THUNAR_STOCK_SHORTCUTS, GTK_ICON_SIZE_MENU);
image = gtk_image_new_from_icon_name ("stock_thunar-shortcuts", GTK_ICON_SIZE_MENU);
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image);
G_GNUC_END_IGNORE_DEPRECATIONS
Expand Down
3 changes: 1 addition & 2 deletions thunar/thunar-standard-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <thunar/thunar-simple-job.h>
#include <thunar/thunar-standard-view.h>
#include <thunar/thunar-standard-view-ui.h>
#include <thunar/thunar-stock.h>
#include <thunar/thunar-templates-action.h>
#include <thunar/thunar-thumbnailer.h>
#include <thunar/thunar-util.h>
Expand Down Expand Up @@ -408,7 +407,7 @@ static const GtkActionEntry action_entries[] =
{ "cut", "edit-cut", N_ ("Cu_t"), "<control>X", NULL, G_CALLBACK (thunar_standard_view_action_cut), },
{ "copy", "edit-copy", N_ ("_Copy"), "<control>C", NULL, G_CALLBACK (thunar_standard_view_action_copy), },
{ "paste", "edit-paste", N_ ("_Paste"), "<control>V", N_ ("Move or copy files previously selected by a Cut or Copy command"), G_CALLBACK (thunar_standard_view_action_paste), },
{ "move-to-trash", THUNAR_STOCK_TRASH_FULL, N_ ("Mo_ve to Trash"), NULL, NULL, G_CALLBACK (thunar_standard_view_action_move_to_trash), },
{ "move-to-trash", "user-trash", N_ ("Mo_ve to Trash"), NULL, NULL, G_CALLBACK (thunar_standard_view_action_move_to_trash), },
{ "delete", "edit-delete", N_ ("_Delete"), NULL, NULL, G_CALLBACK (thunar_standard_view_action_delete), },
{ "paste-into-folder", "edit-paste", N_ ("Paste Into Folder"), NULL, N_ ("Move or copy files previously selected by a Cut or Copy command into the selected folder"), G_CALLBACK (thunar_standard_view_action_paste_into_folder), },
{ "select-all-files", NULL, N_ ("Select _all Files"), NULL, N_ ("Select all files in this window"), G_CALLBACK (thunar_standard_view_action_select_all_files), },
Expand Down
98 changes: 0 additions & 98 deletions thunar/thunar-stock.c

This file was deleted.

35 changes: 0 additions & 35 deletions thunar/thunar-stock.h

This file was deleted.

8 changes: 3 additions & 5 deletions thunar/thunar-trash-action.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#endif

#include <thunar/thunar-file.h>
#include <thunar/thunar-stock.h>
#include <thunar/thunar-private.h>
#include <thunar/thunar-trash-action.h>
#include <thunar/thunar-icon-factory.h>
Expand Down Expand Up @@ -148,9 +147,9 @@ thunar_trash_action_changed (ThunarTrashAction *trash_action,

/* adjust the stock icon appropriately */
if (thunar_file_get_item_count (trash_bin) > 0)
g_object_set (G_OBJECT (trash_action), "stock-id", THUNAR_STOCK_TRASH_FULL, NULL);
g_object_set (G_OBJECT (trash_action), "icon-name", "user-trash-full", NULL);
else
g_object_set (G_OBJECT (trash_action), "stock-id", THUNAR_STOCK_TRASH_EMPTY, NULL);
g_object_set (G_OBJECT (trash_action), "icon-name", "user-trash", NULL);
}


Expand All @@ -169,7 +168,6 @@ thunar_trash_action_new (void)
return g_object_new (THUNAR_TYPE_TRASH_ACTION,
"name", "open-trash",
"tooltip", _("Display the contents of the trash can"),
"stock-id", THUNAR_STOCK_TRASH_FULL,
"icon-name", "user-trash-full",
NULL);
}

1 change: 0 additions & 1 deletion thunar/thunar-tree-view.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include <thunar/thunar-menu-util.h>
#include <thunar/thunar-preferences.h>
#include <thunar/thunar-private.h>
#include <thunar/thunar-stock.h>
#include <thunar/thunar-properties-dialog.h>
#include <thunar/thunar-shortcuts-icon-renderer.h>
#include <thunar/thunar-simple-job.h>
Expand Down
5 changes: 2 additions & 3 deletions thunar/thunar-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include <thunar/thunar-private.h>
#include <thunar/thunar-util.h>
#include <thunar/thunar-statusbar.h>
#include <thunar/thunar-stock.h>
#include <thunar/thunar-trash-action.h>
#include <thunar/thunar-tree-pane.h>
#include <thunar/thunar-window.h>
Expand Down Expand Up @@ -368,10 +367,10 @@ static GtkActionEntry action_entries[] =
{ "go-menu", NULL, N_ ("_Go"), NULL, },
{ "open-parent", "go-up-symbolic", N_ ("Open _Parent"), "<alt>Up", N_ ("Open the parent folder"), G_CALLBACK (thunar_window_action_go_up), },
{ "open-home", "go-home-symbolic", N_ ("_Home"), "<alt>Home", N_ ("Go to the home folder"), G_CALLBACK (thunar_window_action_open_home), },
{ "open-desktop", THUNAR_STOCK_DESKTOP, N_ ("Desktop"), NULL, N_ ("Go to the desktop folder"), G_CALLBACK (thunar_window_action_open_desktop), },
{ "open-desktop", "user-desktop", N_ ("Desktop"), NULL, N_ ("Go to the desktop folder"), G_CALLBACK (thunar_window_action_open_desktop), },
{ "open-file-system", "drive-harddisk", N_ ("File System"), NULL, N_ ("Browse the file system"), G_CALLBACK (thunar_window_action_open_file_system), },
{ "open-network", "network-workgroup", N_("B_rowse Network"), NULL, N_ ("Browse local network connections"), G_CALLBACK (thunar_window_action_open_network), },
{ "open-templates", THUNAR_STOCK_TEMPLATES, N_("T_emplates"), NULL, N_ ("Go to the templates folder"), G_CALLBACK (thunar_window_action_open_templates), },
{ "open-templates", "text-x-generic-template", N_("T_emplates"), NULL, N_ ("Go to the templates folder"), G_CALLBACK (thunar_window_action_open_templates), },
{ "open-location", NULL, N_ ("_Open Location..."), "<control>L", N_ ("Specify a location to open"), G_CALLBACK (thunar_window_action_open_location), },
{ "help-menu", NULL, N_ ("_Help"), NULL, },
{ "contents", "help-browser", N_ ("_Contents"), "F1", N_ ("Display Thunar user manual"), G_CALLBACK (thunar_window_action_contents), },
Expand Down

0 comments on commit 728339f

Please sign in to comment.