[giggle] Use accessor function instead direct access. Final patch.
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [giggle] Use accessor function instead direct access. Final patch.
- Date: Wed, 10 Feb 2010 03:29:33 +0000 (UTC)
commit 0d14a527a0a7de9caea7ae6b420039788243f9a2
Author: Javier Jardón <jjardon gnome org>
Date: Wed Feb 10 02:15:34 2010 +0100
Use accessor function instead direct access. Final patch.
With the new API added in GTK+ 2.19.5, this goal is complete now
src/giggle-view-history.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/giggle-view-history.c b/src/giggle-view-history.c
index 4088916..abfb524 100644
--- a/src/giggle-view-history.c
+++ b/src/giggle-view-history.c
@@ -183,9 +183,12 @@ view_history_set_busy (GtkWidget *widget,
GdkCursor *cursor;
GdkWindow *window;
- if (!GTK_WIDGET_REALIZED (widget)) {
+#if GTK_CHECK_VERSION (2,19,5)
+ if (!gtk_widget_get_realized (widget))
+#else
+ if (!GTK_WIDGET_REALIZED (widget))
+#endif
return;
- }
window = gtk_widget_get_window (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]