From 8c66de71aa46a4a20f47b7df17b49ce0d1e6b6d6 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 26 Oct 2003 19:57:39 +0000 Subject: [PATCH] =?utf8?q?-=20Arreglo=20el=20pedito=20por=20el=20que=20no?= =?utf8?q?=20compilaba=20al=20conectar=20la=20se=C3=B1al=20=20=20on=5Fmain?= =?utf8?q?=5Fmenu=5Fquit.=20El=20problema=20era=20que=20estaba=20mal=20el?= =?utf8?q?=20prototipo=20(copy&paste=20=20=20fallido=3F=20:).=20La=20se?= =?utf8?q?=C3=B1al=20'activate'=20no=20toma=20ningun=20parametro.=20-=20Ag?= =?utf8?q?regue=20un=20Makefile=20temporal=20(me=20ponia=20muy=20nervioso?= =?utf8?q?=20hacer=20el=20g++=20a=20mano=20y=20=20=20tardaba=20mucho=20cad?= =?utf8?q?a=20vez=20que=20compilaba=20:)=20-=20Hice=20que=20expanda=20los?= =?utf8?q?=20keywords=20del=20svn=20en=20los=20archivos=20de=20texto=20($I?= =?utf8?q?d$,=20etc).?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Constructor/Makefile | 20 ++++++++++++++++++++ Constructor/constructor.cpp | 4 ++-- Constructor/constructor.glade | 2 +- Constructor/constructor.h | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 Constructor/Makefile diff --git a/Constructor/Makefile b/Constructor/Makefile new file mode 100644 index 0000000..4347391 --- /dev/null +++ b/Constructor/Makefile @@ -0,0 +1,20 @@ +# 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) diff --git a/Constructor/constructor.cpp b/Constructor/constructor.cpp index a6c418e..ca97953 100644 --- a/Constructor/constructor.cpp +++ b/Constructor/constructor.cpp @@ -37,7 +37,7 @@ Constructor::Constructor(BaseObjectType* cobject, const Glib::RefPtrsignal_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)); @@ -73,7 +73,7 @@ void Constructor::on_btn_tanque_drag_get(const Glib::RefPtr& c 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& context, GtkSelectionData* selection_data, guint info, guint time) +void Constructor::on_main_menu_quit(void) { Gtk::Main::quit(); } diff --git a/Constructor/constructor.glade b/Constructor/constructor.glade index 8cdf98d..cf3c90b 100644 --- a/Constructor/constructor.glade +++ b/Constructor/constructor.glade @@ -84,7 +84,7 @@ - + True gtk-quit True diff --git a/Constructor/constructor.h b/Constructor/constructor.h index 9158aac..1bb5013 100644 --- a/Constructor/constructor.h +++ b/Constructor/constructor.h @@ -36,7 +36,7 @@ class Constructor : public Gtk::Window { virtual void on_btn_y_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); virtual void on_btn_codo_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); virtual void on_btn_tanque_drag_get(const Glib::RefPtr& context, GtkSelectionData* selection_data, guint info, guint time); - virtual void on_main_menu_quit(const Glib::RefPtr& 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& context); -- 2.43.0