--- /dev/null
+# Makefile temporal
+#
+# $Id$
+#
+
+CXXFLAGS=-Wall -g `pkg-config --cflags libglademm-2.0`
+LDFLAGS=`pkg-config --libs libglademm-2.0`
+
+TARGETS=main
+
+all: $(TARGETS)
+
+h_files=$(wildcard *.h)
+cpp_files=$(wildcard *.cpp)
+o_files=$(cpp_files:.cpp=.o)
+
+main: $(o_files)
+
+clean:
+ rm -f $(TARGETS) $(o_files)
btn_codo->signal_drag_data_get().connect( SigC::slot(*this, &Constructor::on_btn_codo_drag_get));
btn_tanque->signal_drag_data_get().connect( SigC::slot(*this, &Constructor::on_btn_tanque_drag_get));
- //main_menu_quit->signal_activate().connect(SigC::slot(*this, &Constructor::on_main_menu_quit));
+ main_menu_quit->signal_activate().connect(SigC::slot(*this, &Constructor::on_main_menu_quit));
// Señales para cambiar el icono cuando empieza el drag.
btn_canio->signal_drag_begin().connect( SigC::slot(*this, &Constructor::on_canio_drag_begin));
gtk_selection_data_set(selection_data, selection_data->target, 8,(const guchar*)"item_tanque.png",15);
}
-void Constructor::on_main_menu_quit(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time)
+void Constructor::on_main_menu_quit(void)
{
Gtk::Main::quit();
}
</child>
<child>
- <widget class="GtkImageMenuItem" id="quit1">
+ <widget class="GtkImageMenuItem" id="main_menu_quit">
<property name="visible">True</property>
<property name="label">gtk-quit</property>
<property name="use_stock">True</property>
virtual void on_btn_y_drag_get(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time);
virtual void on_btn_codo_drag_get(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time);
virtual void on_btn_tanque_drag_get(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time);
- virtual void on_main_menu_quit(const Glib::RefPtr<Gdk::DragContext>& context, GtkSelectionData* selection_data, guint info, guint time);
+ virtual void on_main_menu_quit(void);
// señales para cambiar el icono.
virtual void on_canio_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);