From e3ecd214225fd59f840183882e8feb219c97cc21 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Wed, 31 Mar 2010 19:38:13 +0200 Subject: [PATCH] Replace GTK_WIDGET_MAPPED() with gtk_widget_get_mapped() --- libmisc/ev-page-action.c | 2 +- shell/ev-sidebar-links.c | 2 +- shell/ev-sidebar-thumbnails.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libmisc/ev-page-action.c b/libmisc/ev-page-action.c index cda7012e..df2357dc 100644 --- a/libmisc/ev-page-action.c +++ b/libmisc/ev-page-action.c @@ -193,7 +193,7 @@ ev_page_action_grab_focus (EvPageAction *page_action) proxy = EV_PAGE_ACTION_WIDGET (proxies->data); - if (GTK_WIDGET_MAPPED (GTK_WIDGET (proxy))) + if (gtk_widget_get_mapped (GTK_WIDGET (proxy))) ev_page_action_widget_grab_focus (proxy); } } diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index 4c2b7fe8..569fdd51 100644 --- a/shell/ev-sidebar-links.c +++ b/shell/ev-sidebar-links.c @@ -542,7 +542,7 @@ ev_sidebar_links_set_current_page (EvSidebarLinks *sidebar_links, GtkTreeIter iter; /* Widget is not currently visible */ - if (!GTK_WIDGET_MAPPED (sidebar_links)) + if (!gtk_widget_get_mapped (GTK_WIDGET (sidebar_links))) return; selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (sidebar_links->priv->tree_view)); diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c index 16fe3766..ad2c09f2 100644 --- a/shell/ev-sidebar-thumbnails.c +++ b/shell/ev-sidebar-thumbnails.c @@ -503,7 +503,7 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails) gint wy2; /* Widget is not currently visible */ - if (!GTK_WIDGET_MAPPED (sidebar_thumbnails)) + if (!gtk_widget_get_mapped (GTK_WIDGET (sidebar_thumbnails))) return; if (priv->vadjustment->page_size == 0) -- 2.43.5