]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/FormError.C
ws cleanup
[lyx.git] / src / frontends / gnome / FormError.C
index d95ec3cc65916ab1579de32b735962dfcf08076f..3654e5d93659276e0ab731cc1feb42444fd240a6 100644 (file)
@@ -1,10 +1,10 @@
 /* This file is part of
  * =================================================
- * 
+ *
  *          LyX, The Document Processor
  *          Copyright 1995-2000 The LyX Team.
  *
- * ================================================= 
+ * =================================================
  *
  * \author Baruch Even
  */
 #include <gtk--/text.h>
 
 FormError::FormError(ControlError & c)
-       : FormCB<ControlError>(c, "diaerror.glade", "DiaError")
+       : FormCB<ControlError>(c, "FormError")
 {}
 
 
 void FormError::build()
 {
        // Connect the buttons.
-       close_btn()->clicked.connect(SigC::slot(this, &FormError::CloseClicked));
+       button_close()->clicked.connect(SigC::slot(this, &FormError::CloseClicked));
 
        // Manage the buttons state
-       bc().setCancel(close_btn());
+       bc().setCancel(button_close());
 
        // Make sure everything is in the correct state.
        bc().refresh();
@@ -44,14 +44,12 @@ void FormError::update()
        textarea()->insert(controller().params());
 }
 
-
-Gtk::Button * FormError::close_btn() const
+Gtk::Button * FormError::button_close() const
 {
-       return getWidget<Gtk::Button>("button_close");
+       return getWidget<Gtk::Button>("r_button_close");
 }
 
-
 Gtk::Text * FormError::textarea() const
 {
-       return getWidget<Gtk::Text>("textarea");
+       return getWidget<Gtk::Text>("r_textarea");
 }