]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/FormUrl.C
Remove unneeded files, we have switched to use the libglade and there is no
[lyx.git] / src / frontends / gnome / FormUrl.C
index b3b3a02b42b982b72acfd4d461a0d4124b336e93..f3b6f51b01a80fcd6017cb9a92d6ce44cd82d388 100644 (file)
 #include "gnomeBC.h"
 #include "FormUrl.h"
 
-#include <gnome--/dialog.h>
 #include <gtk--/entry.h>
 #include <gtk--/checkbutton.h>
 
 FormUrl::FormUrl(ControlUrl & c)
        : FormCB<ControlUrl>(c, "diainserturl.glade", "DiaInsertUrl")
-       , dialog_(0)
 {}
 
 
@@ -40,9 +38,6 @@ FormUrl::~FormUrl()
 
 void FormUrl::build()
 {
-       // Make sure the dialog is loaded.
-       dialog_ = dialog();
-
        // Connect the buttons.
        ok_btn()->clicked.connect(SigC::slot(this, &FormUrl::OKClicked));
        cancel_btn()->clicked.connect(SigC::slot(this, &FormUrl::CancelClicked));
@@ -82,22 +77,6 @@ void FormUrl::disconnect_signals()
 }
 
 
-void FormUrl::show()
-{
-       if (!dialog_)
-               build();
-       
-       update();
-       dialog_->show();
-}
-
-
-void FormUrl::hide()
-{
-       dialog_->hide();
-}
-
-
 void FormUrl::apply()
 {
        controller().params().setContents(url()->get_text());
@@ -135,11 +114,6 @@ bool FormUrl::validate() const
 }
 
 
-Gnome::Dialog * FormUrl::dialog()
-{
-       return getWidget<Gnome::Dialog>("DiaInsertUrl");
-}
-
 Gtk::Entry * FormUrl::url() const
 {
        return getWidget<Gtk::Entry>("url");