refactoring, expand interface
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
|
||||
#include <gtkmm/messagedialog.h>
|
||||
|
||||
view_loggin::view_loggin(conexion *con):button("check"),box(Gtk::ORIENTATION_VERTICAL),
|
||||
box_user(Gtk::ORIENTATION_HORIZONTAL), box_pass(Gtk::ORIENTATION_HORIZONTAL)
|
||||
view_loggin::view_loggin(conexion *con):box_user(Gtk::ORIENTATION_HORIZONTAL), box_pass(Gtk::ORIENTATION_HORIZONTAL),button("check"), box(Gtk::ORIENTATION_VERTICAL)
|
||||
{
|
||||
this->con=con;
|
||||
|
||||
set_title("loggin");
|
||||
this->set_title("loggin");
|
||||
this->con=con;
|
||||
set_border_width(5);
|
||||
|
||||
this->user.set_text("user");
|
||||
@@ -35,7 +34,6 @@ view_loggin::view_loggin(conexion *con):button("check"),box(Gtk::ORIENTATION_VER
|
||||
this->box.set_spacing(10);
|
||||
|
||||
this->add(box);
|
||||
|
||||
show_all_children();
|
||||
}
|
||||
|
||||
@@ -48,7 +46,7 @@ void view_loggin::on_button_clicked(){
|
||||
this->hide();
|
||||
}else{
|
||||
this->login=false;
|
||||
Gtk::MessageDialog err(*this,"error", false, Gtk::MessageType::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
Gtk::MessageDialog err("error", false, Gtk::MessageType::MESSAGE_ERROR, Gtk::BUTTONS_OK, true);
|
||||
err.set_secondary_text("Bad password or username");
|
||||
err.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user