rename some icons so we don't need to check in code if installed iconset has it. Fixes #7445
This commit is contained in:
parent
ea2eebdf11
commit
47404ea14d
Before Width: | Height: | Size: 780 B After Width: | Height: | Size: 780 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -1535,8 +1535,6 @@ class ChatControl(ChatControlBase):
|
||||||
self._send_file_button = self.xml.get_object('send_file_button')
|
self._send_file_button = self.xml.get_object('send_file_button')
|
||||||
# add a special img for send file button
|
# add a special img for send file button
|
||||||
pixbuf = gtkgui_helpers.get_icon_pixmap('document-send', quiet=True)
|
pixbuf = gtkgui_helpers.get_icon_pixmap('document-send', quiet=True)
|
||||||
if not pixbuf:
|
|
||||||
pixbuf = gtkgui_helpers.get_icon_pixmap('gajim-upload')
|
|
||||||
img = Gtk.Image.new_from_pixbuf(pixbuf)
|
img = Gtk.Image.new_from_pixbuf(pixbuf)
|
||||||
self._send_file_button.set_image(img)
|
self._send_file_button.set_image(img)
|
||||||
id_ = self._send_file_button.connect('clicked',
|
id_ = self._send_file_button.connect('clicked',
|
||||||
|
|
|
@ -2597,8 +2597,6 @@ class GroupchatControl(ChatControlBase):
|
||||||
item = xml.get_object('send_file_menuitem')
|
item = xml.get_object('send_file_menuitem')
|
||||||
# add a special img for send file menuitem
|
# add a special img for send file menuitem
|
||||||
pixbuf = gtkgui_helpers.get_icon_pixmap('document-send', quiet=True)
|
pixbuf = gtkgui_helpers.get_icon_pixmap('document-send', quiet=True)
|
||||||
if not pixbuf:
|
|
||||||
pixbuf = gtkgui_helpers.get_icon_pixmap('gajim-upload')
|
|
||||||
img = Gtk.Image.new_from_pixbuf(pixbuf)
|
img = Gtk.Image.new_from_pixbuf(pixbuf)
|
||||||
item.set_image(img)
|
item.set_image(img)
|
||||||
|
|
||||||
|
|
|
@ -2636,8 +2636,6 @@ class Interface:
|
||||||
elif isinstance(pep_obj, pep.UserLocationPEP):
|
elif isinstance(pep_obj, pep.UserLocationPEP):
|
||||||
icon = gtkgui_helpers.get_icon_pixmap('applications-internet',
|
icon = gtkgui_helpers.get_icon_pixmap('applications-internet',
|
||||||
quiet=True)
|
quiet=True)
|
||||||
if not icon:
|
|
||||||
icon = gtkgui_helpers.get_icon_pixmap('gajim-earth')
|
|
||||||
return icon
|
return icon
|
||||||
|
|
||||||
def create_ipython_window(self):
|
def create_ipython_window(self):
|
||||||
|
|
|
@ -260,8 +260,6 @@ control=None, gc_contact=None, is_anonymous=True):
|
||||||
|
|
||||||
# add a special img for send file menuitem
|
# add a special img for send file menuitem
|
||||||
pixbuf = gtkgui_helpers.get_icon_pixmap('document-send', quiet=True)
|
pixbuf = gtkgui_helpers.get_icon_pixmap('document-send', quiet=True)
|
||||||
if not pixbuf:
|
|
||||||
pixbuf = gtkgui_helpers.get_icon_pixmap('gajim-upload')
|
|
||||||
img = Gtk.Image.new_from_pixbuf(pixbuf)
|
img = Gtk.Image.new_from_pixbuf(pixbuf)
|
||||||
send_file_menuitem.set_image(img)
|
send_file_menuitem.set_image(img)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue