Use properly sized icons

This commit is contained in:
Cole Robinson 2010-03-23 14:27:30 -04:00
parent ffe2c8499c
commit 3fedb00dcb
15 changed files with 17 additions and 10 deletions

View File

@ -26,6 +26,15 @@ dnl ====================================
AC_OUTPUT(Makefile
pixmaps/Makefile
pixmaps/hicolor/Makefile
pixmaps/hicolor/16x16/Makefile
pixmaps/hicolor/16x16/actions/Makefile
pixmaps/hicolor/22x22/Makefile
pixmaps/hicolor/22x22/actions/Makefile
pixmaps/hicolor/24x24/Makefile
pixmaps/hicolor/24x24/actions/Makefile
pixmaps/hicolor/32x32/Makefile
pixmaps/hicolor/32x32/actions/Makefile
po/Makefile.in
src/Makefile
src/virtManager/Makefile

View File

@ -1,3 +1,4 @@
SUBDIRS = hicolor
pixmapdir = $(pkgdatadir)/pixmaps
pixmap_DATA = $(wildcard $(srcdir)/*.png) $(wildcard $(srcdir)/*.svg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 702 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 713 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -268,16 +268,8 @@ class vmmManager(gobject.GObject):
self.config.is_vmlist_network_traffic_visible())
def init_toolbar(self):
def set_toolbar_image(widget, iconfile, l, w):
filename = self.config.get_icon_dir() + "/%s" % iconfile
pixbuf = gtk.gdk.pixbuf_new_from_file_at_size(filename, l, w)
image = gtk.Image()
image.set_from_pixbuf(pixbuf)
image.show_all()
self.window.get_widget(widget).set_icon_widget(image)
set_toolbar_image("vm-new", "vm_new_wizard.png", 28, 28)
set_toolbar_image("vm-open", "icon_console.png", 24, 24)
self.window.get_widget("vm-new").set_icon_name("vm_new")
self.window.get_widget("vm-open").set_icon_name("icon_console")
uihelpers.build_shutdown_button_menu(
self.config,
self.window.get_widget("vm-shutdown"),

View File

@ -135,6 +135,11 @@ fi
%{_datadir}/%{name}/pixmaps/*.png
%{_datadir}/%{name}/pixmaps/*.svg
%dir %{_datadir}/%{name}/pixmaps/hicolor/
%dir %{_datadir}/%{name}/pixmaps/hicolor/*/
%dir %{_datadir}/%{name}/pixmaps/hicolor/*/*/
%dir %{_datadir}/%{name}/pixmaps/hicolor/*/*/*.png
%dir %{_datadir}/%{name}/virtManager/
%{_datadir}/%{name}/virtManager/*.py*