Implement Handler for Convert button

This commit is contained in:
Mario Hüttel 2018-05-15 22:51:22 +02:00
parent aea3b490ca
commit ace8a1d8f5
2 changed files with 6 additions and 2 deletions

View File

@ -65,7 +65,7 @@
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkButton">
<object class="GtkButton" id="convert-button">
<property name="label">gtk-convert</property>
<property name="name">button-convert</property>
<property name="visible">True</property>

6
main.c
View File

@ -161,6 +161,7 @@ int main(int argc, char **argv)
GList *gds_libs = NULL;
GtkTreeView *cell_tree;
GtkTreeStore *cell_store;
GtkWidget *widget_generic;
struct open_button_data open_data;
@ -180,7 +181,10 @@ int main(int argc, char **argv)
open_data.main_window = GTK_WINDOW(gtk_builder_get_object(main_builder, "main-window"));
g_signal_connect(GTK_WIDGET(gtk_builder_get_object(main_builder, "button-load-gds")),
"clicked", G_CALLBACK(on_load_gds), (gpointer)&open_data);
/* Connect Convert button */
widget_generic = GTK_WIDGET(gtk_builder_get_object(main_builder, "convert-button"));
g_signal_connect(widget_generic, "clicked", G_CALLBACK(on_convert_clicked), NULL);
gtk_main();