[balsa/gtk3] Restore Settings submenu on app-menu
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Restore Settings submenu on app-menu
- Date: Tue, 23 Jul 2013 03:21:22 +0000 (UTC)
commit 6c0acc421b94eaa74adfcb9ced82348354a96085
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Mon Jul 22 23:20:43 2013 -0400
Restore Settings submenu on app-menu
* src/main-window.c (toolbars_activated), (identities_activated),
(bw_set_menus): restore Settings submenu.
ChangeLog | 5 +++++
src/main-window.c | 27 +++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5be16c0..34f7484 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-07-22 Peter Bloomfield
+ * src/main-window.c (toolbars_activated), (identities_activated),
+ (bw_set_menus): restore Settings submenu.
+
+2013-07-22 Peter Bloomfield
+
* src/toolbar-factory.c (tm_load_model): do not load stale
options.
diff --git a/src/main-window.c b/src/main-window.c
index 309302d..9303756 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -959,6 +959,31 @@ new_imap_subfolder_activated(GSimpleAction * action,
}
static void
+toolbars_activated(GSimpleAction * action,
+ GVariant * parameter,
+ gpointer user_data)
+{
+ customize_dialog_cb(user_data, user_data);
+}
+
+static void
+identities_activated(GSimpleAction * action,
+ GVariant * parameter,
+ gpointer user_data)
+{
+ GtkWindow *window = GTK_WINDOW(user_data);
+
+ libbalsa_identity_config_dialog(window,
+ &balsa_app.identities,
+ &balsa_app.current_ident,
+#if ENABLE_ESMTP
+ balsa_app.smtp_servers,
+#endif /* ENABLE_ESMTP */
+ (void(*)(gpointer))
+ balsa_identities_changed);
+}
+
+static void
address_book_activated(GSimpleAction * action,
GVariant * parameter,
gpointer user_data)
@@ -1928,6 +1953,8 @@ bw_set_menus(BalsaWindow * window)
{"new-imap-box", new_imap_box_activated},
{"new-imap-folder", new_imap_folder_activated},
{"new-imap-subfolder", new_imap_subfolder_activated},
+ {"toolbars", toolbars_activated},
+ {"identities", identities_activated},
{"address-book", address_book_activated},
{"prefs", prefs_activated},
{"help", help_activated},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]