Skip to content

Commit

Permalink
Replace GTK_WIDGET_MAPPED() with gtk_widget_get_mapped()
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Garcia Campos committed Mar 31, 2010
1 parent b225b63 commit e3ecd21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libmisc/ev-page-action.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion shell/ev-sidebar-links.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion shell/ev-sidebar-thumbnails.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e3ecd21

Please sign in to comment.