mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-13 11:48:40 +00:00
Change status icon sizes from 22 pixels to 16 pixels.
This commit is contained in:
parent
7372e8b26b
commit
1383e6c3ca
9 changed files with 7 additions and 6 deletions
|
@ -106,7 +106,7 @@
|
||||||
<widget class="GtkImageMenuItem" id="plugins">
|
<widget class="GtkImageMenuItem" id="plugins">
|
||||||
<property name="visible">True</property>
|
<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="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||||
<property name="label" translatable="yes">Plugins</property>
|
<property name="label" translatable="yes">Plu_gins</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<signal name="activate" handler="plugins"/>
|
<signal name="activate" handler="plugins"/>
|
||||||
<child internal-child="image">
|
<child internal-child="image">
|
||||||
|
|
BIN
pixmaps/downloading16.png
Normal file
BIN
pixmaps/downloading16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 676 B |
Binary file not shown.
Before Width: | Height: | Size: 977 B |
BIN
pixmaps/inactive16.png
Normal file
BIN
pixmaps/inactive16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 598 B |
Binary file not shown.
Before Width: | Height: | Size: 884 B |
BIN
pixmaps/seeding16.png
Normal file
BIN
pixmaps/seeding16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 593 B |
Binary file not shown.
Before Width: | Height: | Size: 827 B |
|
@ -114,6 +114,7 @@ def get_pixmap(fname):
|
||||||
return os.path.join(PIXMAP_DIR, fname)
|
return os.path.join(PIXMAP_DIR, fname)
|
||||||
|
|
||||||
def open_url_in_browser(dialog, link):
|
def open_url_in_browser(dialog, link):
|
||||||
|
print "link: ", link
|
||||||
try:
|
try:
|
||||||
webbrowser.open(link)
|
webbrowser.open(link)
|
||||||
except webbrowser.Error:
|
except webbrowser.Error:
|
||||||
|
|
|
@ -169,8 +169,8 @@ class DelugeGTK:
|
||||||
"show_hide_window_toggled": self.show_hide_window_toggled
|
"show_hide_window_toggled": self.show_hide_window_toggled
|
||||||
})
|
})
|
||||||
|
|
||||||
self.tray_glade.get_widget("download-limit-image").set_from_file(common.get_pixmap('downloading22.png'))
|
self.tray_glade.get_widget("download-limit-image").set_from_file(common.get_pixmap('downloading16.png'))
|
||||||
self.tray_glade.get_widget("upload-limit-image").set_from_file(common.get_pixmap('seeding22.png'))
|
self.tray_glade.get_widget("upload-limit-image").set_from_file(common.get_pixmap('seeding16.png'))
|
||||||
self.build_tray_bwsetsubmenu()
|
self.build_tray_bwsetsubmenu()
|
||||||
|
|
||||||
self.tray_icon.connect("activate", self.tray_clicked)
|
self.tray_icon.connect("activate", self.tray_clicked)
|
||||||
|
@ -802,11 +802,11 @@ class DelugeGTK:
|
||||||
|
|
||||||
# Set the appropriate status icon
|
# Set the appropriate status icon
|
||||||
if state["is_paused"]:
|
if state["is_paused"]:
|
||||||
status_icon = gtk.gdk.pixbuf_new_from_file(common.get_pixmap("inactive22.png"))
|
status_icon = gtk.gdk.pixbuf_new_from_file(common.get_pixmap("inactive16.png"))
|
||||||
elif state["is_seed"]:
|
elif state["is_seed"]:
|
||||||
status_icon = gtk.gdk.pixbuf_new_from_file(common.get_pixmap("seeding22.png"))
|
status_icon = gtk.gdk.pixbuf_new_from_file(common.get_pixmap("seeding16.png"))
|
||||||
else:
|
else:
|
||||||
status_icon = gtk.gdk.pixbuf_new_from_file(common.get_pixmap("downloading22.png"))
|
status_icon = gtk.gdk.pixbuf_new_from_file(common.get_pixmap("downloading16.png"))
|
||||||
|
|
||||||
rlist = [int(unique_id), int(queue), status_icon, str(name), long(size), float(progress), str(message),
|
rlist = [int(unique_id), int(queue), status_icon, str(name), long(size), float(progress), str(message),
|
||||||
int(seeds), int(seeds_t), int(peers), int(peers_t), int(dlrate), int(ulrate), int(eta), float(share)]
|
int(seeds), int(seeds_t), int(peers), int(peers_t), int(dlrate), int(ulrate), int(eta), float(share)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue