mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
sysprof-icon-32.png Add a 32x32 version (also from Diana) of the icon.
Mon Jan 22 17:42:29 2007 Søren Sandmann <sandmann@redhat.com> * sysprof-icon-32.png * sysprof.c: Add a 32x32 version (also from Diana) of the icon. Mon Jan 22 16:37:12 2007 Søren Sandmann <sandmann@redhat.com> * sysprof-icon-16/24/48.png: * sysprof.c: Add new icons from Diana. svn path=/trunk/; revision=348
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
f33e3b06f4
commit
e8c2a59906
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jan 22 17:42:29 2007 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
|
* sysprof-icon-32.png
|
||||||
|
* sysprof.c: Add a 32x32 version (also from Diana) of the icon.
|
||||||
|
|
||||||
Mon Jan 22 16:37:12 2007 Søren Sandmann <sandmann@redhat.com>
|
Mon Jan 22 16:37:12 2007 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* sysprof-icon-16/24/48.png:
|
* sysprof-icon-16/24/48.png:
|
||||||
|
|||||||
@ -63,7 +63,7 @@ dist_udev_DATA = 60-sysprof.rules
|
|||||||
pixmapsdir = $(datadir)/pixmaps
|
pixmapsdir = $(datadir)/pixmaps
|
||||||
|
|
||||||
dist_pkgdata_DATA = sysprof.glade
|
dist_pkgdata_DATA = sysprof.glade
|
||||||
dist_pixmaps_DATA = sysprof-icon-16.png sysprof-icon-24.png sysprof-icon-48.png
|
dist_pixmaps_DATA = sysprof-icon-16.png sysprof-icon-24.png sysprof-icon-32.png sysprof-icon-48.png
|
||||||
|
|
||||||
#
|
#
|
||||||
# Command line version
|
# Command line version
|
||||||
|
|||||||
BIN
sysprof-icon-32.png
Normal file
BIN
sysprof-icon-32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
10
sysprof.c
10
sysprof.c
@ -1343,6 +1343,7 @@ set_icons (Application *app)
|
|||||||
const char *icon_files [] = {
|
const char *icon_files [] = {
|
||||||
PIXMAPDIR "/sysprof-icon-16.png",
|
PIXMAPDIR "/sysprof-icon-16.png",
|
||||||
PIXMAPDIR "/sysprof-icon-24.png",
|
PIXMAPDIR "/sysprof-icon-24.png",
|
||||||
|
PIXMAPDIR "/sysprof-icon-32.png",
|
||||||
PIXMAPDIR "/sysprof-icon-48.png",
|
PIXMAPDIR "/sysprof-icon-48.png",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
@ -1351,15 +1352,20 @@ set_icons (Application *app)
|
|||||||
|
|
||||||
for (i = 0; icon_files[i] != NULL; ++i)
|
for (i = 0; icon_files[i] != NULL; ++i)
|
||||||
{
|
{
|
||||||
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (icon_files[i], NULL);
|
const char *file = icon_files[i];
|
||||||
|
GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file (file, NULL);
|
||||||
|
|
||||||
if (pixbuf)
|
if (pixbuf)
|
||||||
{
|
{
|
||||||
pixbufs = g_list_prepend (pixbufs, pixbuf);
|
pixbufs = g_list_prepend (pixbufs, pixbuf);
|
||||||
|
|
||||||
if (i == 2) /* 48 x 48 */
|
if (i == 3) /* 48 x 48 */
|
||||||
app->icon = g_object_ref (pixbuf);
|
app->icon = g_object_ref (pixbuf);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_warning ("Could not open %s\n", file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_window_set_icon_list (GTK_WINDOW (app->main_window), pixbufs);
|
gtk_window_set_icon_list (GTK_WINDOW (app->main_window), pixbufs);
|
||||||
|
|||||||
Reference in New Issue
Block a user