Use gtk_image_new_from_icon_name().

2004-10-25  Matthias Clasen  <mclasen@redhat.com>

	* tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
This commit is contained in:
Matthias Clasen 2004-10-25 14:09:49 +00:00 committed by Matthias Clasen
parent 30f06bee4a
commit 6fa44ae407
5 changed files with 20 additions and 9 deletions

View File

@ -1,3 +1,7 @@
2004-10-25 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
2004-10-25 Matthias Clasen <mclasen@redhat.com>
Add a public setting for button ordering (#74669, Owen Taylor)
@ -68,7 +72,7 @@ Sun Oct 24 02:56:43 2004 Jonathan Blandford <jrb@redhat.com>
Billy Biggs)
Sat Oct 23 16:14:37 2004 Søren Sandmann <sandmann@redhat.com>
tkIconThemeFile
* gtk/gtksequence.c (_gtk_sequence_node_insert_sorted): Remove
assertion that can get triggered by broken sort functions.

View File

@ -1,3 +1,7 @@
2004-10-25 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
2004-10-25 Matthias Clasen <mclasen@redhat.com>
Add a public setting for button ordering (#74669, Owen Taylor)
@ -68,7 +72,7 @@ Sun Oct 24 02:56:43 2004 Jonathan Blandford <jrb@redhat.com>
Billy Biggs)
Sat Oct 23 16:14:37 2004 Søren Sandmann <sandmann@redhat.com>
tkIconThemeFile
* gtk/gtksequence.c (_gtk_sequence_node_insert_sorted): Remove
assertion that can get triggered by broken sort functions.

View File

@ -1,3 +1,7 @@
2004-10-25 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
2004-10-25 Matthias Clasen <mclasen@redhat.com>
Add a public setting for button ordering (#74669, Owen Taylor)
@ -68,7 +72,7 @@ Sun Oct 24 02:56:43 2004 Jonathan Blandford <jrb@redhat.com>
Billy Biggs)
Sat Oct 23 16:14:37 2004 Søren Sandmann <sandmann@redhat.com>
tkIconThemeFile
* gtk/gtksequence.c (_gtk_sequence_node_insert_sorted): Remove
assertion that can get triggered by broken sort functions.

View File

@ -1,3 +1,7 @@
2004-10-25 Matthias Clasen <mclasen@redhat.com>
* tests/testicontheme.c (main): Use gtk_image_new_from_icon_name().
2004-10-25 Matthias Clasen <mclasen@redhat.com>
Add a public setting for button ordering (#74669, Owen Taylor)
@ -68,7 +72,7 @@ Sun Oct 24 02:56:43 2004 Jonathan Blandford <jrb@redhat.com>
Billy Biggs)
Sat Oct 23 16:14:37 2004 Søren Sandmann <sandmann@redhat.com>
tkIconThemeFile
* gtk/gtksequence.c (_gtk_sequence_node_insert_sorted): Remove
assertion that can get triggered by broken sort functions.

View File

@ -63,12 +63,7 @@ main (int argc, char *argv[])
size = GTK_ICON_SIZE_BUTTON;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
#if 1
pixbuf = gtk_icon_theme_load_icon (icon_theme, argv[3], size, 0, NULL);
image = gtk_image_new_from_pixbuf (pixbuf);
#else
image = gtk_image_new_from_icon_name (argv[3], size);
#endif
gtk_container_add (GTK_CONTAINER (window), image);
gtk_widget_show_all (window);