[gnome-panel] [all] Stop using deprected GTK+ API
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] [all] Stop using deprected GTK+ API
- Date: Tue, 22 Jun 2010 23:46:37 +0000 (UTC)
commit 07faf6a141d830447bcbd044e9531c6ba41cabcc
Author: Vincent Untz <vuntz gnome org>
Date: Wed Jun 23 01:45:29 2010 +0200
[all] Stop using deprected GTK+ API
https://bugzilla.gnome.org/show_bug.cgi?id=615557
applets/notification_area/fixedtip.c | 2 +-
bonobo/libpanel-applet/panel-applet.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/applets/notification_area/fixedtip.c b/applets/notification_area/fixedtip.c
index b9b2c08..ff947df 100644
--- a/applets/notification_area/fixedtip.c
+++ b/applets/notification_area/fixedtip.c
@@ -209,7 +209,7 @@ na_fixed_tip_new (GtkWidget *parent,
toplevel = gtk_widget_get_toplevel (parent);
/*
- if (toplevel && GTK_WIDGET_TOPLEVEL (toplevel) && GTK_IS_WINDOW (toplevel))
+ if (toplevel && gtk_widget_is_toplevel (toplevel) && GTK_IS_WINDOW (toplevel))
gtk_window_set_transient_for (GTK_WINDOW (fixedtip), GTK_WINDOW (toplevel));
*/
#endif
diff --git a/bonobo/libpanel-applet/panel-applet.c b/bonobo/libpanel-applet/panel-applet.c
index 4ab6bbc..f876cb7 100644
--- a/bonobo/libpanel-applet/panel-applet.c
+++ b/bonobo/libpanel-applet/panel-applet.c
@@ -862,7 +862,7 @@ panel_applet_expose (GtkWidget *widget,
height = widget->allocation.height - 2 * border_width;
gtk_paint_focus (widget->style, widget->window,
- GTK_WIDGET_STATE (widget),
+ gtk_widget_get_state (widget),
&event->area, widget, "panel_applet",
x, y, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]