Implement Handler for Convert button
This commit is contained in:
parent
aea3b490ca
commit
ace8a1d8f5
@ -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
6
main.c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user