From e8200195b9b2dc39d8fa6367638ade6d53318d7e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 29 Sep 2022 20:10:10 +0000 Subject: [PATCH] Auto sync2gitlab import of evolution-3.28.5-21.el8.src.rpm --- evolution-3.28.5-new-button.patch | 102 ++++++++++++++++++++++++++++++ evolution.spec | 9 ++- 2 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 evolution-3.28.5-new-button.patch diff --git a/evolution-3.28.5-new-button.patch b/evolution-3.28.5-new-button.patch new file mode 100644 index 0000000..9c0bec7 --- /dev/null +++ b/evolution-3.28.5-new-button.patch @@ -0,0 +1,102 @@ +diff -up evolution-3.28.5/src/shell/e-shell-window.c.new-button evolution-3.28.5/src/shell/e-shell-window.c +--- evolution-3.28.5/src/shell/e-shell-window.c.new-button 2018-07-30 15:37:05.000000000 +0200 ++++ evolution-3.28.5/src/shell/e-shell-window.c 2022-09-26 09:27:18.862555829 +0200 +@@ -47,6 +47,7 @@ enum { + enum { + CLOSE_ALERT, + SHELL_VIEW_CREATED, ++ UPDATE_NEW_MENU, + LAST_SIGNAL + }; + +@@ -120,6 +121,17 @@ shell_window_toolbar_update_new_menu (Gt + gtk_menu_tool_button_set_menu (menu_tool_button, menu); + } + ++static void ++shell_window_toolbar_update_new_menu_sig (EShellWindow *shell_window, ++ GtkMenuToolButton *menu_tool_button) ++{ ++ GtkWidget *menu; ++ ++ /* Update the "New" menu tool button submenu. */ ++ menu = e_shell_window_create_new_menu (shell_window); ++ gtk_menu_tool_button_set_menu (menu_tool_button, menu); ++} ++ + static gboolean + shell_window_active_view_to_prefer_item (GBinding *binding, + const GValue *source_value, +@@ -160,6 +172,8 @@ shell_window_set_notebook_page (EShellWi + g_return_if_fail (page_num >= 0); + + gtk_notebook_set_current_page (notebook, page_num); ++ ++ g_signal_emit (shell_window, signals[UPDATE_NEW_MENU], 0, NULL); + } + + static void +@@ -512,8 +526,8 @@ shell_window_construct_menubar (EShellWi + main_menu, "visible", + G_BINDING_SYNC_CREATE); + +- e_signal_connect_notify ( +- shell_window, "notify::active-view", ++ g_signal_connect ( ++ shell_window, "update-new-menu", + G_CALLBACK (shell_window_menubar_update_new_menu), NULL); + + return main_menu; +@@ -593,6 +607,11 @@ shell_window_construct_toolbar (EShellWi + G_CALLBACK (shell_window_toolbar_update_new_menu), + shell_window); + ++ g_signal_connect_object ( ++ shell_window, "update-new-menu", ++ G_CALLBACK (shell_window_toolbar_update_new_menu_sig), ++ item, 0); ++ + gtk_box_pack_start (GTK_BOX (box), toolbar, TRUE, TRUE, 0); + + toolbar = e_shell_window_get_managed_widget ( +@@ -1176,6 +1195,24 @@ e_shell_window_class_init (EShellWindowC + G_TYPE_NONE, 1, + E_TYPE_SHELL_VIEW); + ++ /* ++ * EShellWindow::update-new-menu ++ * @shell_window: the #EShellWindow ++ * ++ * Emitted when the 'New' menu should be updated. ++ * ++ * Since: 3.44.5 ++ */ ++ signals[UPDATE_NEW_MENU] = g_signal_new ( ++ "update-new-menu", ++ G_OBJECT_CLASS_TYPE (object_class), ++ G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, ++ 0, ++ NULL, NULL, ++ g_cclosure_marshal_VOID__VOID, ++ G_TYPE_NONE, 0, ++ G_TYPE_NONE); ++ + binding_set = gtk_binding_set_by_class (class); + gtk_binding_entry_add_signal ( + binding_set, GDK_KEY_Escape, 0, "close-alert", 0); +@@ -2029,6 +2066,8 @@ e_shell_window_register_new_item_actions + G_OBJECT (action), + "primary", GINT_TO_POINTER (TRUE)); + } ++ ++ g_signal_emit (shell_window, signals[UPDATE_NEW_MENU], 0, NULL); + } + + /** +@@ -2106,4 +2145,6 @@ e_shell_window_register_new_source_actio + G_OBJECT (action), + "backend-name", (gpointer) backend_name); + } ++ ++ g_signal_emit (shell_window, signals[UPDATE_NEW_MENU], 0, NULL); + } diff --git a/evolution.spec b/evolution.spec index a409585..81b960d 100644 --- a/evolution.spec +++ b/evolution.spec @@ -31,7 +31,7 @@ Name: evolution Version: 3.28.5 -Release: 20%{?dist} +Release: 21%{?dist} Group: Applications/Productivity Summary: Mail and calendar client for GNOME License: GPLv2+ and GFDL @@ -102,6 +102,9 @@ Patch15: evolution-3.28.5-frame-flattenning.patch # RH bug #2127019 Patch16: evolution-3.28.5-contacts-prefer-orig-value.patch +# RH bug #2129702 +Patch17: evolution-3.28.5-new-button.patch + ## Dependencies ### Requires: %{_bindir}/killall @@ -288,6 +291,7 @@ the functionality of the installed %{name} package. %patch14 -p1 -b .cmake-variable-name-comparison %patch15 -p1 -b .frame-flattenning %patch16 -p1 -b .contacts-prefer-orig-value +%patch17 -p1 -b .new-button # Remove the welcome email from Novell for inbox in src/mail/default/*/Inbox; do @@ -586,6 +590,9 @@ grep -v "/usr/share/locale" evolution.lang > help.lang %endif %changelog +* Mon Sep 26 2022 Milan Crha - 3.28.5-21 +- Resolves: #2129702 (EShellWindow: The 'New' menu is not filled after start) + * Thu Sep 15 2022 Milan Crha - 3.28.5-20 - Resolves: #2127019 (Contacts: Prefer original value only when filled on contact merge)