From a2edf9d3cd506416500e5f548aa396f0ebe38ba0 Mon Sep 17 00:00:00 2001 From: Roberto Kok Date: Wed, 20 Nov 2024 01:56:04 +0800 Subject: [PATCH] Set tooltip text on the outer tab container again So it can be updated by main_window_update_page_long_name --- gnucash/gnome-utils/gnc-main-window.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gnucash/gnome-utils/gnc-main-window.cpp b/gnucash/gnome-utils/gnc-main-window.cpp index 2fb40ec92e4..b77f41851a0 100644 --- a/gnucash/gnome-utils/gnc-main-window.cpp +++ b/gnucash/gnome-utils/gnc-main-window.cpp @@ -3315,6 +3315,12 @@ gnc_main_window_open_page (GncMainWindow *window, tab_container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); + text = gnc_plugin_page_get_page_long_name(page); + if (text) + { + gtk_widget_set_tooltip_text(tab_container, text); + } + if (g_strcmp0 (gnc_plugin_page_get_plugin_name (page), "GncPluginPageAccountTree") == 0) gtk_widget_set_name (GTK_WIDGET(tab_container), "gnc-id-account-page-tab-box"); @@ -3344,12 +3350,6 @@ gnc_main_window_open_page (GncMainWindow *window, else gtk_box_pack_start (GTK_BOX (tab_content), label, TRUE, TRUE, 0); - text = gnc_plugin_page_get_page_long_name(page); - if (text) - { - gtk_widget_set_tooltip_text(tab_clickable_area, text); - } - entry = gtk_entry_new(); gtk_widget_hide (entry); gtk_box_pack_start (GTK_BOX (tab_content), entry, TRUE, TRUE, 0);