]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/gnomeBC.C
A lean, clean and working start to the new, improved gnome frontend.
[lyx.git] / src / frontends / gnome / gnomeBC.C
index d47decabcbbb8fd7509317da07c3436c4c611347..e79bb70931c02689ca217a3f15a892010dcb94c1 100644 (file)
@@ -5,6 +5,7 @@
 #endif
 
 #include "gnomeBC.h"
+#include "ButtonController.tmpl"
 #include "gtk--/widget.h"
 #include "gtk--/button.h"
 
@@ -20,14 +21,12 @@ void gnomeBC::setWidgetEnabled(Gtk::Widget * obj, bool enabled)
 }
 
 
-void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled) 
+void gnomeBC::setButtonEnabled(Gtk::Button * btn, bool enabled)
 {
-       setWidgetEnabled(btn, enabled);
+       if (btn)
+               btn->set_sensitive(enabled);
 }
 
 
 void gnomeBC::setButtonLabel(Gtk::Button * obj, string const & label)
-{
-#warning Implement me! (be 20010329)
-       obj->set_text(label);
-}
+{}