summaryrefslogtreecommitdiff
path: root/saedit
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2011-06-11 18:58:53 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2011-06-11 18:58:53 +0400
commit6b690adb749a211760ca2454e2823375fc10e429 (patch)
tree8f502cff14276d56b06578a8dea0181a5540512c /saedit
parent9a865d782702db9d50b9f74c682354f7031af7fc (diff)
downloadevol-tools-6b690adb749a211760ca2454e2823375fc10e429.tar.gz
evol-tools-6b690adb749a211760ca2454e2823375fc10e429.tar.bz2
evol-tools-6b690adb749a211760ca2454e2823375fc10e429.tar.xz
evol-tools-6b690adb749a211760ca2454e2823375fc10e429.zip
saedit: Add save and parse buttons shortcuts
Diffstat (limited to 'saedit')
-rw-r--r--saedit/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/saedit/main.c b/saedit/main.c
index 5274029..dd3419a 100644
--- a/saedit/main.c
+++ b/saedit/main.c
@@ -610,10 +610,14 @@ void set_up_interface() {
gtk_widget_set_sensitive(xml_file_save_button, FALSE);
gtk_box_pack_start(GTK_BOX(vbbox), xml_file_save_button, TRUE, TRUE, 0);
g_signal_connect(xml_file_save_button, "clicked", G_CALLBACK(save_to_xml_file), source_buffer);
+ gtk_widget_set_accel_path(xml_file_save_button, "<Buttons>/SaveXMLBuffer", ag);
+ gtk_accel_map_change_entry("<Buttons>/SaveXMLBuffer", gdk_keyval_from_name("S"), GDK_CONTROL_MASK, TRUE);
- button = gtk_button_new_with_label("Parse XML buffer");
+ button = gtk_button_new_with_label(_("Parse XML buffer"));
gtk_box_pack_start(GTK_BOX(vbbox), button, TRUE, TRUE, 0);
g_signal_connect(button, "clicked", G_CALLBACK(parse_xml_buffer), source_buffer);
+ gtk_widget_set_accel_path(button, "<Buttons>/ParseXMLBuffer", ag);
+ gtk_accel_map_change_entry("<Buttons>/ParseXMLBuffer", gdk_keyval_from_name("P"), GDK_CONTROL_MASK, TRUE);
label = gtk_label_new("");
gtk_label_set_markup(GTK_LABEL(label), markup_bold(_("Imagesets")));