[sulfur] add built-in icon images, make sulfur look good in KDE

This commit is contained in:
Fabio Erculiani
2010-09-17 22:14:08 +02:00
parent 33fe258b4a
commit 3b0aefe12b
4 changed files with 12 additions and 6 deletions

BIN
sulfur/gfx/install.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
sulfur/gfx/refresh.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -720,12 +720,15 @@ class SulfurApplication(Controller, SulfurApplicationEventsMixin):
self.setup_package_radio_buttons(self.ui.rbPkgSets, "pkgsets")
self.setup_package_radio_buttons(self.ui.rbPkgQueued, "queued")
self.setup_package_radio_buttons(self.ui.rbPkgSearch, "search")
self.setup_package_radio_buttons(self.ui.repoRefreshButton, "refresh")
self.setup_package_radio_buttons(self.ui.rbPkgQueued, "install")
def setup_package_radio_buttons(self, widget, tag):
widget.connect('clicked', self.on_pkgFilter_toggled, tag)
#widget.set_relief( gtk.RELIEF_NONE )
widget.set_mode( False )
if hasattr(widget, 'set_mode'):
widget.set_mode(False)
pix = None
if tag == "updates":
@@ -742,6 +745,10 @@ class SulfurApplication(Controller, SulfurApplicationEventsMixin):
pix = self.ui.rbAllImage
elif tag == "search":
pix = self.ui.rbSearchImage
elif tag == "refresh":
pix = self.ui.rbRefreshImage
elif tag == "install":
pix = self.ui.rbQueuedImage
if pix is not None:
pix_path = os.path.join(const.PIXMAPS_PATH, tag+".png")

View File

@@ -156,9 +156,9 @@
<widget class="GtkHBox" id="hbox5">
<property name="visible">True</property>
<child>
<widget class="GtkImage" id="image104">
<widget class="GtkImage" id="rbRefreshImage">
<property name="visible">True</property>
<property name="icon_name">view-refresh</property>
<property name="icon_name">gtk-missing-image</property>
<property name="icon-size">5</property>
</widget>
<packing>
@@ -505,7 +505,7 @@
<child>
<widget class="GtkImage" id="rbSearchImage">
<property name="visible">True</property>
<property name="icon_name">edit-find</property>
<property name="icon_name">gtk-missing-image</property>
<property name="icon-size">5</property>
</widget>
<packing>
@@ -563,8 +563,7 @@
<widget class="GtkImage" id="rbQueuedImage">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="pixel_size">32</property>
<property name="icon_name">drive-harddisk</property>
<property name="icon_name">gtk-missing-image</property>
</widget>
<packing>
<property name="position">0</property>