diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-10 22:23:26 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-10 22:23:26 +0400 |
commit | e6961262ebcc6d146470876af9e5dc4fd3ac4442 (patch) | |
tree | fc54d4ac9f11ea73d72f241137f97d23505dee69 | |
parent | c6cb606d90d532e08efa5d28bdc67760347d7974 (diff) | |
download | evol-tools-e6961262ebcc6d146470876af9e5dc4fd3ac4442.tar.gz evol-tools-e6961262ebcc6d146470876af9e5dc4fd3ac4442.tar.bz2 evol-tools-e6961262ebcc6d146470876af9e5dc4fd3ac4442.tar.xz evol-tools-e6961262ebcc6d146470876af9e5dc4fd3ac4442.zip |
saedit: Restore open button
-rw-r--r-- | saedit/main.c | 6 | ||||
-rw-r--r-- | saedit/main.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/saedit/main.c b/saedit/main.c index 409ee81..565bfc2 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -79,6 +79,7 @@ void format_src_string(gchar *src) { } void open_xml_file(GtkButton *button, gpointer buffer) { + gtk_widget_set_sensitive(xml_file_open_button, TRUE); gchar *buf; size_t len; g_file_get_contents(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(xml_file_chooser_button)), &buf, &len, NULL); @@ -500,6 +501,11 @@ void set_up_interface() { gtk_box_pack_start(GTK_BOX(vbbox), xml_file_chooser_button, TRUE, TRUE, 0); g_signal_connect(xml_file_chooser_button, "file-set", G_CALLBACK(open_xml_file), sbuf); + xml_file_open_button = gtk_button_new_from_stock(GTK_STOCK_OPEN); + gtk_widget_set_sensitive(xml_file_open_button, FALSE); + gtk_box_pack_start(GTK_BOX(vbbox), xml_file_open_button, TRUE, TRUE, 0); + g_signal_connect(xml_file_open_button, "clicked", G_CALLBACK(open_xml_file), sbuf); + xml_file_save_button = gtk_button_new_from_stock(GTK_STOCK_SAVE); gtk_widget_set_sensitive(xml_file_save_button, FALSE); gtk_box_pack_start(GTK_BOX(vbbox), xml_file_save_button, TRUE, TRUE, 0); diff --git a/saedit/main.h b/saedit/main.h index d7b232b..c735dc9 100644 --- a/saedit/main.h +++ b/saedit/main.h @@ -62,6 +62,7 @@ GtkWidget *win = NULL; GtkWidget *darea = NULL; GtkWidget *data_folder_chooser_button = NULL; GtkWidget *xml_file_chooser_button = NULL; +GtkWidget *xml_file_open_button = NULL; GtkWidget *xml_file_save_button = NULL; GtkWidget *imagesets_combo_box = NULL; GtkWidget *actions_combo_box = NULL; |