mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Gtk3: Fix the remaining gtk direct access violations
These could not be fixed in Gtk2 because the accessor functions were only added as of Gtk3.
This commit is contained in:
parent
42264efd1b
commit
2ca938bd67
@ -251,8 +251,7 @@ void go_option_menu_set_menu(GOOptionMenu *option_menu, GtkWidget *menu)
|
||||
|
||||
if (option_menu->menu)
|
||||
{
|
||||
if (option_menu->menu->active)
|
||||
gtk_menu_shell_cancel(option_menu->menu);
|
||||
gtk_menu_shell_cancel(option_menu->menu);
|
||||
|
||||
handle_menu_signals(option_menu, FALSE);
|
||||
|
||||
|
@ -1754,7 +1754,7 @@ gnc_tree_view_add_toggle_column (GncTreeView *view,
|
||||
gnc_tree_view_append_column (view, column);
|
||||
|
||||
/* Also add the full title to the object as a tooltip */
|
||||
gtk_widget_set_tooltip_text(column->button, column_title);
|
||||
gtk_widget_set_tooltip_text (gtk_tree_view_column_get_button (column), column_title);
|
||||
|
||||
return column;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user