Set tooltip text on the outer tab container again

So it can be updated by main_window_update_page_long_name
This commit is contained in:
Roberto Kok 2024-11-20 01:56:04 +08:00
parent 7f0c41c1c7
commit a2edf9d3cd

View File

@ -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);