provide Tabbable::change_visibility(), which has slightly odd semantics that are...
[ardour.git] / libs / gtkmm2ext / grouped_buttons.cc
index b16b983d02d605c26289d95b29b0e77ad0c5aeff..48a2ed1ab03e32fc64262305612c256a1d47d8fb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2001 Paul Davis 
+    Copyright (C) 2001 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -46,12 +46,12 @@ GroupedButtons::GroupedButtons (uint32_t nbuttons, uint32_t first_active)
        for (uint32_t n = 0; n < nbuttons; ++n) {
 
                Gtk::ToggleButton *button;
-               
+
                button = manage (new (Gtk::ToggleButton));
-               
+
                if (n == current_active) {
                        button->set_active (true);
-               } 
+               }
 
                button->signal_clicked().connect (sigc::bind (mem_fun (*this, &GroupedButtons::one_clicked), n));
                buttons.push_back (button);
@@ -91,6 +91,6 @@ GroupedButtons::one_clicked (uint32_t which)
                   it as inactive causes a segfault ...
                */
 
-               gtk_idle_add (reactivate_button, buttons[which]);
+               g_idle_add (reactivate_button, buttons[which]);
        }
 }