[gimp/gtk3-port: 100/226] Use gtk_widget_render_icon_pixbuf() instead of gtk_widget_render_icon()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 100/226] Use gtk_widget_render_icon_pixbuf() instead of gtk_widget_render_icon()
- Date: Sun, 29 Mar 2015 18:29:08 +0000 (UTC)
commit 24c79d1ff7c59cc82c5bc1cb89cf387e89a0ac2f
Author: Michael Natterer <mitch gimp org>
Date: Thu Dec 9 21:01:13 2010 +0100
Use gtk_widget_render_icon_pixbuf() instead of gtk_widget_render_icon()
because the latter is deprecated.
libgimpwidgets/gimpcellrenderertoggle.c | 6 +++---
plug-ins/common/compose.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgimpwidgets/gimpcellrenderertoggle.c b/libgimpwidgets/gimpcellrenderertoggle.c
index 10f0fa4..0feb9b6 100644
--- a/libgimpwidgets/gimpcellrenderertoggle.c
+++ b/libgimpwidgets/gimpcellrenderertoggle.c
@@ -485,9 +485,9 @@ gimp_cell_renderer_toggle_create_pixbuf (GimpCellRendererToggle *toggle,
}
else
{
- toggle->pixbuf = gtk_widget_render_icon (widget,
- toggle->stock_id,
- toggle->stock_size, NULL);
+ toggle->pixbuf = gtk_widget_render_icon_pixbuf (widget,
+ toggle->stock_id,
+ toggle->stock_size);
}
}
diff --git a/plug-ins/common/compose.c b/plug-ins/common/compose.c
index 0847926..7866744 100644
--- a/plug-ins/common/compose.c
+++ b/plug-ins/common/compose.c
@@ -1179,9 +1179,9 @@ compose_dialog (const gchar *compose_type,
combo = gimp_drawable_combo_box_new (check_gray, NULL);
composeint.channel_menu[j] = combo;
- ico = gtk_widget_render_icon (dialog,
- GIMP_STOCK_CHANNEL_GRAY,
- GTK_ICON_SIZE_BUTTON, NULL);
+ ico = gtk_widget_render_icon_pixbuf (dialog,
+ GIMP_STOCK_CHANNEL_GRAY,
+ GTK_ICON_SIZE_BUTTON);
model = gtk_combo_box_get_model (GTK_COMBO_BOX (combo));
gtk_list_store_append (GTK_LIST_STORE (model), &iter);
gtk_list_store_set (GTK_LIST_STORE (model), &iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]