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 /saedit/main.c | |
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
Diffstat (limited to 'saedit/main.c')
-rw-r--r-- | saedit/main.c | 6 |
1 files changed, 6 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); |