mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
30f06bee4a
commit
6fa44ae407
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user