[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Remove the callback on 'randr-off' radio button

Jérôme Guelfucci noreply at xfce.org
Sun Jun 27 23:04:01 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to 16607b4cf5e1e102a86037fcda3e41bda7159877 (commit)
       from c1092bd56524136989481870091b715c5c959c9c (commit)

commit 16607b4cf5e1e102a86037fcda3e41bda7159877
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Sun Jun 27 19:06:40 2010 +0200

    Remove the callback on 'randr-off' radio button
    
    Both randr-on and randr-off receive the callback each time, so no need to work
    twice.

 dialogs/display-settings/main.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 7f1483d..2a52cc2 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -759,15 +759,9 @@ display_setting_output_toggled (GtkToggleButton *togglebutton,
         return;
 
     if (xfce_randr->noutput > 1)
-    {
-        GObject *radio;
-        radio = gtk_builder_get_object (builder, "randr-on");
-        is_active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (radio));
-    }
+        is_active = gtk_toggle_button_get_active (togglebutton);
     else
-    {
         is_active = TRUE;
-    }
 
     if (is_active && XFCE_RANDR_MODE (xfce_randr) == None)
         XFCE_RANDR_MODE (xfce_randr) =
@@ -1027,7 +1021,6 @@ display_settings_dialog_new (GtkBuilder *builder)
         if (xfce_randr->noutput > 1)
         {
             gtk_widget_show (GTK_WIDGET (radio));
-            g_signal_connect (G_OBJECT (radio), "toggled", G_CALLBACK (display_setting_output_toggled), builder);
         }
         else
         {



More information about the Xfce4-commits mailing list