]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/pixbutton.h
ws cleanup
[lyx.git] / src / frontends / gnome / pixbutton.h
index 1d058ca132d6e2bd938307b2e83e301ebf463b03..bbec75cf5753dc1dc606e6a2ee045babc5625838 100644 (file)
@@ -1,9 +1,9 @@
 // -*- C++ -*-
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *       
+ *
  *          Copyright 2000 The LyX Team.
  *
  * ====================================================== */
@@ -28,8 +28,8 @@ namespace Gnome
     PixButton(string label, string pixname): Button()
     {
       Gtk::Box * b = manage( new Gtk::HBox() );
-      Gtk::Label * l = manage( new Gtk::Label(label) );
-      Gnome::Pixmap * p = Gtk::wrap( GNOME_PIXMAP( gnome_stock_pixmap_widget(NULL, pixname.c_str()) ) );
+      l = manage( new Gtk::Label(label) );
+      Gnome::Pixmap * p = Gtk::wrap( GNOME_PIXMAP( gnome_stock_pixmap_widget(0, pixname.c_str()) ) );
 
       b->set_spacing(3);
       b->children().push_back(Gtk::Box_Helpers::Element(*p, false, false));
@@ -38,7 +38,7 @@ namespace Gnome
       add(*b);
 
       accelkey_ = l->parse_uline(label);
-      
+
       l->show();
       p->show();
       b->show();
@@ -46,10 +46,12 @@ namespace Gnome
 
     guint get_accelkey() { return accelkey_; }
 
+    void set_text(string const & newlabel) { l->set_text(newlabel); }
+
   protected:
     guint accelkey_;
+    Gtk::Label * l;
   };
 }
 
 #endif
-