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

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit cd8500bc5aaf87644e838b136b71e4bb6f592880
Author: Igor <f2...@yandex.ru>
Date:   Mon Jun 20 10:41:30 2016 +0300

    Grey out scrollback lines setting when unlimited scrolling is enabled
---
 terminal/terminal-preferences-dialog.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/terminal/terminal-preferences-dialog.c 
b/terminal/terminal-preferences-dialog.c
index 0d1969d..7176e2a 100644
--- a/terminal/terminal-preferences-dialog.c
+++ b/terminal/terminal-preferences-dialog.c
@@ -64,6 +64,8 @@ static void terminal_preferences_dialog_background_set    
(GtkFileChooserButton
                                                            
TerminalPreferencesDialog *dialog);
 static void terminal_preferences_dialog_encoding_changed  (GtkComboBox         
      *combobox,
                                                            
TerminalPreferencesDialog *dialog);
+static void terminal_preferences_dialog_scroll_unlimited  (GtkWidget           
      *button,
+                                                           
TerminalPreferencesDialog *dialog);
 
 
 
@@ -229,6 +231,12 @@ error:
   BIND_PROPERTIES ("tab-activity-timeout", "value");
   BIND_PROPERTIES ("background-darkness", "value");
 
+  /* unlimited scrollback button */
+  object = gtk_builder_get_object (GTK_BUILDER (dialog), 
"scrolling-unlimited");
+  terminal_return_if_fail (G_IS_OBJECT (object));
+  g_signal_connect (G_OBJECT (object), "clicked",
+      G_CALLBACK (terminal_preferences_dialog_scroll_unlimited), dialog);
+
   /* reset comparibility button */
   object = gtk_builder_get_object (GTK_BUILDER (dialog), 
"reset-compatibility");
   terminal_return_if_fail (G_IS_OBJECT (object));
@@ -896,6 +904,25 @@ terminal_preferences_dialog_encoding_changed (GtkComboBox  
             *combobo
 
 
 
+static void
+terminal_preferences_dialog_scroll_unlimited (GtkWidget                 
*button,
+                                              TerminalPreferencesDialog 
*dialog)
+{
+  GObject *object;
+  gboolean unlimited;
+
+  terminal_return_if_fail (TERMINAL_IS_PREFERENCES_DIALOG (dialog));
+  terminal_return_if_fail (GTK_IS_TOGGLE_BUTTON (widget));
+
+  unlimited = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
+
+  object = gtk_builder_get_object (GTK_BUILDER (dialog), "scrolling-lines");
+  terminal_return_if_fail (G_IS_OBJECT (object));
+  g_object_set (G_OBJECT (object), "sensitive", !unlimited, NULL);
+}
+
+
+
 /**
  * terminal_preferences_dialog_new:
  *

-- 
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

Reply via email to