[evince] Replace GTK_WIDGET_REALIZED() with gtk_widget_get_realized()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Replace GTK_WIDGET_REALIZED() with gtk_widget_get_realized()
- Date: Wed, 31 Mar 2010 17:39:49 +0000 (UTC)
commit f020f9ced6dfd3efadab6add9665066a4bd03a5f
Author: Hib Eris <hib hiberis nl>
Date: Mon Mar 29 16:54:13 2010 +0200
Replace GTK_WIDGET_REALIZED() with gtk_widget_get_realized()
libview/ev-view-presentation.c | 2 +-
libview/ev-view.c | 2 +-
shell/ev-application.c | 4 ++--
shell/ev-sidebar-thumbnails.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 17491ae..e033f12 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -831,7 +831,7 @@ ev_view_presentation_set_cursor (EvViewPresentation *pview,
return;
widget = GTK_WIDGET (pview);
- if (!GTK_WIDGET_REALIZED (widget))
+ if (!gtk_widget_get_realized (widget))
gtk_widget_realize (widget);
pview->cursor = view_cursor;
diff --git a/libview/ev-view.c b/libview/ev-view.c
index ee713d4..2837f0f 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4381,7 +4381,7 @@ on_adjustment_value_changed (GtkAdjustment *adjustment,
gint x, y;
GList *children, *l;
- if (! GTK_WIDGET_REALIZED (view))
+ if (!gtk_widget_get_realized (GTK_WIDGET (view)))
return;
if (view->hadjustment) {
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]