Move delete-event signal connect from glade to C-File
This commit is contained in:
parent
88815bc007
commit
ea53890cd0
@ -6,7 +6,6 @@
|
|||||||
<property name="height_request">250</property>
|
<property name="height_request">250</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<signal name="delete-event" handler="on_window_close" swapped="no"/>
|
|
||||||
<child type="titlebar">
|
<child type="titlebar">
|
||||||
<object class="GtkHeaderBar">
|
<object class="GtkHeaderBar">
|
||||||
<property name="name">header</property>
|
<property name="name">header</property>
|
||||||
|
3
main.c
3
main.c
@ -247,6 +247,9 @@ int main(int argc, char **argv)
|
|||||||
g_signal_connect(GTK_WIDGET(gtk_builder_get_object(main_builder, "button-load-gds")),
|
g_signal_connect(GTK_WIDGET(gtk_builder_get_object(main_builder, "button-load-gds")),
|
||||||
"clicked", G_CALLBACK(on_load_gds), (gpointer)&open_data);
|
"clicked", G_CALLBACK(on_load_gds), (gpointer)&open_data);
|
||||||
|
|
||||||
|
/* Connect delete-event */
|
||||||
|
g_signal_connect(GTK_WIDGET(open_data.main_window), "delete-event", G_CALLBACK(on_window_close), NULL);
|
||||||
|
|
||||||
|
|
||||||
/* Connect Convert button */
|
/* Connect Convert button */
|
||||||
conv_data.tree_view = cell_tree;
|
conv_data.tree_view = cell_tree;
|
||||||
|
Loading…
Reference in New Issue
Block a user