summaryrefslogtreecommitdiff
path: root/saedit/interface.h
diff options
context:
space:
mode:
authorVasily_Makarov <danilka.pro@gmail.com>2011-06-13 22:40:54 +0400
committerVasily_Makarov <danilka.pro@gmail.com>2011-06-13 22:40:54 +0400
commitfbbc5f2fcef28547ac5420f68fc5645e4c429d94 (patch)
tree9fbf0dc06e3f496137146fc876ad3f93717a6967 /saedit/interface.h
parent5e2ebc5c3c09fd219e7002b1ff6d25d5306c5356 (diff)
downloadevol-tools-fbbc5f2fcef28547ac5420f68fc5645e4c429d94.tar.gz
evol-tools-fbbc5f2fcef28547ac5420f68fc5645e4c429d94.tar.bz2
evol-tools-fbbc5f2fcef28547ac5420f68fc5645e4c429d94.tar.xz
evol-tools-fbbc5f2fcef28547ac5420f68fc5645e4c429d94.zip
saedit: Add find dialog
Diffstat (limited to 'saedit/interface.h')
-rw-r--r--saedit/interface.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/saedit/interface.h b/saedit/interface.h
index 97307dd..0fa0ef6 100644
--- a/saedit/interface.h
+++ b/saedit/interface.h
@@ -36,6 +36,8 @@ void set_up_interface() {
GtkAccelGroup *ag = gtk_accel_group_new();
gtk_window_add_accel_group(win, ag);
+ find_dialog = find_window_new(win);
+
GtkWidget *fcdialog = gtk_file_chooser_dialog_new(_("Open XML source file"), win, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
vbox = gtk_vbox_new(FALSE, 0);
@@ -59,6 +61,21 @@ void set_up_interface() {
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), menu);
gtk_menu_shell_append(GTK_MENU_SHELL(menubar), menuitem);
+ //Search menu
+ menu = gtk_menu_new();
+ gtk_menu_set_accel_group(menu, ag);
+
+ menuitem = gtk_menu_item_new_with_label(_("Find..."));
+ g_signal_connect(menuitem, "activate", show_find_dialog, NULL);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
+
+ gtk_menu_item_set_accel_path(GTK_MENU_ITEM(menuitem), "<MenuItems>/Search/Find");
+ gtk_accel_map_change_entry("<MenuItems>/Search/Find", gdk_keyval_from_name("F"), GDK_CONTROL_MASK, TRUE);
+
+ menuitem = gtk_menu_item_new_with_label(_("Search"));
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), menu);
+ gtk_menu_shell_append(GTK_MENU_SHELL(menubar), menuitem);
+
//View menu
menu = gtk_menu_new();
gtk_menu_set_accel_group(menu, ag);