Re: Signal of a button dynamically created

2013-10-28 Thread Borja Mon Serrano
Thank you all guys, you're incredible! :) I've finally implemented the Jon Zabala's answer, I think it's the easiest. Thank you again!! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-deve

Signal of a button dynamically created

2013-10-28 Thread Borja Mon Serrano
Hi, I'm building a popup window that has a Gtk::Grid inside it. The first row has a form with three Gtk::Entry and a button to add the information to the program. The rest of the rows has the items created before in that way (just with Gtk::Label) and a button to remove the information. Like this:

Loading glade in a weird way

2013-09-16 Thread Borja Mon Serrano
Hi all! I'm developing an application using gtkmm with glade. The problem that I have is that when the main window is loaded, another window appears and it is the practical main window, that is to say, if you close that window you close the program. I attach an image of what is happening at [1].

Items on canvas disappear after saving file with filechooser dialog

2013-09-06 Thread Borja Mon Serrano
Hi all, I'm developing an app to create hierarchical finite state machines for a robot platform. For this app I need to save the automata designed in a xml file, so I launch a filechooser dialog when the user picks in the "save" button. Then, for saving the file, I iterate into the data structure

Re: Mouse events on a Cairo Context

2013-07-03 Thread Borja Mon Serrano
Hi, Thank you for your help, guys. Finally I tried with goocanvasmm and everything works fine, as I wanted. There are some simple examples in the libgoocanvasmm-2.0-doc package for Ubuntu, so I could deal with the problem :) The most similar example there is "moving_shapes". Thank you! __

Re: Mouse events on a Cairo Context

2013-07-01 Thread Borja Mon Serrano
Hi Colomban This is probably the simplest solution, it's meant for this kind of things. > > 4 - Handle the events yourself: listen to the > button-press-event/button-release-event of your DrawingArea and do the > math to know whether the click is on your circle or not. Maybe Cairo > has this ki

Mouse events on a Cairo Context

2013-06-30 Thread Borja Mon Serrano
Hi all, I'm developing an application with C++ and GTK3 but I'm stucked. I've created a visual application with glade which has three columns and one of them, the middle one, is a DrawingArea. In that DrawingArea I want to draw some circles at the point I want to after pressing a button and have d