X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/1293383805edf6a327622ad8edc7a5e5687795dd..379ca6a2fb8c1feb74fb2e5cd78a5a1f5a2f7ab7:/viewer/key_dialog.cpp?ds=sidebyside diff --git a/viewer/key_dialog.cpp b/viewer/key_dialog.cpp index dfe5c8f..0426458 100644 --- a/viewer/key_dialog.cpp +++ b/viewer/key_dialog.cpp @@ -4,16 +4,15 @@ KeyDialog::KeyDialog(const Glib::ustring& title, bool dato): Gtk::Dialog(title + " Clave", true, true), - label_key("Clave"), label_val("Dato") + label_key("Clave : "), label_val("Dato : ") { - hbox_key.add(label_key); - hbox_key.add(entry_key); - get_vbox()->add(hbox_key); + get_vbox()->add(table); + table.attach (label_key, 0, 1, 0, 1, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8); + table.attach (entry_key, 1, 2, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8); if (dato) { - hbox_val.add(label_val); - hbox_val.add(entry_val); - get_vbox()->add(hbox_val); + table.attach (label_val, 0, 1, 1, 2, Gtk::FILL|Gtk::SHRINK, Gtk::SHRINK, 8, 8); + table.attach (entry_val, 1, 2, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::SHRINK, 8, 8); } add_button(Gtk::StockID("gtk-cancel"), Gtk::RESPONSE_CANCEL); add_button(Gtk::StockID("gtk-ok"), Gtk::RESPONSE_OK);