Date:2010-02-20 21:10:20 (10 years 5 months ago)
Author:Mirko Lindner
Commit:1d03169f6e06eae9d147e77cedb87344ed23b857
Message:updates to dialog classes

Signed-off-by: Mirko Lindner <mirko@sharism.cc>
Files: src/message_dialog.cc (1 diff)
src/message_dialog.hh (1 diff)
src/search_dialog.cc (1 diff)

Change Details

src/message_dialog.cc
2525
2626message_dialog::message_dialog(main_window* parent, std::string title, std::string txt)
2727{
28    Gtk::Dialog dialog(title, parent, true);
2928
3029    Gtk::Label label(txt);
31    dialog.get_vbox()->pack_start(label, true, true);
32// Gtk::Entry entry;
33// entry.set_text("");
34// dialog.get_vbox()->pack_start(entry, true, true);
35
36// dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
37    dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
38    dialog.show_all();
39    int result = dialog.run();
30    this->get_vbox()->pack_start(label, true, true);
31    this->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
32    this->show_all();
33    int result = this->run();
4034    if (result == Gtk::RESPONSE_OK) {
4135
4236    } else {
src/message_dialog.hh
2929
3030    public:
3131      message_dialog(main_window* parent, std::string, std::string);
32            message_dialog(main_window* parent, int cat);
3233
3334};
3435
src/search_dialog.cc
2222#include "search_dialog.hh"
2323#include "vido.hh"
2424#include <gtkmm.h>
25
25#include "main_window.hh"
2626
2727search_dialog::search_dialog(main_window* parent, const Glib::ustring& input)
2828{
29
2930    Gtk::Dialog dialog("Search", parent, true);
3031
3132    Gtk::Label label("Enter search Term:");

Archive Download the corresponding diff file

Branches:
development
master



interactive