[epiphany] Use accessor functions instead direct access
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [epiphany] Use accessor functions instead direct access
- Date: Thu, 11 Feb 2010 14:49:03 +0000 (UTC)
commit eb55fc7974c51d26ec5e539d7214787d1fac9a07
Author: Javier Jardón <jjardon gnome org>
Date: Thu Feb 11 03:30:46 2010 +0100
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
configure.ac | 2 +-
lib/widgets/ephy-location-entry.c | 2 +-
lib/widgets/ephy-spinner.c | 4 ++--
src/ephy-fullscreen-popup.c | 2 +-
src/ephy-notebook.c | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ceb83c4..8555843 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,7 +94,7 @@ if test "$enable_maintainer_mode" = "yes"; then
fi
GLIB_REQUIRED=2.19.7
-GTK_REQUIRED=2.18.0
+GTK_REQUIRED=2.19.5
LIBXML_REQUIRED=2.6.12
LIBXSLT_REQUIRED=1.1.7
LIBSTARTUP_NOTIFICATION_REQUIRED=0.5
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 4887f73..cf34789 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 6540d0c..0772494 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));
}
diff --git a/src/ephy-fullscreen-popup.c b/src/ephy-fullscreen-popup.c
index 88d530d..8cefbef 100644
--- a/src/ephy-fullscreen-popup.c
+++ b/src/ephy-fullscreen-popup.c
@@ -348,7 +348,7 @@ ephy_fullscreen_popup_size_request (GtkWidget *widget,
GTK_WIDGET_CLASS (ephy_fullscreen_popup_parent_class)->size_request (widget, requisition);
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_get_realized (widget))
{
ephy_fullscreen_popup_update_position (popup);
}
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index d56710d..401f156 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -267,7 +267,7 @@ find_tab_num_at_pos (EphyNotebook *notebook, gint abs_x, gint abs_y)
tab = gtk_notebook_get_tab_label (nb, page);
g_return_val_if_fail (tab != NULL, -1);
- if (!GTK_WIDGET_MAPPED (GTK_WIDGET (tab)))
+ if (!gtk_widget_get_mapped (GTK_WIDGET (tab)))
{
page_num++;
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]