[gtk+] Avoid deprecation warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Avoid deprecation warning
- Date: Wed, 3 Jul 2013 23:52:51 +0000 (UTC)
commit 4eac681eba36ca48541e4b9f18d38bdf4341a8ae
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jul 3 19:52:11 2013 -0400
Avoid deprecation warning
There was one overlooked use of GTK_STOCK_MISSING_IMAGE.
gtk/gtkiconhelper.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 56cb97c..0e38073 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -636,10 +636,15 @@ ensure_stated_surface_from_info (GtkIconHelper *self,
if (destination == NULL)
{
GtkIconSet *icon_set;
+
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
icon_set = gtk_style_context_lookup_icon_set (context, GTK_STOCK_MISSING_IMAGE);
destination =
gtk_icon_set_render_icon_pixbuf (icon_set, context, self->priv->icon_size);
+
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
else if (!symbolic)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]