[gnome-commander] Check for availability of the unique library where needed
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Check for availability of the unique library where needed
- Date: Wed, 8 Sep 2021 20:30:12 +0000 (UTC)
commit 3f6c68a0401793e8f2bcdcf792aacec7ba7409e4
Author: Uwe Scholz <u scholz83 gmx de>
Date: Wed Sep 8 22:27:09 2021 +0200
Check for availability of the unique library where needed
src/dialogs/gnome-cmd-options-dialog.cc | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/dialogs/gnome-cmd-options-dialog.cc b/src/dialogs/gnome-cmd-options-dialog.cc
index 5b9fd16f..36e75e73 100644
--- a/src/dialogs/gnome-cmd-options-dialog.cc
+++ b/src/dialogs/gnome-cmd-options-dialog.cc
@@ -265,7 +265,9 @@ void store_general_options (GtkWidget *dialog, GnomeCmdData::Options &cfg)
GtkWidget *case_sens_check = lookup_widget (dialog, "case_sens_check");
GtkWidget *ctrl_alt_quick_search = lookup_widget (dialog, "ctrl_alt_quick_search");
GtkWidget *alt_quick_search = lookup_widget (dialog, "alt_quick_search");
+#ifdef HAVE_UNIQUE
GtkWidget *multiple_instance_check = lookup_widget (dialog, "multiple_instance_check");
+#endif
GtkWidget *qsearch_exact_match_begin = lookup_widget (dialog, "qsearch_exact_match_begin");
GtkWidget *qsearch_exact_match_end = lookup_widget (dialog, "qsearch_exact_match_end");
GtkWidget *search_window_transient = lookup_widget (dialog, "search_window_transient");
@@ -293,7 +295,9 @@ void store_general_options (GtkWidget *dialog, GnomeCmdData::Options &cfg)
cfg.quick_search = GNOME_CMD_QUICK_SEARCH_ALT;
else
cfg.quick_search = GNOME_CMD_QUICK_SEARCH_JUST_A_CHARACTER;
+#ifdef HAVE_UNIQUE
cfg.allow_multiple_instances = !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
(multiple_instance_check));
+#endif
cfg.quick_search_exact_match_begin = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
(qsearch_exact_match_begin));
cfg.quick_search_exact_match_end = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
(qsearch_exact_match_end));
cfg.search_window_is_transient = !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
(search_window_transient));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]