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:
Geert Janssens 2015-08-29 17:56:09 +02:00 committed by Geert Janssens
parent 42264efd1b
commit 2ca938bd67
2 changed files with 2 additions and 3 deletions

View File

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

View File

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