</child>
<child>
- <widget class="GtkImageMenuItem" id="salir1">
+ <widget class="GtkImageMenuItem" id="mnu_file_exit">
<property name="visible">True</property>
<property name="label">gtk-quit</property>
<property name="use_stock">True</property>
- <signal name="activate" handler="on_salir1_activate" last_modification_time="Thu, 16 Oct 2003 00:50:14 GMT"/>
- </widget>
- </child>
- </widget>
- </child>
- </widget>
- </child>
-
- <child>
- <widget class="GtkMenuItem" id="menuitem2">
- <property name="visible">True</property>
- <property name="label" translatable="yes">_Editar</property>
- <property name="use_underline">True</property>
-
- <child>
- <widget class="GtkMenu" id="menuitem2_menu">
-
- <child>
- <widget class="GtkImageMenuItem" id="cortar1">
- <property name="visible">True</property>
- <property name="label">gtk-cut</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="on_cortar1_activate" last_modification_time="Thu, 16 Oct 2003 00:50:14 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkImageMenuItem" id="copiar1">
- <property name="visible">True</property>
- <property name="label">gtk-copy</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="on_copiar1_activate" last_modification_time="Thu, 16 Oct 2003 00:50:14 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkImageMenuItem" id="pegar1">
- <property name="visible">True</property>
- <property name="label">gtk-paste</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="on_pegar1_activate" last_modification_time="Thu, 16 Oct 2003 00:50:14 GMT"/>
- </widget>
- </child>
-
- <child>
- <widget class="GtkImageMenuItem" id="borrar1">
- <property name="visible">True</property>
- <property name="label">gtk-delete</property>
- <property name="use_stock">True</property>
- <signal name="activate" handler="on_borrar1_activate" last_modification_time="Thu, 16 Oct 2003 00:50:14 GMT"/>
+ <signal name="activate" handler="on_mnu_exit_activate" last_modification_time="Thu, 16 Oct 2003 03:36:32 GMT"/>
</widget>
</child>
</widget>
<signal name="activate" handler="on_propiedades1_activate" last_modification_time="Thu, 16 Oct 2003 01:17:27 GMT"/>
<child internal-child="image">
- <widget class="GtkImage" id="image1">
+ <widget class="GtkImage" id="image3">
<property name="visible">True</property>
<property name="stock">gtk-properties</property>
<property name="icon_size">1</property>
</child>
<child>
- <widget class="button" id="barr_exit">
+ <widget class="button" id="bar_exit">
<property name="visible">True</property>
<property name="label">gtk-quit</property>
<property name="use_stock">True</property>
#include <gtkmm.h>
#include <libglademm.h>
#include <iostream>
+#include "mnu_file_exit.h"
int main (int argc, char **argv)
{
}
Gtk::Window* pWindow = 0;
+ MnuFileExit *mnu_file_exit = 0;
+ Gtk::Button *bar_exit;
refXml->get_widget("Principal", pWindow);
- if (pWindow) {
- client.run(*pWindow);
- }
+ refXml->get_widget_derived("mnu_file_exit", mnu_file_exit);
+ refXml->get_widget("bar_exit", bar_exit);
+ bar_exit->signal_clicked().connect( SigC::slot(Gtk::Main::quit) );
+ client.run(*pWindow);
return 0;
}