mirror of
git://projects.qi-hardware.com/vido.git
synced 2024-12-22 08:45:12 +02:00
updates to dialog classes
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
parent
e7a817a3c7
commit
1d03169f6e
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
@ -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:");
|
||||
|
Loading…
Reference in New Issue
Block a user