[gthumb] properites: fixed runtime warning
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] properites: fixed runtime warning
- Date: Wed, 15 Jan 2020 08:53:00 +0000 (UTC)
commit 961f19ea3759ad36d8e8c7c35d5843e0be643580
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jan 15 09:48:12 2020 +0100
properites: fixed runtime warning
set the location chooser sensitivity after creating the widget
gthumb/dlg-preferences-general.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gthumb/dlg-preferences-general.c b/gthumb/dlg-preferences-general.c
index 03203a9e..db689bff 100644
--- a/gthumb/dlg-preferences-general.c
+++ b/gthumb/dlg-preferences-general.c
@@ -142,11 +142,6 @@ general__dlg_preferences_construct_cb (GtkWidget *dialog,
else
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (GET_WIDGET
("go_to_last_location_radiobutton")), TRUE);
- if (! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (GET_WIDGET
("use_startup_location_radiobutton")))) {
- gtk_widget_set_sensitive (data->starup_location_chooser, FALSE);
- gtk_widget_set_sensitive (GET_WIDGET ("set_to_current_button"), FALSE);
- }
-
/* starup location */
{
char *uri;
@@ -175,6 +170,11 @@ general__dlg_preferences_construct_cb (GtkWidget *dialog,
g_free (uri);
}
+ if (! gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (GET_WIDGET
("use_startup_location_radiobutton")))) {
+ gtk_widget_set_sensitive (data->starup_location_chooser, FALSE);
+ gtk_widget_set_sensitive (GET_WIDGET ("set_to_current_button"), FALSE);
+ }
+
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("reuse_active_window_checkbutton")),
g_settings_get_boolean (data->browser_settings,
PREF_BROWSER_REUSE_ACTIVE_WINDOW));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (GET_WIDGET ("confirm_deletion_checkbutton")),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]