From 9fe4bffd4f6a73fe8e4d4673832be853b35ea2f3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 18 May 2005 06:13:42 +0000 Subject: [PATCH] Support named icons in cells by adding a icon-name property. (#165777, 2005-05-18 Matthias Clasen * gtk/gtkcellrendererpixbuf.c: Support named icons in cells by adding a icon-name property. (#165777, Anders Carlsson) --- ChangeLog | 7 +- ChangeLog.pre-2-10 | 7 +- ChangeLog.pre-2-8 | 7 +- docs/reference/ChangeLog | 3 + docs/reference/gtk/migrating-checklist.sgml | 20 ++++ gtk/gtkcellrendererpixbuf.c | 104 ++++++++++++++++++-- 6 files changed, 135 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86b8e9e9c9..b764999be9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,15 @@ 2005-05-18 Matthias Clasen + * gtk/gtkcellrendererpixbuf.c: Support named icons in + cells by adding a icon-name property. (#165777, Anders + Carlsson) + * gtk/gtk.symbols: * gtk/gtktoolbutton.h: * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) (gtk_tool_button_get_icon_name): Support named icons in - tool buttons by adding a icon-name property. + tool buttons by adding a icon-name property. (#116577, + Christian Neumair) * gtk/gtk.symbols: * gtk/gtkdnd.h: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 86b8e9e9c9..b764999be9 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,10 +1,15 @@ 2005-05-18 Matthias Clasen + * gtk/gtkcellrendererpixbuf.c: Support named icons in + cells by adding a icon-name property. (#165777, Anders + Carlsson) + * gtk/gtk.symbols: * gtk/gtktoolbutton.h: * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) (gtk_tool_button_get_icon_name): Support named icons in - tool buttons by adding a icon-name property. + tool buttons by adding a icon-name property. (#116577, + Christian Neumair) * gtk/gtk.symbols: * gtk/gtkdnd.h: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 86b8e9e9c9..b764999be9 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,10 +1,15 @@ 2005-05-18 Matthias Clasen + * gtk/gtkcellrendererpixbuf.c: Support named icons in + cells by adding a icon-name property. (#165777, Anders + Carlsson) + * gtk/gtk.symbols: * gtk/gtktoolbutton.h: * gtk/gtktoolbutton.c (gtk_tool_button_set_icon_name) (gtk_tool_button_get_icon_name): Support named icons in - tool buttons by adding a icon-name property. + tool buttons by adding a icon-name property. (#116577, + Christian Neumair) * gtk/gtk.symbols: * gtk/gtkdnd.h: diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index d1e5c3c9b8..1eff73708b 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,5 +1,8 @@ 2005-05-18 Matthias Clasen + * gtk/migrating-checklist.sgml: Add a section about named + icons. + * gtk/gtk-sections.txt: Add new functions. 2005-05-16 Matthias Clasen diff --git a/docs/reference/gtk/migrating-checklist.sgml b/docs/reference/gtk/migrating-checklist.sgml index 8dde609b30..46d40bd6b7 100644 --- a/docs/reference/gtk/migrating-checklist.sgml +++ b/docs/reference/gtk/migrating-checklist.sgml @@ -282,6 +282,26 @@ my_widget_key_press_event_handler (GtkWidget *widget, GdkEventKey *event) } + +
+ Use named icons + + + Why + + Named icons automatically adapt to theme changes, giving your + application a much more integrated appearance. + + + + + Since GTK+ 2.6, named icons can be used for window icons (see + gtk_window_set_icon_name()) and images (see gtk_image_set_icon_name()). + In GTK+ 2.8, you can also use named icons for drag-and-drop (see + gtk_drag_source_set_icon_name()) and in treeview cells (see the + icon_name + property of #GtkCellRendererPixbuf). +