This is an automated email from the git hooks/post-receive script. o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository xfce/xfce4-settings.
commit 449e9d9a6f4a341d63ff542b6f9cf0af5d43951f Author: Simon Steinbeiss <simon.steinbe...@elfenbeinturm.at> Date: Tue Aug 20 01:01:40 2019 +0200 color: Conditionally hide info button in add-profile dialog The button is shown/hidden based on the availability of gcm-viewer. --- dialogs/color-settings/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dialogs/color-settings/main.c b/dialogs/color-settings/main.c index ab734c9..505984c 100644 --- a/dialogs/color-settings/main.c +++ b/dialogs/color-settings/main.c @@ -1299,9 +1299,6 @@ color_settings_dialog_init (GtkBuilder *builder) g_signal_connect (settings->profiles_remove, "clicked", G_CALLBACK (color_settings_profile_remove_cb), settings); settings->profiles_info = gtk_builder_get_object (builder, "profiles-info"); - /* Conditionally show/hide the info button, based on the availability of gnome-color-manager */ - if (g_find_program_in_path ("gcm-viewer") == NULL) - gtk_widget_hide (GTK_WIDGET (settings->profiles_info)); gtk_widget_set_sensitive (GTK_WIDGET (settings->profiles_info), FALSE); g_signal_connect (settings->profiles_info, "clicked", G_CALLBACK (color_settings_profile_info_cb), settings); @@ -1354,6 +1351,12 @@ color_settings_dialog_init (GtkBuilder *builder) g_signal_connect (settings->button_assign_cancel, "clicked", G_CALLBACK (color_settings_button_assign_cancel_cb), settings); + /* Conditionally show/hide the info buttons, based on the availability of gnome-color-manager */ + if (g_find_program_in_path ("gcm-viewer") == NULL) { + gtk_widget_hide (GTK_WIDGET (settings->profiles_info)); + gtk_widget_hide (GTK_WIDGET (settings->button_assign_info)); + } + cd_client_connect (settings->client, settings->cancellable, color_settings_connect_cb, -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits