]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/gnomeBC.C
ws cleanup
[lyx.git] / src / frontends / gnome / gnomeBC.C
index d47decabcbbb8fd7509317da07c3436c4c611347..810e8a9d673aff7656c181748c605b3b068192e0 100644 (file)
@@ -5,6 +5,7 @@
 #endif
 
 #include "gnomeBC.h"
+#include "ButtonController.tmpl"
 #include "gtk--/widget.h"
 #include "gtk--/button.h"
 
@@ -20,14 +21,18 @@ 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)
 {
+#ifdef WITH_WARNINGS
 #warning Implement me! (be 20010329)
-       obj->set_text(label);
+#endif
+       // There is no methods set_text!
+       //obj->set_text(label);
 }