[epiphany-extensions] all: don't use GTK_WIDGET_REALIZED
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany-extensions] all: don't use GTK_WIDGET_REALIZED
- Date: Sun, 28 Mar 2010 08:33:09 +0000 (UTC)
commit a4ee72be71907ef63c0783a1edf809331668e51a
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Mon Mar 15 22:53:45 2010 -0500
all: don't use GTK_WIDGET_REALIZED
bump gtk+ requirement to something more or less safe.
configure.ac | 2 +-
extensions/adblock/ephy-adblock-extension.c | 2 +-
.../error-viewer/ephy-error-viewer-extension.c | 2 +-
extensions/page-info/ephy-page-info-extension.c | 2 +-
extensions/rss/ephy-rss-extension.c | 2 +-
extensions/select-stylesheet/ephy-css-menu.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9d598a1..43faedb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,7 +108,7 @@ GNOME_DOC_INIT
EPIPHANY_REQUIRED=2.27.4
LIBXML_REQUIRED=2.6.0
LIBGLIB_REQUIRED=2.15.5
-LIBGTK_REQUIRED=2.11.6
+LIBGTK_REQUIRED=2.19.5
AC_SUBST([EPIPHANY_REQUIRED])
AC_SUBST([LIBXML_REQUIRED])
diff --git a/extensions/adblock/ephy-adblock-extension.c b/extensions/adblock/ephy-adblock-extension.c
index c7cf7b2..3290c9b 100644
--- a/extensions/adblock/ephy-adblock-extension.c
+++ b/extensions/adblock/ephy-adblock-extension.c
@@ -391,7 +391,7 @@ switch_page_cb (GtkNotebook *notebook,
EphyWindow *window)
{
/* FIXME: this shouldn't happen anymore with gtk 2.10 ! Test & remove */
- if (GTK_WIDGET_REALIZED (window) == FALSE) return; /* on startup */
+ if (gtk_widget_get_realized (window) == FALSE) return; /* on startup */
update_statusbar (window);
}
diff --git a/extensions/error-viewer/ephy-error-viewer-extension.c b/extensions/error-viewer/ephy-error-viewer-extension.c
index f09fb66..4d5fb80 100644
--- a/extensions/error-viewer/ephy-error-viewer-extension.c
+++ b/extensions/error-viewer/ephy-error-viewer-extension.c
@@ -320,7 +320,7 @@ switch_page_cb (GtkNotebook *notebook,
EphyWindow *window)
{
g_return_if_fail (EPHY_IS_WINDOW (window));
- if (GTK_WIDGET_REALIZED (window) == FALSE) return; /* on startup */
+ if (gtk_widget_get_realized (window) == FALSE) return; /* on startup */
update_actions (window);
}
diff --git a/extensions/page-info/ephy-page-info-extension.c b/extensions/page-info/ephy-page-info-extension.c
index c851535..48ec432 100644
--- a/extensions/page-info/ephy-page-info-extension.c
+++ b/extensions/page-info/ephy-page-info-extension.c
@@ -223,7 +223,7 @@ switch_page_cb (GtkNotebook *notebook,
{
EphyEmbed *embed;
- if (GTK_WIDGET_REALIZED (window) == FALSE) return; /* on startup */
+ if (gtk_widget_get_realized (window) == FALSE) return; /* on startup */
embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
update_action (window, embed);
diff --git a/extensions/rss/ephy-rss-extension.c b/extensions/rss/ephy-rss-extension.c
index 9ce880d..783b9d7 100644
--- a/extensions/rss/ephy-rss-extension.c
+++ b/extensions/rss/ephy-rss-extension.c
@@ -303,7 +303,7 @@ ephy_rss_sync_active_tab (EphyWindow *window,
GParamSpec *pspec,
gpointer data)
{
- if (GTK_WIDGET_REALIZED (window) == FALSE) return; /* on startup */
+ if (gtk_widget_get_realized (window) == FALSE) return; /* on startup */
ephy_rss_update_action (window);
}
diff --git a/extensions/select-stylesheet/ephy-css-menu.c b/extensions/select-stylesheet/ephy-css-menu.c
index d658aad..46b4bad 100644
--- a/extensions/select-stylesheet/ephy-css-menu.c
+++ b/extensions/select-stylesheet/ephy-css-menu.c
@@ -358,7 +358,7 @@ ephy_css_menu_set_window (EphyCSSMenu *menu, EphyWindow *window)
g_signal_connect (window, "notify::active-child",
G_CALLBACK (sync_active_tab_cb), menu);
- if (GTK_WIDGET_REALIZED (window))
+ if (gtk_widget_get_realized (window))
{
embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));
ephy_css_menu_set_embed (menu, embed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]