[emerillon] Replace deprecated macros with new accessors.
- From: Łukasz Jernaś <ljernas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [emerillon] Replace deprecated macros with new accessors.
- Date: Tue, 20 Apr 2010 20:27:24 +0000 (UTC)
commit c3087531a1341b81afda7f8f9bc7102b21761e52
Author: Andreas Henriksson <andreas fatal se>
Date: Fri Apr 9 13:41:13 2010 +0200
Replace deprecated macros with new accessors.
GTK_WIDGET_NO_WINDOW and GTK_WINDGET_VISIBLE
is deprecated in Gtk+ 2.20 and since Emerillon compiles
with deprecations enabled by default this makes it
fail to build with Gtk 2.20.
Closes #614575.
Signed-off-by: Å?ukasz JernaÅ? <deejay1 srem org>
emerillon/sidebar.c | 2 +-
emerillon/window.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/emerillon/sidebar.c b/emerillon/sidebar.c
index e8c10df..e6b0a46 100644
--- a/emerillon/sidebar.c
+++ b/emerillon/sidebar.c
@@ -239,7 +239,7 @@ emerillon_sidebar_menu_position_under (GtkMenu *menu,
GtkWidget *widget;
g_return_if_fail (GTK_IS_BUTTON (user_data));
- g_return_if_fail (GTK_WIDGET_NO_WINDOW (user_data));
+ g_return_if_fail (gtk_widget_get_has_window (GTK_WIDGET (user_data)));
widget = GTK_WIDGET (user_data);
diff --git a/emerillon/window.c b/emerillon/window.c
index b6f4d48..df7a7b5 100644
--- a/emerillon/window.c
+++ b/emerillon/window.c
@@ -592,7 +592,7 @@ sidebar_visibility_changed_cb (GtkWidget *widget,
GtkAction *action;
gboolean visible;
- visible = GTK_WIDGET_VISIBLE (self->priv->sidebar);
+ visible = gtk_widget_get_visible (self->priv->sidebar);
gconf_client_set_bool (self->priv->client, EMERILLON_CONF_UI_SIDEBAR,
visible, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]