mirror of
git://projects.qi-hardware.com/vido.git
synced 2025-04-21 12:27:27 +03:00
make vido work again :)
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
46
src/message_dialog.cc
Normal file
46
src/message_dialog.cc
Normal file
@@ -0,0 +1,46 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2009 by Mirko Lindner *
|
||||
* mirko@qi-hardware.com *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the *
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include "config.h"
|
||||
#include "message_dialog.hh"
|
||||
#include "vido.hh"
|
||||
#include <gtkmm.h>
|
||||
|
||||
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();
|
||||
if (result == Gtk::RESPONSE_OK) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user