[Xfce4-commits] [apps/xfce4-screenshooter] 32/38: Disable delay spinner if Select Region is selected

noreply at xfce.org noreply at xfce.org
Fri Apr 28 03:07:28 CEST 2017


This is an automated email from the git hooks/post-receive script.

andre pushed a commit to branch master
in repository apps/xfce4-screenshooter.

commit 41c37f08a863c9e811d678d3176c8100923d526e
Author: Andre Miranda <andre42m at gmail.com>
Date:   Tue Apr 4 22:52:26 2017 -0300

    Disable delay spinner if Select Region is selected
---
 lib/screenshooter-dialogs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index 9d02fb6..a93b9d0 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -876,6 +876,7 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
 
   delay_spinner = gtk_spin_button_new_with_range(0.0, 60.0, 1.0);
   gtk_spin_button_set_value (GTK_SPIN_BUTTON (delay_spinner), sd->delay);
+  gtk_widget_set_sensitive (delay_spinner, (sd->region != SELECT));
   gtk_widget_set_tooltip_text (delay_spinner,
                                _("Delay in seconds before the screenshot is taken"));
   gtk_box_pack_start (GTK_BOX (delay_spinner_box), delay_spinner, FALSE, FALSE, 0);
@@ -884,6 +885,8 @@ GtkWidget *screenshooter_region_dialog_new (ScreenshotData *sd, gboolean plugin)
   gtk_box_pack_start (GTK_BOX (delay_spinner_box), seconds_label, FALSE, FALSE, 0);
   g_signal_connect (G_OBJECT (delay_spinner), "value-changed",
                     G_CALLBACK (cb_delay_spinner_changed), sd);
+  g_signal_connect (G_OBJECT (rectangle_button), "toggled",
+                    G_CALLBACK (cb_toggle_set_insensi), delay_spinner);
 
   gtk_widget_show_all (gtk_dialog_get_content_area (GTK_DIALOG (dlg)));
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list