diff options
author | Obey Arthur Liu <arthur@milliways.fr> | 2008-11-12 18:14:26 +0100 |
---|---|---|
committer | Obey Arthur Liu <arthur@milliways.fr> | 2008-11-12 18:14:26 +0100 |
commit | 61509e08c68bd256228ee8bb1c8d0f61da648dca (patch) | |
tree | 005058248a81fc8ffd4c77ec54247629a11e7980 /src/gtk | |
parent | 680804e41ef994f71feeec8789d3cc294c92a812 (diff) | |
download | aptitude-61509e08c68bd256228ee8bb1c8d0f61da648dca.tar.gz |
Implement and export a "Not implemented, yet" popup message function.
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/gui.cc | 10 | ||||
-rw-r--r-- | src/gtk/gui.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/gtk/gui.cc b/src/gtk/gui.cc index 1c18bd8f..d9ca5b95 100644 --- a/src/gtk/gui.cc +++ b/src/gtk/gui.cc @@ -702,6 +702,16 @@ namespace gui pKit->quit(); } + void do_notimplemented_message() + { + Gtk::MessageDialog dialog(*pMainWindow, + _("Not implemented"), + false, + Gtk::MESSAGE_INFO, Gtk::BUTTONS_OK, true); + dialog.set_secondary_text(_("This feature is not implemented, yet.")); + dialog.run(); + } + AptitudeWindow::AptitudeWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade) : Gtk::Window(cobject) { refGlade->get_widget_derived("main_notebook", pNotebook); diff --git a/src/gtk/gui.h b/src/gtk/gui.h index ef73baaa..a9964875 100644 --- a/src/gtk/gui.h +++ b/src/gtk/gui.h @@ -80,6 +80,9 @@ namespace gui void gtk_update(); + /** \brief Display a "Not implemented, yet." message. */ + void do_notimplemented_message(); + /** \brief Invoke tab_add on pMainWindow. */ void tab_add(Tab *tab); |