Mercurial > geeqie
changeset 1513:c9ed5a43c576
dropped show_copy_path option
author | nadvornik |
---|---|
date | Sat, 04 Apr 2009 22:09:50 +0000 |
parents | 0a1266bde95b |
children | 22174e704d0b |
files | src/collect-table.c src/dupe.c src/img-view.c src/layout_image.c src/layout_util.c src/options.c src/options.h src/pan-view.c src/preferences.c src/rcfile.c src/search.c src/view_dir.c src/view_file.c |
diffstat | 13 files changed, 15 insertions(+), 71 deletions(-) [+] |
line wrap: on
line diff
--- a/src/collect-table.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/collect-table.c Sat Apr 04 22:09:50 2009 +0000 @@ -895,9 +895,8 @@ G_CALLBACK(collection_table_popup_rename_cb), ct); menu_item_add_stock_sensitive(menu, _("_Delete..."), GTK_STOCK_DELETE, over_icon, G_CALLBACK(collection_table_popup_delete_cb), ct); - if (options->show_copy_path) - menu_item_add_sensitive(menu, _("_Copy path"), over_icon, - G_CALLBACK(collection_table_popup_copy_path_cb), ct); + menu_item_add_sensitive(menu, _("_Copy path"), over_icon, + G_CALLBACK(collection_table_popup_copy_path_cb), ct); menu_item_add_divider(menu); submenu_add_sort(menu, G_CALLBACK(collection_table_popup_sort_cb), ct, FALSE, TRUE, FALSE, 0);
--- a/src/dupe.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/dupe.c Sat Apr 04 22:09:50 2009 +0000 @@ -2278,9 +2278,8 @@ G_CALLBACK(dupe_menu_rename_cb), dw); menu_item_add_stock_sensitive(menu, _("_Delete..."), GTK_STOCK_DELETE, on_row, G_CALLBACK(dupe_menu_delete_cb), dw); - if (options->show_copy_path) - menu_item_add_sensitive(menu, _("_Copy path"), on_row, - G_CALLBACK(dupe_menu_copy_path_cb), dw); + menu_item_add_sensitive(menu, _("_Copy path"), on_row, + G_CALLBACK(dupe_menu_copy_path_cb), dw); menu_item_add_divider(menu); menu_item_add_stock_sensitive(menu, _("Rem_ove"), GTK_STOCK_REMOVE, on_row, G_CALLBACK(dupe_menu_remove_cb), dw);
--- a/src/img-view.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/img-view.c Sat Apr 04 22:09:50 2009 +0000 @@ -1296,8 +1296,7 @@ menu_item_add(menu, _("_Move..."), G_CALLBACK(view_move_cb), vw); menu_item_add(menu, _("_Rename..."), G_CALLBACK(view_rename_cb), vw); menu_item_add_stock(menu, _("_Delete..."), GTK_STOCK_DELETE, G_CALLBACK(view_delete_cb), vw); - if (options->show_copy_path) - menu_item_add(menu, _("_Copy path"), G_CALLBACK(view_copy_path_cb), vw); + menu_item_add(menu, _("_Copy path"), G_CALLBACK(view_copy_path_cb), vw); menu_item_add_divider(menu);
--- a/src/layout_image.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/layout_image.c Sat Apr 04 22:09:50 2009 +0000 @@ -522,11 +522,8 @@ item = menu_item_add_stock(menu, _("_Delete..."), GTK_STOCK_DELETE, G_CALLBACK(li_pop_menu_delete_cb), lw); if (!path) gtk_widget_set_sensitive(item, FALSE); - if (options->show_copy_path) - { - item = menu_item_add(menu, _("_Copy path"), G_CALLBACK(li_pop_menu_copy_path_cb), lw); - if (!path) gtk_widget_set_sensitive(item, FALSE); - } + item = menu_item_add(menu, _("_Copy path"), G_CALLBACK(li_pop_menu_copy_path_cb), lw); + if (!path) gtk_widget_set_sensitive(item, FALSE); menu_item_add_divider(menu);
--- a/src/layout_util.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/layout_util.c Sat Apr 04 22:09:50 2009 +0000 @@ -1131,38 +1131,6 @@ /* *----------------------------------------------------------------------------- - * copy path - *----------------------------------------------------------------------------- - */ - -static void layout_copy_path_update(LayoutWindow *lw) -{ - GtkWidget *item = gtk_ui_manager_get_widget(lw->ui_manager, "/MainMenu/FileMenu/CopyPath"); - - if (!item) return; - - if (options->show_copy_path) - gtk_widget_show(item); - else - gtk_widget_hide(item); -} - -void layout_copy_path_update_all(void) -{ - GList *work; - - work = layout_window_list; - while (work) - { - LayoutWindow *lw = work->data; - work = work->next; - - layout_copy_path_update(lw); - } -} - -/* - *----------------------------------------------------------------------------- * menu *----------------------------------------------------------------------------- */ @@ -1771,7 +1739,6 @@ layout_actions_setup_marks(lw); layout_actions_setup_editors(lw); - layout_copy_path_update(lw); layout_actions_add_window(lw, lw->window); }
--- a/src/options.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/options.c Sat Apr 04 22:09:50 2009 +0000 @@ -104,7 +104,6 @@ options->metadata.confirm_on_image_change = FALSE; options->metadata.confirm_on_dir_change = TRUE; - options->show_copy_path = TRUE; options->show_icon_names = TRUE; options->slideshow.delay = 50;
--- a/src/options.h Sat Apr 04 21:53:12 2009 +0000 +++ b/src/options.h Sat Apr 04 22:09:50 2009 +0000 @@ -21,7 +21,6 @@ gboolean place_dialogs_under_mouse; gboolean mousewheel_scrolls; gboolean show_icon_names; - gboolean show_copy_path; /* various */ gboolean tree_descend_subdirs;
--- a/src/pan-view.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/pan-view.c Sat Apr 04 22:09:50 2009 +0000 @@ -2828,9 +2828,8 @@ G_CALLBACK(pan_rename_cb), pw); menu_item_add_stock_sensitive(menu, _("_Delete..."), GTK_STOCK_DELETE, active, G_CALLBACK(pan_delete_cb), pw); - if (options->show_copy_path) - menu_item_add_sensitive(menu, _("_Copy path"), active, - G_CALLBACK(pan_copy_path_cb), pw); + menu_item_add_sensitive(menu, _("_Copy path"), active, + G_CALLBACK(pan_copy_path_cb), pw); menu_item_add_divider(menu); item = menu_item_add_check(menu, _("Sort by E_xif date"), pw->exif_date_enable,
--- a/src/preferences.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/preferences.c Sat Apr 04 22:09:50 2009 +0000 @@ -315,12 +315,6 @@ options->open_recent_list_maxsize = c_options->open_recent_list_maxsize; options->dnd_icon_size = c_options->dnd_icon_size; - if (options->show_copy_path != c_options->show_copy_path) - { - options->show_copy_path = c_options->show_copy_path; - layout_copy_path_update_all(); - } - options->metadata.save_in_image_file = c_options->metadata.save_in_image_file; options->metadata.save_legacy_IPTC = c_options->metadata.save_legacy_IPTC; options->metadata.warn_on_write_problems = c_options->metadata.warn_on_write_problems; @@ -1505,9 +1499,6 @@ pref_checkbox_new_int(group, _("In place renaming"), options->file_ops.enable_in_place_rename, &c_options->file_ops.enable_in_place_rename); - pref_checkbox_new_int(group, _("Show \"Copy path\" menu item which write the path of selected files to clipboard"), - options->show_copy_path, &c_options->show_copy_path); - pref_spin_new_int(group, _("Open recent list maximum size"), NULL, 1, 50, 1, options->open_recent_list_maxsize, &c_options->open_recent_list_maxsize);
--- a/src/rcfile.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/rcfile.c Sat Apr 04 22:09:50 2009 +0000 @@ -262,7 +262,6 @@ // WRITE_SUBTITLE("General Options"); WRITE_NL(); WRITE_BOOL(*options, show_icon_names); - WRITE_NL(); WRITE_BOOL(*options, show_copy_path); WRITE_SEPARATOR(); WRITE_NL(); WRITE_BOOL(*options, tree_descend_subdirs); @@ -573,7 +572,6 @@ /* general options */ if (READ_BOOL(*options, show_icon_names)) continue; - if (READ_BOOL(*options, show_copy_path)) continue; if (READ_BOOL(*options, tree_descend_subdirs)) continue; if (READ_BOOL(*options, lazy_image_sync)) continue;
--- a/src/search.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/search.c Sat Apr 04 22:09:50 2009 +0000 @@ -1027,9 +1027,8 @@ G_CALLBACK(sr_menu_rename_cb), sd); menu_item_add_stock_sensitive(menu, _("_Delete..."), GTK_STOCK_DELETE, on_row, G_CALLBACK(sr_menu_delete_cb), sd); - if (options->show_copy_path) - menu_item_add_sensitive(menu, _("_Copy path"), on_row, - G_CALLBACK(sr_menu_copy_path_cb), sd); + menu_item_add_sensitive(menu, _("_Copy path"), on_row, + G_CALLBACK(sr_menu_copy_path_cb), sd); menu_item_add_divider(menu); menu_item_add_stock_sensitive(menu, _("Rem_ove"), GTK_STOCK_REMOVE, on_row, G_CALLBACK(sr_menu_remove_cb), sd);
--- a/src/view_dir.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/view_dir.c Sat Apr 04 22:09:50 2009 +0000 @@ -620,9 +620,8 @@ menu_item_add_stock_sensitive(menu, _("_Delete..."), GTK_STOCK_DELETE, rename_delete_active, G_CALLBACK(vd_pop_menu_delete_cb), vd); - if (options->show_copy_path) - menu_item_add(menu, _("_Copy path"), - G_CALLBACK(vd_pop_menu_copy_path_cb), vd); + menu_item_add(menu, _("_Copy path"), + G_CALLBACK(vd_pop_menu_copy_path_cb), vd); menu_item_add_divider(menu);
--- a/src/view_file.c Sat Apr 04 21:53:12 2009 +0000 +++ b/src/view_file.c Sat Apr 04 22:09:50 2009 +0000 @@ -580,9 +580,8 @@ G_CALLBACK(vf_pop_menu_rename_cb), vf); menu_item_add_stock_sensitive(menu, _("_Delete..."), GTK_STOCK_DELETE, active, G_CALLBACK(vf_pop_menu_delete_cb), vf); - if (options->show_copy_path) - menu_item_add_sensitive(menu, _("_Copy path"), active, - G_CALLBACK(vf_pop_menu_copy_path_cb), vf); + menu_item_add_sensitive(menu, _("_Copy path"), active, + G_CALLBACK(vf_pop_menu_copy_path_cb), vf); menu_item_add_divider(menu);