diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2020-05-16 23:05:45 +0200 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2020-06-08 09:49:17 +0200 |
commit | ec14d51769edafb4e8a5ff694154064060dfea91 (patch) | |
tree | 55a778b73f7bfee8a7e6dec555c62dbddc8351f9 /thunar/thunar-abstract-icon-view.c | |
parent | 410c895d68159ab41ea154ea8ecddf67d1f5b004 (diff) | |
download | thunar-ec14d51769edafb4e8a5ff694154064060dfea91.tar.gz |
remove all GtkActionEntries, they are not used any more (Issue #293)
Diffstat (limited to 'thunar/thunar-abstract-icon-view.c')
-rw-r--r-- | thunar/thunar-abstract-icon-view.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c index 8b1670b9..b8924101 100644 --- a/thunar/thunar-abstract-icon-view.c +++ b/thunar/thunar-abstract-icon-view.c @@ -121,28 +121,6 @@ struct _ThunarAbstractIconViewPrivate }; - -static const GtkActionEntry action_entries[] = -{ - { "arrange-items-menu", NULL, N_ ("Arran_ge Items"), NULL, NULL, NULL, }, -}; - -static const GtkRadioActionEntry column_action_entries[] = -{ - { "sort-by-name", NULL, N_ ("Sort By _Name"), NULL, N_ ("Keep items sorted by their name"), THUNAR_COLUMN_NAME, }, - { "sort-by-size", NULL, N_ ("Sort By _Size"), NULL, N_ ("Keep items sorted by their size"), THUNAR_COLUMN_SIZE, }, - { "sort-by-type", NULL, N_ ("Sort By _Type"), NULL, N_ ("Keep items sorted by their type"), THUNAR_COLUMN_TYPE, }, - { "sort-by-mtime", NULL, N_ ("Sort By Modification _Date"), NULL, N_ ("Keep items sorted by their modification date"), THUNAR_COLUMN_DATE_MODIFIED, }, -}; - -static const GtkRadioActionEntry order_action_entries[] = -{ - { "sort-ascending", NULL, N_ ("_Ascending"), NULL, N_ ("Sort items in ascending order"), GTK_SORT_ASCENDING, }, - { "sort-descending", NULL, N_ ("_Descending"), NULL, N_ ("Sort items in descending order"), GTK_SORT_DESCENDING, }, -}; - - - static XfceGtkActionEntry thunar_abstract_icon_view_action_entries[] = { { THUNAR_ABSTRACT_ICON_VIEW_ACTION_ARRANGE_ITEMS_MENU, "<Actions>/ThunarStandardView/arrange-items-menu", "", XFCE_GTK_MENU_ITEM, N_ ("Arran_ge Items"), NULL, NULL, G_CALLBACK (NULL), }, @@ -257,19 +235,6 @@ thunar_abstract_icon_view_init (ThunarAbstractIconView *abstract_icon_view) gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (view), THUNAR_STANDARD_VIEW (abstract_icon_view)->name_renderer, "text", THUNAR_COLUMN_NAME); -G_GNUC_BEGIN_IGNORE_DEPRECATIONS - /* setup the abstract icon view actions */ - gtk_action_group_add_actions (THUNAR_STANDARD_VIEW (abstract_icon_view)->action_group, - action_entries, G_N_ELEMENTS (action_entries), - GTK_WIDGET (abstract_icon_view)); - gtk_action_group_add_radio_actions (THUNAR_STANDARD_VIEW (abstract_icon_view)->action_group, column_action_entries, - G_N_ELEMENTS (column_action_entries), THUNAR_COLUMN_NAME, - G_CALLBACK (NULL), abstract_icon_view); - gtk_action_group_add_radio_actions (THUNAR_STANDARD_VIEW (abstract_icon_view)->action_group, order_action_entries, - G_N_ELEMENTS (order_action_entries), GTK_SORT_ASCENDING, - G_CALLBACK (NULL), abstract_icon_view); -G_GNUC_END_IGNORE_DEPRECATIONS - /* we need to listen to sort column changes to sync the menu items */ g_signal_connect (G_OBJECT (THUNAR_STANDARD_VIEW (abstract_icon_view)->model), "sort-column-changed", G_CALLBACK (thunar_abstract_icon_view_sort_column_changed), abstract_icon_view); |