[gnome-panel/gnome-3-8] button-widget.c: fix deprecated warnings
- From: Philipp Kaluza <phk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gnome-3-8] button-widget.c: fix deprecated warnings
- Date: Tue, 8 Jul 2014 17:54:42 +0000 (UTC)
commit 4bf27c93347538a519ff04bb11f1248cec8b53a4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun May 25 15:50:47 2014 +0300
button-widget.c: fix deprecated warnings
gnome-panel/button-widget.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gnome-panel/button-widget.c b/gnome-panel/button-widget.c
index 6c87441..ade20cd 100644
--- a/gnome-panel/button-widget.c
+++ b/gnome-panel/button-widget.c
@@ -171,11 +171,11 @@ button_widget_reload_pixbuf (ButtonWidget *button)
button->priv->orientation & PANEL_HORIZONTAL_MASK ?
button->priv->size : -1,
&error);
if (error) {
- //FIXME: this is not rendered at button->priv->size
- button->priv->pixbuf =
- gtk_widget_render_icon_pixbuf (GTK_WIDGET (button),
- GTK_STOCK_MISSING_IMAGE,
- (GtkIconSize) -1);
+ button->priv->pixbuf = gtk_icon_theme_load_icon (button->priv->icon_theme,
+ "image-missing",
+ button->priv->size,
+ 0, NULL);
+
g_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]