[Xfce4-commits] <xfce4-settings:master> Remove the callback on 'randr-off' radio button
Nick Schermer
noreply at xfce.org
Sat Aug 28 23:04:58 CEST 2010
Updating branch refs/heads/master
to 0c761d7b6a4fac14619cb33ffdc60ccf68bfb0e4 (commit)
from df7ddc2cf88994fccd65a9a43095f3d0aa399e6c (commit)
commit 0c761d7b6a4fac14619cb33ffdc60ccf68bfb0e4
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