Skip to content

Commit

Permalink
Set tooltip text on the outer tab container again
Browse files Browse the repository at this point in the history
So it can be updated by main_window_update_page_long_name
  • Loading branch information
rkok committed Nov 19, 2024
1 parent 7f0c41c commit a2edf9d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions gnucash/gnome-utils/gnc-main-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a2edf9d

Please sign in to comment.