From eb55fc7974c51d26ec5e539d7214787d1fac9a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 11 Feb 2010 03:30:46 +0100 Subject: Use accessor functions instead direct access Substitute GTK_WIDGET_MAPPED() and GTK_WIDGET_REALIZED() GTK+ required version bumped to 2.19.5 https://bugzilla.gnome.org/show_bug.cgi?id=595791 --- lib/widgets/ephy-location-entry.c | 2 +- lib/widgets/ephy-spinner.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/widgets') diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 4887f73e0..cf347893c 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -1327,7 +1327,7 @@ ephy_location_entry_set_location (EphyLocationEntry *entry, * bug #155824. So we save the selection iff the clipboard was owned by * the location entry. */ - if (GTK_WIDGET_REALIZED (GTK_WIDGET (priv->entry))) + if (gtk_widget_get_realized (GTK_WIDGET (priv->entry))) { clipboard = gtk_widget_get_clipboard (priv->entry, GDK_SELECTION_PRIMARY); diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 6540d0cb2..077249443 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -902,7 +902,7 @@ ephy_spinner_start (EphySpinner *spinner) details->spinning = TRUE; - if (GTK_WIDGET_MAPPED (GTK_WIDGET (spinner)) && + if (gtk_widget_get_mapped (GTK_WIDGET (spinner)) && details->timer_task == 0 && ephy_spinner_load_images (spinner)) { @@ -937,7 +937,7 @@ ephy_spinner_stop (EphySpinner *spinner) { ephy_spinner_remove_update_callback (spinner); - //if (GTK_WIDGET_MAPPED (GTK_WIDGET (spinner))) + //if (gtk_widget_get_mapped (GTK_WIDGET (spinner))) { gtk_widget_queue_draw (GTK_WIDGET (spinner)); } -- cgit v1.2.3