Fix go to line crash after GTK3 support adding

Closes https://github.com/mate-desktop/pluma/issues/75
This commit is contained in:
Stefano Karapetsas 2014-03-21 15:55:04 +01:00
parent 1dce8625e2
commit 9e01bddf6b
1 changed files with 4 additions and 2 deletions

View File

@ -1500,10 +1500,12 @@ ensure_search_window (PlumaView *view)
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (view));
#if GTK_CHECK_VERSION (3, 0, 0)
group = gtk_window_get_group (GTK_WINDOW (toplevel));
search_group = gtk_window_get_group (GTK_WINDOW (toplevel));
if (view->priv->search_window != NULL)
search_group = gtk_window_get_group (GTK_WINDOW (view->priv->search_window));
#else
group = GTK_WINDOW (toplevel)->group;
search_group = GTK_WINDOW (view->priv->search_window)->group;
if (view->priv->search_window != NULL)
search_group = GTK_WINDOW (view->priv->search_window)->group;
#endif
if (view->priv->search_window != NULL)