diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-application.c | 4 | ||||
-rw-r--r-- | shell/ev-sidebar-thumbnails.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c index 5a87014..b14a8a4 100644 --- a/shell/ev-application.c +++ b/shell/ev-application.c @@ -619,7 +619,7 @@ ev_application_open_uri_in_window (EvApplication *application, we can restore window size without flickering */ ev_window_open_uri (ev_window, uri, dest, mode, search_string); - if (!GTK_WIDGET_REALIZED (GTK_WIDGET (ev_window))) + if (!gtk_widget_get_realized (GTK_WIDGET (ev_window))) gtk_widget_realize (GTK_WIDGET (ev_window)); #ifdef GDK_WINDOWING_X11 @@ -709,7 +709,7 @@ ev_application_open_window (EvApplication *application, gtk_window_set_screen (GTK_WINDOW (new_window), screen); } - if (!GTK_WIDGET_REALIZED (new_window)) + if (!gtk_widget_get_realized (new_window)) gtk_widget_realize (new_window); #ifdef GDK_WINDOWING_X11 diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 87b9392..16fe376 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -510,7 +510,7 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails) return; if (priv->tree_view) { - if (! GTK_WIDGET_REALIZED (priv->tree_view)) + if (! gtk_widget_get_realized (priv->tree_view)) return; gtk_tree_view_convert_tree_to_bin_window_coords (GTK_TREE_VIEW (priv->tree_view), @@ -526,7 +526,7 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails) 1, wy2 -1, &path2, NULL, NULL, NULL); } else if (priv->icon_view) { - if (! GTK_WIDGET_REALIZED (priv->icon_view)) + if (! gtk_widget_get_realized (priv->icon_view)) return; if (! gtk_icon_view_get_visible_range (GTK_ICON_VIEW (priv->icon_view), &path, &path2)) return; |