[gtkada] Generating a handler for event of top window with gate

ludovic.brenta at insalien.org ludovic.brenta at insalien.org
Sun Sep 14 12:59:31 CEST 2003


Hello,

I am toying with glade 2.0.0 and gate 2.2.0 on GNU/Linux.  I have a
top level window containing a number of widgets.  The generated Ada
code compiles and runs just fine, except that the program does not
return when I click on the window manager's close button.  So, I'm
trying to add a handler for the delete_event signal.  Here is a
snippet of my .glade file:

<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">

<glade-interface>

<widget class="GtkWindow" id="top_window">
  <property name="visible">True</property>
  <property name="title" translatable="yes">Top window</property>
  <property name="type">GTK_WINDOW_TOPLEVEL</property>
  <property name="window_position">GTK_WIN_POS_NONE</property>
  <property name="modal">False</property>
  <property name="resizable">True</property>
  <property name="destroy_with_parent">False</property>
  <signal name="delete_event" handler="on_top_window_delete_event" last_modification_time="Sun, 14 Sep 2003 10:05:42 GMT"/>

  <!-- Here, there are a number of child widgets -->

</widget>

</glade-interface>


My problem is that gate does not seem to generate any handler for the
delete_event.  It does generate handlers for signals sent to the child
widgets, however.  Also, glade generates C code with the handler for
delete_event on the top-level widget, so I suspect this is a bug in
gate.

-- 
Ludovic Brenta.




More information about the gtkada mailing list