[Xfce4-commits] <xfce4-settings:xfce-4.8> Remove unused code to get the last value of a radio group.

Nick Schermer noreply at xfce.org
Tue May 17 20:50:01 CEST 2011


Updating branch refs/heads/xfce-4.8
         to 6fbd1d29fcefb288ec49da1704c72ae86b06b271 (commit)
       from e6eac6689458bce4253d1445d1af514df5b2515d (commit)

commit 6fbd1d29fcefb288ec49da1704c72ae86b06b271
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Fri Apr 22 12:22:29 2011 +0200

    Remove unused code to get the last value of a radio group.
    
    This fixes build with --enable-debug=full and gcc 4.6.
    
    (cherry picked from commit 41d9cd32cb86edaea37fa3259eeb84258b37724a)

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

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index 1706964..f4f3b2a 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -935,11 +935,9 @@ display_settings_minimal_dialog_response (GtkDialog  *dialog,
 {
     GObject    *first_screen_radio;
     GObject    *second_screen_radio;
-    GObject    *both_radio;
     XfceRRMode *mode1, *mode2;
     gboolean    use_first_screen;
     gboolean    use_second_screen;
-    gboolean    use_both;
     guint       first, second;
     gint        m, n, found;
 
@@ -951,14 +949,11 @@ display_settings_minimal_dialog_response (GtkDialog  *dialog,
 
         first_screen_radio = gtk_builder_get_object (builder, "radiobutton1");
         second_screen_radio = gtk_builder_get_object (builder, "radiobutton2");
-        both_radio = gtk_builder_get_object (builder, "radiobutton3");
 
         use_first_screen =
             gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (first_screen_radio));
         use_second_screen =
             gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (second_screen_radio));
-        use_both =
-            gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (both_radio));
 
         if (use_first_screen)
         {



More information about the Xfce4-commits mailing list