[gnome-keyring] [gcr] More fixes for GTK+ 2.91.7
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] [gcr] More fixes for GTK+ 2.91.7
- Date: Wed, 22 Dec 2010 21:20:46 +0000 (UTC)
commit 3c8767adcdf6af0db13ca14f20cea215f1024c1f
Author: Stef Walter <stefw collabora co uk>
Date: Wed Dec 22 21:14:13 2010 +0000
[gcr] More fixes for GTK+ 2.91.7
* gtk_widget_render_icon()
* gdk_cursor_unref()
gcr/gcr-display-view.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gcr/gcr-display-view.c b/gcr/gcr-display-view.c
index 9eeea07..4a620e1 100644
--- a/gcr/gcr-display-view.c
+++ b/gcr/gcr-display-view.c
@@ -121,7 +121,11 @@ on_expander_realize (GtkWidget *widget, gpointer user_data)
{
GdkCursor *cursor = gdk_cursor_new (GDK_ARROW);
gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
+#if GTK_CHECK_VERSION (2,91,7)
+ g_object_unref (cursor);
+#else
gdk_cursor_unref (cursor);
+#endif
}
static void
@@ -783,7 +787,11 @@ _gcr_display_view_set_stock_image (GcrDisplayView *self, GcrRenderer *renderer,
if (item->pixbuf)
g_object_unref (item->pixbuf);
if (stock_id)
+#if GTK_CHECK_VERSION (2,91,7)
+ item->pixbuf = gtk_widget_render_icon_pixbuf (GTK_WIDGET (self), stock_id, GTK_ICON_SIZE_DIALOG);
+#else
item->pixbuf = gtk_widget_render_icon (GTK_WIDGET (self), stock_id, GTK_ICON_SIZE_DIALOG, NULL);
+#endif
else
item->pixbuf = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]