aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-02-11 10:30:46 +0800
committerJavier Jardón <jjardon@gnome.org>2010-02-11 22:48:02 +0800
commiteb55fc7974c51d26ec5e539d7214787d1fac9a07 (patch)
treea2cbab1f74151926bfc051a6dfc5569f0fb8e3a2 /lib
parent77c212067ef3f33c01a39a276f729d4099cb572b (diff)
downloadgsoc2013-epiphany-eb55fc7974c51d26ec5e539d7214787d1fac9a07.tar.gz
gsoc2013-epiphany-eb55fc7974c51d26ec5e539d7214787d1fac9a07.tar.zst
gsoc2013-epiphany-eb55fc7974c51d26ec5e539d7214787d1fac9a07.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c2
-rw-r--r--lib/widgets/ephy-spinner.c4
2 files changed, 3 insertions, 3 deletions
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));
}