[evince] Replace GTK_WIDGET_MAPPED() with gtk_widget_get_mapped()
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Replace GTK_WIDGET_MAPPED() with gtk_widget_get_mapped()
- Date: Wed, 31 Mar 2010 17:40:10 +0000 (UTC)
commit e3ecd214225fd59f840183882e8feb219c97cc21
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Wed Mar 31 19:38:13 2010 +0200
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 cda7012..df2357d 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 4c2b7fe..569fdd5 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 16fe376..ad2c09f 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]