# HG changeset patch # User Colin Clark # Date 1522755695 -3600 # Node ID 808983eb036eec778ea7a51ac1a54d3a4c9d8638 # Parent a03b5446e68f91436a5a2392d88a3afc6b41f74d Option to display window ID Additional Preferences/Windows option to show the window ID in the titlebar. Off by default. diff -r a03b5446e68f -r 808983eb036e doc/docbook/GuideOptionsWindow.xml --- a/doc/docbook/GuideOptionsWindow.xml Sun Apr 01 11:36:20 2018 +0100 +++ b/doc/docbook/GuideOptionsWindow.xml Tue Apr 03 12:41:35 2018 +0100 @@ -69,6 +69,21 @@ + + + + Show window IDs + + + + Show the window ID in the titlebar of each window. When multiple Geeqie windows are opened, this option shows a unique identifier for each window. It may be used in conjunction with the command line option: + + --remote --id:<ID> + + + + +
Size diff -r a03b5446e68f -r 808983eb036e src/image.c --- a/src/image.c Sun Apr 01 11:36:20 2018 +0100 +++ b/src/image.c Tue Apr 03 12:41:35 2018 +0100 @@ -210,7 +210,7 @@ collection ? collection : "", imd->image_fd ? " - " : "", imd->title_right ? imd->title_right : "", - lw_ident ? lw_ident : "" + options->show_window_ids ? (lw_ident ? lw_ident : "") : "" ); if (lw_ident) { diff -r a03b5446e68f -r 808983eb036e src/options.c --- a/src/options.c Sun Apr 01 11:36:20 2018 +0100 +++ b/src/options.c Tue Apr 03 12:41:35 2018 +0100 @@ -59,7 +59,7 @@ options->save_window_positions = TRUE; options->use_saved_window_positions_for_new_windows = FALSE; options->tools_restore_state = TRUE; - options->save_dialog_window_positions = FALSE; + options->show_window_ids = FALSE; options->file_ops.confirm_delete = TRUE; options->file_ops.enable_delete_key = TRUE; diff -r a03b5446e68f -r 808983eb036e src/options.h --- a/src/options.h Sun Apr 01 11:36:20 2018 +0100 +++ b/src/options.h Tue Apr 03 12:41:35 2018 +0100 @@ -57,6 +57,7 @@ gboolean use_saved_window_positions_for_new_windows; gboolean tools_restore_state; gboolean save_dialog_window_positions; + gboolean show_window_ids; gint log_window_lines; diff -r a03b5446e68f -r 808983eb036e src/preferences.c --- a/src/preferences.c Sun Apr 01 11:36:20 2018 +0100 +++ b/src/preferences.c Tue Apr 03 12:41:35 2018 +0100 @@ -256,6 +256,7 @@ options->save_window_positions = c_options->save_window_positions; options->use_saved_window_positions_for_new_windows = c_options->use_saved_window_positions_for_new_windows; options->save_dialog_window_positions = c_options->save_dialog_window_positions; + options->show_window_ids = c_options->show_window_ids; options->image.scroll_reset_method = c_options->image.scroll_reset_method; options->image.zoom_2pass = c_options->image.zoom_2pass; options->image.fit_window_to_image = c_options->image.fit_window_to_image; @@ -1806,6 +1807,9 @@ pref_checkbox_new_int(group, _("Remember dialog window positions"), options->save_dialog_window_positions, &c_options->save_dialog_window_positions); + pref_checkbox_new_int(group, _("Show window IDs"), + options->show_window_ids, &c_options->show_window_ids); + group = pref_group_new(vbox, FALSE, _("Size"), GTK_ORIENTATION_VERTICAL); pref_checkbox_new_int(group, _("Fit window to image when tools are hidden/floating"), diff -r a03b5446e68f -r 808983eb036e src/rcfile.c --- a/src/rcfile.c Sun Apr 01 11:36:20 2018 +0100 +++ b/src/rcfile.c Tue Apr 03 12:41:35 2018 +0100 @@ -338,6 +338,7 @@ WRITE_NL(); WRITE_BOOL(*options, use_saved_window_positions_for_new_windows); WRITE_NL(); WRITE_BOOL(*options, tools_restore_state); WRITE_NL(); WRITE_BOOL(*options, save_dialog_window_positions); + WRITE_NL(); WRITE_BOOL(*options, show_window_ids); WRITE_NL(); WRITE_UINT(*options, log_window_lines); WRITE_NL(); WRITE_BOOL(*options, log_window.timer_data); @@ -641,6 +642,7 @@ if (READ_BOOL(*options, use_saved_window_positions_for_new_windows)) continue; if (READ_BOOL(*options, tools_restore_state)) continue; if (READ_BOOL(*options, save_dialog_window_positions)) continue; + if (READ_BOOL(*options, show_window_ids)) continue; if (READ_INT(*options, log_window_lines)) continue; if (READ_BOOL(*options, log_window.timer_data)) continue; diff -r a03b5446e68f -r 808983eb036e web/help/GuideOptionsWindow.html --- a/web/help/GuideOptionsWindow.html Sun Apr 01 11:36:20 2018 +0100 +++ b/web/help/GuideOptionsWindow.html Tue Apr 03 12:41:35 2018 +0100 @@ -516,6 +516,19 @@

This will maintain dialog windows size and position between Geeqie sessions.

+
+
+ Show window IDs +
+
+

+ Show the window ID in the titlebar of each window. When multiple Geeqie windows are opened, this option shows a unique identifier for each window. It may be used in conjunction with the command line option: + +

+ +

+
+

11.3.2. Size