1
0
mirror of git://projects.qi-hardware.com/vido.git synced 2024-12-22 13:55:30 +02:00

updates to dialog classes

Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
Mirko Lindner 2010-02-20 21:10:20 +01:00
parent e7a817a3c7
commit 1d03169f6e
3 changed files with 7 additions and 11 deletions

View File

@ -25,18 +25,12 @@
message_dialog::message_dialog(main_window* parent, std::string title, std::string txt)
{
Gtk::Dialog dialog(title, parent, true);
Gtk::Label label(txt);
dialog.get_vbox()->pack_start(label, true, true);
// Gtk::Entry entry;
// entry.set_text("");
// dialog.get_vbox()->pack_start(entry, true, true);
// dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
dialog.show_all();
int result = dialog.run();
this->get_vbox()->pack_start(label, true, true);
this->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
this->show_all();
int result = this->run();
if (result == Gtk::RESPONSE_OK) {
} else {

View File

@ -29,6 +29,7 @@ class message_dialog : public Gtk::Dialog{
public:
message_dialog(main_window* parent, std::string, std::string);
message_dialog(main_window* parent, int cat);
};

View File

@ -22,10 +22,11 @@
#include "search_dialog.hh"
#include "vido.hh"
#include <gtkmm.h>
#include "main_window.hh"
search_dialog::search_dialog(main_window* parent, const Glib::ustring& input)
{
Gtk::Dialog dialog("Search", parent, true);
Gtk::Label label("Enter search Term:");