diff --git a/deluge/ui/gtk3/addtorrentdialog.py b/deluge/ui/gtk3/addtorrentdialog.py index 7f49a4130..fd78676a0 100644 --- a/deluge/ui/gtk3/addtorrentdialog.py +++ b/deluge/ui/gtk3/addtorrentdialog.py @@ -96,7 +96,7 @@ class AddTorrentDialog(component.Component): column = Gtk.TreeViewColumn(_('Filename')) render = Gtk.CellRendererPixbuf() column.pack_start(render, False) - column.add_attribute(render, 'stock-id', 5) + column.add_attribute(render, 'icon-name', 5) render = Gtk.CellRendererText() render.set_property('editable', True) render.connect('edited', self._on_filename_edited) @@ -372,7 +372,7 @@ class AddTorrentDialog(component.Component): for key, value in split_files.items(): if key.endswith(os.path.sep): chunk_iter = self.files_treestore.append( - parent_iter, [True, key, 0, -1, False, Gtk.STOCK_DIRECTORY] + parent_iter, [True, key, 0, -1, False, 'folder-symbolic'] ) chunk_size = self.add_files(chunk_iter, value) self.files_treestore.set(chunk_iter, 2, chunk_size) @@ -380,7 +380,14 @@ class AddTorrentDialog(component.Component): else: self.files_treestore.append( parent_iter, - [value[2], key, value[1]['size'], value[0], False, Gtk.STOCK_FILE], + [ + value[2], + key, + value[1]['size'], + value[0], + False, + 'text-x-generic-symbolic', + ], ) ret += value[1]['size'] if parent_iter and self.files_treestore.iter_has_child(parent_iter): @@ -656,9 +663,9 @@ class AddTorrentDialog(component.Component): None, Gtk.FileChooserAction.OPEN, buttons=( - Gtk.STOCK_CANCEL, + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_OPEN, + _('_Open'), Gtk.ResponseType.OK, ), ) @@ -977,7 +984,7 @@ class AddTorrentDialog(component.Component): split_text = new_text.split(os.path.sep) for s in split_text[:-1]: parent = self.files_treestore.append( - parent, [True, s, 0, -1, False, Gtk.STOCK_DIRECTORY] + parent, [True, s, 0, -1, False, 'folder-symbolic'] ) self.files_treestore[itr][1] = split_text[-1] @@ -1036,8 +1043,7 @@ class AddTorrentDialog(component.Component): # We don't iterate over the last item because we'll just use # the existing itr and change the text parent = self.files_treestore.append( - parent, - [True, s + os.path.sep, 0, -1, False, Gtk.STOCK_DIRECTORY], + parent, [True, s + os.path.sep, 0, -1, False, 'folder-symbolic'] ) self.files_treestore[itr][1] = split_text[-1] + os.path.sep diff --git a/deluge/ui/gtk3/connectionmanager.py b/deluge/ui/gtk3/connectionmanager.py index 6496a4f3d..b86420139 100644 --- a/deluge/ui/gtk3/connectionmanager.py +++ b/deluge/ui/gtk3/connectionmanager.py @@ -212,11 +212,11 @@ class ConnectionManager(component.Component): self.builder.get_object('button_edithost').set_sensitive(False) self.builder.get_object('button_removehost').set_sensitive(False) self.builder.get_object('button_startdaemon').set_sensitive(False) - self.builder.get_object('image_startdaemon').set_from_stock( - Gtk.STOCK_EXECUTE, Gtk.IconSize.MENU + self.builder.get_object('image_startdaemon').set_from_icon_name( + 'system-run-symbolic', Gtk.IconSize.BUTTON ) self.builder.get_object('label_startdaemon').set_text_with_mnemonic( - '_Start Daemon' + _('_Start Daemon') ) model, row = self.treeview.get_selection().get_selected() @@ -242,8 +242,8 @@ class ConnectionManager(component.Component): # Check to see if the host is online if status == 'Connected' or status == 'Online': self.builder.get_object('button_connect').set_sensitive(True) - self.builder.get_object('image_startdaemon').set_from_stock( - Gtk.STOCK_STOP, Gtk.IconSize.MENU + self.builder.get_object('image_startdaemon').set_from_icon_name( + 'process-stop-symbolic', Gtk.IconSize.MENU ) self.builder.get_object('label_startdaemon').set_text_with_mnemonic( _('_Stop Daemon') diff --git a/deluge/ui/gtk3/createtorrentdialog.py b/deluge/ui/gtk3/createtorrentdialog.py index 5017024e7..1e5e73cb6 100644 --- a/deluge/ui/gtk3/createtorrentdialog.py +++ b/deluge/ui/gtk3/createtorrentdialog.py @@ -62,7 +62,7 @@ class CreateTorrentDialog(object): column = Gtk.TreeViewColumn(_('Filename')) render = Gtk.CellRendererPixbuf() column.pack_start(render, False) - column.add_attribute(render, 'stock-id', 1) + column.add_attribute(render, 'icon-name', 1) render = Gtk.CellRendererText() column.pack_start(render, True) column.add_attribute(render, 'text', 0) @@ -129,9 +129,9 @@ class CreateTorrentDialog(object): self.dialog, Gtk.FileChooserAction.OPEN, buttons=( - Gtk.STOCK_CANCEL, + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_OPEN, + _('_Open'), Gtk.ResponseType.OK, ), ) @@ -152,7 +152,9 @@ class CreateTorrentDialog(object): path = decode_bytes(result) self.files_treestore.clear() - self.files_treestore.append(None, [result, Gtk.STOCK_FILE, get_path_size(path)]) + self.files_treestore.append( + None, [result, 'text-x-generic-symbolic', get_path_size(path)] + ) self.adjust_piece_size() chooser.destroy() @@ -164,9 +166,9 @@ class CreateTorrentDialog(object): self.dialog, Gtk.FileChooserAction.SELECT_FOLDER, buttons=( - Gtk.STOCK_CANCEL, + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_OPEN, + _('_Open'), Gtk.ResponseType.OK, ), ) @@ -186,7 +188,9 @@ class CreateTorrentDialog(object): path = decode_bytes(result) self.files_treestore.clear() - self.files_treestore.append(None, [result, Gtk.STOCK_OPEN, get_path_size(path)]) + self.files_treestore.append( + None, [result, 'document-open-symbolic', get_path_size(path)] + ) self.adjust_piece_size() chooser.destroy() @@ -206,7 +210,9 @@ class CreateTorrentDialog(object): log.debug('size: %s', size) if size > 0: self.files_treestore.clear() - self.files_treestore.append(None, [result, Gtk.STOCK_NETWORK, size]) + self.files_treestore.append( + None, [result, 'network-workgroup-symbolic', size] + ) self.adjust_piece_size() client.core.get_path_size(result).addCallback(_on_get_path_size) @@ -227,7 +233,7 @@ class CreateTorrentDialog(object): path = self.files_treestore[0][0].rstrip('\\/') torrent_filename = '%s.torrent' % os.path.split(path)[-1] - is_remote = self.files_treestore[0][1] == Gtk.STOCK_NETWORK + is_remote = 'network' in self.files_treestore[0][1] if is_remote: # This is a remote path @@ -249,9 +255,9 @@ class CreateTorrentDialog(object): self.dialog, Gtk.FileChooserAction.SAVE, buttons=( - Gtk.STOCK_CANCEL, + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_SAVE, + _('_Save'), Gtk.ResponseType.OK, ), ) diff --git a/deluge/ui/gtk3/dialogs.py b/deluge/ui/gtk3/dialogs.py index 21709723f..77c38ed50 100644 --- a/deluge/ui/gtk3/dialogs.py +++ b/deluge/ui/gtk3/dialogs.py @@ -30,7 +30,7 @@ class BaseDialog(Gtk.Dialog): :param header: str, the header portion of the dialog :param text: str, the text body of the dialog :param icon: icon name from icon theme or icon filename. - :param buttons: tuple, of gtk stock ids and responses + :param buttons: tuple, of icon name and responses :param parent: gtkWindow, the parent window, if None it will default to the MainWindow """ @@ -55,9 +55,9 @@ class BaseDialog(Gtk.Dialog): # Hack for Windows since it doesn't support svg if icon.endswith('.svg') and windows_check(): icon = icon.rpartition('.svg')[0] + '16.png' - image.set_from_pixbuf(get_pixbuf_at_size(icon, Gtk.IconSize.DIALOG)) + image.set_from_pixbuf(get_pixbuf_at_size(icon, 24)) else: - image.set_from_icon_name(icon, Gtk.IconSize.DIALOG) + image.set_from_icon_name(icon, Gtk.IconSize.LARGE_TOOLBAR) image.set_alignment(0.5, 0.0) hbox.pack_start(image, False, False, 0) vbox = Gtk.VBox(spacing=5) @@ -106,8 +106,8 @@ class YesNoDialog(BaseDialog): super(YesNoDialog, self).__init__( header, text, - Gtk.STOCK_DIALOG_QUESTION, - (Gtk.STOCK_NO, Gtk.ResponseType.NO, Gtk.STOCK_YES, Gtk.ResponseType.YES), + 'dialog-question', + (_('_No'), Gtk.ResponseType.NO, _('_Yes'), Gtk.ResponseType.YES), parent, ) @@ -128,8 +128,8 @@ class InformationDialog(BaseDialog): super(InformationDialog, self).__init__( header, text, - Gtk.STOCK_DIALOG_INFO, - (Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE), + 'dialog-information', + (_('_Close'), Gtk.ResponseType.CLOSE), parent, ) @@ -153,11 +153,7 @@ class ErrorDialog(BaseDialog): :type traceback: bool """ super(ErrorDialog, self).__init__( - header, - text, - Gtk.STOCK_DIALOG_ERROR, - (Gtk.STOCK_CLOSE, Gtk.ResponseType.CLOSE), - parent, + header, text, 'dialog-error', (_('_Close'), Gtk.ResponseType.CLOSE), parent ) if traceback: @@ -203,13 +199,8 @@ class AuthenticationDialog(BaseDialog): super(AuthenticationDialog, self).__init__( _('Authenticate'), err_msg, - Gtk.STOCK_DIALOG_AUTHENTICATION, - ( - Gtk.STOCK_CANCEL, - Gtk.ResponseType.CANCEL, - Gtk.STOCK_CONNECT, - Gtk.ResponseType.OK, - ), + 'dialog-password', + (_('_Cancel'), Gtk.ResponseType.CANCEL, _('C_onnect'), Gtk.ResponseType.OK), parent, ) @@ -265,11 +256,11 @@ class AccountDialog(BaseDialog): super(AccountDialog, self).__init__( _('Edit Account'), _('Edit existing account'), - Gtk.STOCK_DIALOG_INFO, + 'dialog-information', ( - Gtk.STOCK_CANCEL, + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_APPLY, + _('_Apply'), Gtk.ResponseType.OK, ), parent, @@ -278,13 +269,8 @@ class AccountDialog(BaseDialog): super(AccountDialog, self).__init__( _('New Account'), _('Create a new account'), - Gtk.STOCK_DIALOG_INFO, - ( - Gtk.STOCK_CANCEL, - Gtk.ResponseType.CANCEL, - Gtk.STOCK_ADD, - Gtk.ResponseType.OK, - ), + 'dialog-information', + (_('_Cancel'), Gtk.ResponseType.CANCEL, _('_Add'), Gtk.ResponseType.OK), parent, ) @@ -369,18 +355,13 @@ class OtherDialog(BaseDialog): raise TypeError('default value needs to be an int or float') if not icon: - icon = Gtk.STOCK_DIALOG_INFO + icon = 'dialog-information' super(OtherDialog, self).__init__( header, text, icon, - ( - Gtk.STOCK_CANCEL, - Gtk.ResponseType.CANCEL, - Gtk.STOCK_APPLY, - Gtk.ResponseType.OK, - ), + (_('_Cancel'), Gtk.ResponseType.CANCEL, _('_Apply'), Gtk.ResponseType.OK), parent, ) @@ -439,16 +420,16 @@ class PasswordDialog(BaseDialog): :type password_msg: string """ super(PasswordDialog, self).__init__( - _('Password Protected'), - password_msg, - Gtk.STOCK_DIALOG_AUTHENTICATION, - ( - Gtk.STOCK_CANCEL, + header=_('Password Protected'), + text=password_msg, + icon='dialog-password', + buttons=( + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_CONNECT, + _('_OK'), Gtk.ResponseType.OK, ), - parent, + parent=parent, ) table = Gtk.Table(1, 2, False) diff --git a/deluge/ui/gtk3/files_tab.py b/deluge/ui/gtk3/files_tab.py index 216e5a7c1..9413b0a5d 100644 --- a/deluge/ui/gtk3/files_tab.py +++ b/deluge/ui/gtk3/files_tab.py @@ -372,9 +372,9 @@ class FilesTab(Tab): else: mime_type, uncertain = Gio.content_type_guess(key, None) if not uncertain and mime_type: - mime_icon = Gio.content_type_get_icon(mime_type) + mime_icon = Gio.content_type_get_symbolic_icon(mime_type) else: - mime_icon = Gio.content_type_get_icon('text/plain') + mime_icon = Gio.content_type_get_symbolic_icon('text/plain') self.treestore.append( parent_iter, [key, value[1]['size'], '', 0, 0, value[0], mime_icon] ) diff --git a/deluge/ui/gtk3/glade/add_torrent_dialog.infohash.ui b/deluge/ui/gtk3/glade/add_torrent_dialog.infohash.ui index 2391bff0b..3e91a7cfb 100644 --- a/deluge/ui/gtk3/glade/add_torrent_dialog.infohash.ui +++ b/deluge/ui/gtk3/glade/add_torrent_dialog.infohash.ui @@ -27,11 +27,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -41,13 +41,13 @@ - gtk-ok + _OK True True True True True - True + True False diff --git a/deluge/ui/gtk3/glade/add_torrent_dialog.ui b/deluge/ui/gtk3/glade/add_torrent_dialog.ui index c401a85f4..c103cca28 100644 --- a/deluge/ui/gtk3/glade/add_torrent_dialog.ui +++ b/deluge/ui/gtk3/glade/add_torrent_dialog.ui @@ -48,11 +48,11 @@ end - gtk-cancel + _Cancel True True True - True + True @@ -63,11 +63,11 @@ - gtk-add + _Add True True True - True + True diff --git a/deluge/ui/gtk3/glade/add_torrent_dialog.url.ui b/deluge/ui/gtk3/glade/add_torrent_dialog.url.ui index 7c7cfbbd6..af5efaaae 100644 --- a/deluge/ui/gtk3/glade/add_torrent_dialog.url.ui +++ b/deluge/ui/gtk3/glade/add_torrent_dialog.url.ui @@ -27,11 +27,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -41,13 +41,13 @@ - gtk-ok + _OK True True True True True - True + True False diff --git a/deluge/ui/gtk3/glade/connect_peer_dialog.ui b/deluge/ui/gtk3/glade/connect_peer_dialog.ui index 9321dc890..9ba2a9ea9 100644 --- a/deluge/ui/gtk3/glade/connect_peer_dialog.ui +++ b/deluge/ui/gtk3/glade/connect_peer_dialog.ui @@ -24,11 +24,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -38,13 +38,13 @@ - gtk-ok + _OK True True True True True - True + True False @@ -75,7 +75,7 @@ True False - gtk-add + list-add-symbolic False diff --git a/deluge/ui/gtk3/glade/connection_manager.addhost.ui b/deluge/ui/gtk3/glade/connection_manager.addhost.ui index 1c7f130c7..641a71cc1 100644 --- a/deluge/ui/gtk3/glade/connection_manager.addhost.ui +++ b/deluge/ui/gtk3/glade/connection_manager.addhost.ui @@ -32,11 +32,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -46,7 +46,7 @@ - _Save + _Save True True True diff --git a/deluge/ui/gtk3/glade/connection_manager.ui b/deluge/ui/gtk3/glade/connection_manager.ui index 7d1b30e05..0e7271d43 100644 --- a/deluge/ui/gtk3/glade/connection_manager.ui +++ b/deluge/ui/gtk3/glade/connection_manager.ui @@ -46,7 +46,7 @@ end - _Close + _Close True True True @@ -61,7 +61,7 @@ - C_onnect + C_onnect True True True @@ -144,11 +144,11 @@ start - gtk-add + _Add True True True - True + True @@ -159,11 +159,11 @@ - gtk-edit + _Edit True True True - True + True @@ -174,11 +174,11 @@ - gtk-remove + _Remove True True True - True + True @@ -189,11 +189,11 @@ - gtk-refresh + _Refresh True True True - True + True @@ -229,7 +229,7 @@ True False - gtk-execute + system-run-symbolic False @@ -242,7 +242,7 @@ True False - _Start + _Start Daemon True diff --git a/deluge/ui/gtk3/glade/create_torrent_dialog.remote_path.ui b/deluge/ui/gtk3/glade/create_torrent_dialog.remote_path.ui index cdca95bcb..6595752c6 100644 --- a/deluge/ui/gtk3/glade/create_torrent_dialog.remote_path.ui +++ b/deluge/ui/gtk3/glade/create_torrent_dialog.remote_path.ui @@ -24,11 +24,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -38,13 +38,13 @@ - gtk-ok + _OK True True True True True - True + True False @@ -75,7 +75,7 @@ True False - gtk-network + network-workgroup-symbolic False diff --git a/deluge/ui/gtk3/glade/create_torrent_dialog.remote_save.ui b/deluge/ui/gtk3/glade/create_torrent_dialog.remote_save.ui index 5586bb426..23cebc3a9 100644 --- a/deluge/ui/gtk3/glade/create_torrent_dialog.remote_save.ui +++ b/deluge/ui/gtk3/glade/create_torrent_dialog.remote_save.ui @@ -24,11 +24,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -38,13 +38,13 @@ - gtk-ok + _OK True True True True True - True + True False @@ -75,7 +75,7 @@ True False - gtk-network + network-workgroup-symbolic False diff --git a/deluge/ui/gtk3/glade/create_torrent_dialog.ui b/deluge/ui/gtk3/glade/create_torrent_dialog.ui index 82db1cefb..c27a4b866 100644 --- a/deluge/ui/gtk3/glade/create_torrent_dialog.ui +++ b/deluge/ui/gtk3/glade/create_torrent_dialog.ui @@ -63,7 +63,7 @@ True False - gtk-new + document-new-symbolic 5 @@ -168,7 +168,7 @@ True False - gtk-new + document-new-symbolic False @@ -213,7 +213,7 @@ True False - gtk-open + folder-open-symbolic False @@ -258,7 +258,7 @@ True False - gtk-network + network-workgroup-symbolic False @@ -422,7 +422,7 @@ True False - gtk-info + dialog-information-symbolic True @@ -490,11 +490,11 @@ center - gtk-go-up + _Up True True True - True + True @@ -505,11 +505,11 @@ - gtk-add + _Add True True True - True + True @@ -520,11 +520,11 @@ - gtk-remove + _Remove True True True - True + True @@ -535,11 +535,11 @@ - gtk-go-down + _Down True True True - True + True @@ -571,7 +571,7 @@ True False - gtk-edit + text-editor-symbolic True @@ -632,7 +632,7 @@ True False - gtk-network + network-workgroup-symbolic True @@ -760,7 +760,7 @@ True False - gtk-preferences + preferences-other-symbolic True @@ -804,11 +804,11 @@ end - gtk-cancel + _Cancel True True True - True + True @@ -819,11 +819,11 @@ - gtk-save + _Save True True True - True + True diff --git a/deluge/ui/gtk3/glade/edit_trackers.add.ui b/deluge/ui/gtk3/glade/edit_trackers.add.ui index 7326db5cb..cdf3acce2 100644 --- a/deluge/ui/gtk3/glade/edit_trackers.add.ui +++ b/deluge/ui/gtk3/glade/edit_trackers.add.ui @@ -24,11 +24,11 @@ end - gtk-cancel + _Cancel True True True - True + True @@ -39,13 +39,13 @@ - gtk-ok + _OK True True True True True - True + True @@ -77,7 +77,7 @@ True False - gtk-add + list-add-symbolic False diff --git a/deluge/ui/gtk3/glade/edit_trackers.edit.ui b/deluge/ui/gtk3/glade/edit_trackers.edit.ui index baf874e8f..f6279b2ef 100644 --- a/deluge/ui/gtk3/glade/edit_trackers.edit.ui +++ b/deluge/ui/gtk3/glade/edit_trackers.edit.ui @@ -23,11 +23,11 @@ end - gtk-cancel + _Cancel True True True - True + True @@ -38,13 +38,13 @@ - gtk-ok + _OK True True True True True - True + True @@ -76,7 +76,7 @@ True False - gtk-edit + text-editor-symbolic False diff --git a/deluge/ui/gtk3/glade/edit_trackers.ui b/deluge/ui/gtk3/glade/edit_trackers.ui index 17a2f6dd6..afad60022 100644 --- a/deluge/ui/gtk3/glade/edit_trackers.ui +++ b/deluge/ui/gtk3/glade/edit_trackers.ui @@ -28,11 +28,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -42,11 +42,11 @@ - gtk-ok + _OK True True True - True + True False @@ -77,7 +77,7 @@ True False - gtk-edit + text-editor-symbolic False @@ -144,11 +144,11 @@ center - gtk-go-up + _Up True True True - True + True @@ -159,11 +159,11 @@ - gtk-add + _Add True True True - True + True @@ -174,11 +174,11 @@ - gtk-edit + _Edit True True True - True + True @@ -189,11 +189,11 @@ - gtk-remove + _Remove True True True - True + True @@ -204,11 +204,11 @@ - gtk-go-down + _Down True True True - True + True diff --git a/deluge/ui/gtk3/glade/filtertree_menu.ui b/deluge/ui/gtk3/glade/filtertree_menu.ui index d2e9241f4..29d113c23 100644 --- a/deluge/ui/gtk3/glade/filtertree_menu.ui +++ b/deluge/ui/gtk3/glade/filtertree_menu.ui @@ -5,18 +5,18 @@ True False - gtk-select-all + edit-select-all-symbolic 1 False - gtk-media-pause + media-playback-pause-symbolic 1 True False - gtk-media-play + media-playback-start-symbolic 1 @@ -29,7 +29,6 @@ False True image22 - False @@ -40,7 +39,6 @@ False True menu-item-image22 - False @@ -52,7 +50,6 @@ Resume selected torrents. True menu-item-image23 - False diff --git a/deluge/ui/gtk3/glade/main_window.new_release.ui b/deluge/ui/gtk3/glade/main_window.new_release.ui index da7ebd008..f9c7fd533 100644 --- a/deluge/ui/gtk3/glade/main_window.new_release.ui +++ b/deluge/ui/gtk3/glade/main_window.new_release.ui @@ -25,11 +25,11 @@ end - gtk-close + _Close True True True - True + True False @@ -75,7 +75,7 @@ True False - gtk-missing-image + image-missing False diff --git a/deluge/ui/gtk3/glade/main_window.tabs.menu_file.ui b/deluge/ui/gtk3/glade/main_window.tabs.menu_file.ui index e4534e5be..c73945df0 100644 --- a/deluge/ui/gtk3/glade/main_window.tabs.menu_file.ui +++ b/deluge/ui/gtk3/glade/main_window.tabs.menu_file.ui @@ -47,23 +47,21 @@ False - _Open File + _Open File True False True image6 - False - _Show Folder + _Show Folder True False True image7 - False @@ -80,7 +78,6 @@ False True image1 - False @@ -97,7 +94,6 @@ False True image2 - False @@ -108,7 +104,6 @@ False True image5 - False @@ -119,7 +114,6 @@ False True image3 - False @@ -130,7 +124,6 @@ False True image4 - False diff --git a/deluge/ui/gtk3/glade/main_window.tabs.menu_peer.ui b/deluge/ui/gtk3/glade/main_window.tabs.menu_peer.ui index 31968eaee..55ea739b4 100644 --- a/deluge/ui/gtk3/glade/main_window.tabs.menu_peer.ui +++ b/deluge/ui/gtk3/glade/main_window.tabs.menu_peer.ui @@ -5,7 +5,7 @@ True False - gtk-add + list-add-symbolic 1 @@ -19,7 +19,6 @@ Add a peer by its IP True image1 - False diff --git a/deluge/ui/gtk3/glade/main_window.tabs.ui b/deluge/ui/gtk3/glade/main_window.tabs.ui index 46da59e6c..233cc6b2d 100644 --- a/deluge/ui/gtk3/glade/main_window.tabs.ui +++ b/deluge/ui/gtk3/glade/main_window.tabs.ui @@ -1216,7 +1216,7 @@ False - _Apply + _Apply True False True diff --git a/deluge/ui/gtk3/glade/main_window.ui b/deluge/ui/gtk3/glade/main_window.ui index 3a8e879ff..a2a3cafe6 100644 --- a/deluge/ui/gtk3/glade/main_window.ui +++ b/deluge/ui/gtk3/glade/main_window.ui @@ -2,11 +2,6 @@ - - True - False - gtk-missing-image - True False @@ -57,19 +52,19 @@ True False - gtk-go-up + go-up-symbolic 1 True False - gtk-goto-top + go-top-symbolic 1 True False - gtk-zoom-fit + zoom-fit-best-symbolic 1 @@ -126,7 +121,6 @@ False True add-image - False @@ -138,7 +132,6 @@ False True new-image - False @@ -154,7 +147,6 @@ False True quit-daemon-image - False True @@ -168,12 +160,11 @@ - _Quit + _Quit True False True quit_image - False accelgroup1 @@ -194,12 +185,11 @@ False - _Preferences + _Preferences True False True prefs-image - False accelgroup1 @@ -212,7 +202,6 @@ False True connection-image - False @@ -365,7 +354,6 @@ True False True - False @@ -376,7 +364,6 @@ False Frequently Asked Questions True - False @@ -387,7 +374,6 @@ True False True - False True @@ -400,12 +386,11 @@ - _About + _About True False True about-image - False accelgroup1 @@ -649,7 +634,7 @@ This will filter torrents for the current selection on the sidebar. True False - gtk-close + window-close-symbolic 2 @@ -685,7 +670,7 @@ This will filter torrents for the current selection on the sidebar. True True False - gtk-clear + edit-clear-symbolic True True False diff --git a/deluge/ui/gtk3/glade/move_storage_dialog.ui b/deluge/ui/gtk3/glade/move_storage_dialog.ui index 55c42c513..542d40a3f 100644 --- a/deluge/ui/gtk3/glade/move_storage_dialog.ui +++ b/deluge/ui/gtk3/glade/move_storage_dialog.ui @@ -26,11 +26,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -40,13 +40,13 @@ - gtk-ok + _OK True True True True True - True + True False @@ -77,7 +77,7 @@ True False - gtk-save-as + document-save-as-symbolic False diff --git a/deluge/ui/gtk3/glade/other_dialog.ui b/deluge/ui/gtk3/glade/other_dialog.ui index 74a7ecf26..26d3d08bf 100644 --- a/deluge/ui/gtk3/glade/other_dialog.ui +++ b/deluge/ui/gtk3/glade/other_dialog.ui @@ -35,11 +35,11 @@ end - gtk-cancel + _Cancel True True True - True + True False @@ -49,13 +49,13 @@ - gtk-ok + _OK True True True True True - True + True False diff --git a/deluge/ui/gtk3/glade/preferences_dialog.ui b/deluge/ui/gtk3/glade/preferences_dialog.ui index 01b2631ce..81c2dc9ce 100644 --- a/deluge/ui/gtk3/glade/preferences_dialog.ui +++ b/deluge/ui/gtk3/glade/preferences_dialog.ui @@ -261,11 +261,11 @@ end - gtk-cancel + _Cancel True True True - True + True @@ -276,11 +276,11 @@ - gtk-apply + _Apply True True True - True + True @@ -291,11 +291,11 @@ - gtk-ok + _OK True True True - True + True @@ -616,13 +616,13 @@ and daemon (does not apply in Standalone mode). - gtk-revert-to-saved + _Revert True False True True Revert color to default - True + True right @@ -633,13 +633,13 @@ and daemon (does not apply in Standalone mode). - gtk-revert-to-saved + _Revert True False True True Revert color to default - True + True right @@ -650,13 +650,13 @@ and daemon (does not apply in Standalone mode). - gtk-revert-to-saved + _Revert True False True True Revert color to default - True + True right @@ -667,13 +667,13 @@ and daemon (does not apply in Standalone mode). - gtk-revert-to-saved + _Revert True False True True Revert color to default - True + True right @@ -2735,7 +2735,7 @@ used sparingly. False - gtk-dialog-question + dialog-question-symbolic @@ -4074,11 +4074,11 @@ the proxy instead of using the local DNS service start - gtk-refresh + _Refresh True True True - True + True @@ -4337,7 +4337,7 @@ the proxy instead of using the local DNS service True False - gtk-missing-image + image-missing True @@ -4603,11 +4603,11 @@ the proxy instead of using the local DNS service start - gtk-add + _Add True True True - True + True @@ -4618,12 +4618,12 @@ the proxy instead of using the local DNS service - gtk-edit + _Edit True False True True - True + True @@ -4634,12 +4634,12 @@ the proxy instead of using the local DNS service - gtk-delete + _Delete True False True True - True + True diff --git a/deluge/ui/gtk3/glade/queuedtorrents.ui b/deluge/ui/gtk3/glade/queuedtorrents.ui index 6d374746e..333d45ab2 100644 --- a/deluge/ui/gtk3/glade/queuedtorrents.ui +++ b/deluge/ui/gtk3/glade/queuedtorrents.ui @@ -27,11 +27,11 @@ end - gtk-close + _Close True True True - True + True @@ -42,7 +42,7 @@ - gtk-add + _Add True False True @@ -51,7 +51,7 @@ True True True - True + True @@ -83,7 +83,7 @@ True False - gtk-add + list-add-symbolic False @@ -144,11 +144,11 @@ start - gtk-remove + _Remove True True True - True + True @@ -159,11 +159,11 @@ - gtk-clear + _Clear True True True - True + True diff --git a/deluge/ui/gtk3/glade/remove_torrent_dialog.ui b/deluge/ui/gtk3/glade/remove_torrent_dialog.ui index e49b032f1..8fccaa422 100644 --- a/deluge/ui/gtk3/glade/remove_torrent_dialog.ui +++ b/deluge/ui/gtk3/glade/remove_torrent_dialog.ui @@ -25,7 +25,7 @@ True False - gtk-dialog-warning + dialog-warning-symbolic 6 @@ -95,12 +95,12 @@ end - gtk-cancel + _Cancel True True True True - True + True False @@ -110,11 +110,11 @@ - gtk-ok + _OK True True True - True + True False diff --git a/deluge/ui/gtk3/glade/torrent_menu.options.ui b/deluge/ui/gtk3/glade/torrent_menu.options.ui index df34445d5..c91c14ecb 100644 --- a/deluge/ui/gtk3/glade/torrent_menu.options.ui +++ b/deluge/ui/gtk3/glade/torrent_menu.options.ui @@ -34,7 +34,6 @@ False True download-limit-image - False @@ -44,7 +43,6 @@ False True upload-limit-image - False @@ -54,7 +52,6 @@ False True max-connections-image - False @@ -64,7 +61,6 @@ False True upload-slots-image - False diff --git a/deluge/ui/gtk3/glade/torrent_menu.queue.ui b/deluge/ui/gtk3/glade/torrent_menu.queue.ui index e955adea1..a6f0773bd 100644 --- a/deluge/ui/gtk3/glade/torrent_menu.queue.ui +++ b/deluge/ui/gtk3/glade/torrent_menu.queue.ui @@ -27,41 +27,37 @@ False - Top + Top True False image5 - False - Up + Up True False image6 - False - Down + Down True False image7 - False - Bottom + Bottom True False image8 - False diff --git a/deluge/ui/gtk3/glade/torrent_menu.ui b/deluge/ui/gtk3/glade/torrent_menu.ui index c1b77b4ad..490af1112 100644 --- a/deluge/ui/gtk3/glade/torrent_menu.ui +++ b/deluge/ui/gtk3/glade/torrent_menu.ui @@ -83,7 +83,6 @@ False True menu-item-image7 - False @@ -100,7 +99,6 @@ False True menu-item-image14 - False @@ -112,7 +110,6 @@ Resume selected torrents. True menu-item-image13 - False @@ -129,7 +126,6 @@ False True image1 - False @@ -145,7 +141,6 @@ False True menu-item-image19 - False @@ -161,7 +156,6 @@ False True menu-item-image5 - False @@ -172,7 +166,6 @@ False True menu-item-image12 - False @@ -189,7 +182,6 @@ False True menu-item-image9 - False @@ -206,7 +198,6 @@ False True menu-item-image6 - False @@ -217,7 +208,6 @@ False True menu-item-image8 - False diff --git a/deluge/ui/gtk3/glade/tray_menu.ui b/deluge/ui/gtk3/glade/tray_menu.ui index 6b2053062..d4e24888d 100644 --- a/deluge/ui/gtk3/glade/tray_menu.ui +++ b/deluge/ui/gtk3/glade/tray_menu.ui @@ -68,7 +68,6 @@ False True add-image - False @@ -85,7 +84,6 @@ False True pause-image - False @@ -96,7 +94,6 @@ False True resume-image - False @@ -113,7 +110,6 @@ False True download-limit-image - False True @@ -124,7 +120,6 @@ False True upload-limit-image - False True @@ -141,7 +136,6 @@ False True quit-daemon-image - False @@ -153,12 +147,11 @@ - _Quit + _Quit True False True quit-image - False accelgroup1 diff --git a/deluge/ui/gtk3/menubar.py b/deluge/ui/gtk3/menubar.py index f2430bc90..e98181bbf 100644 --- a/deluge/ui/gtk3/menubar.py +++ b/deluge/ui/gtk3/menubar.py @@ -459,13 +459,13 @@ class MenuBar(component.Component): _('Incoming Connections'), _('Set the maximum incoming connections'), '', - Gtk.STOCK_NETWORK, + 'network-transmit-receive-symbolic', ], 'menuitem_upload_slots': [ _('Peer Upload Slots'), _('Set the maximum upload slots'), '', - Gtk.STOCK_SORT_ASCENDING, + 'view-sort-descending-symbolic', ], 'menuitem_stop_seed_at_ratio': [ _('Stop Seed At Ratio'), diff --git a/deluge/ui/gtk3/new_release_dialog.py b/deluge/ui/gtk3/new_release_dialog.py index dffff61e8..6aa328260 100644 --- a/deluge/ui/gtk3/new_release_dialog.py +++ b/deluge/ui/gtk3/new_release_dialog.py @@ -9,6 +9,8 @@ from __future__ import unicode_literals +from gi.repository.Gtk import IconSize + import deluge.common import deluge.component as component from deluge.configmanager import ConfigManager @@ -29,7 +31,9 @@ class NewReleaseDialog(object): deluge.common.get_pixmap('deluge16.png') ) else: - main_builder.get_object('image_new_release').set_from_icon_name('deluge', 4) + main_builder.get_object('image_new_release').set_from_icon_name( + 'deluge', IconSize.LARGE_TOOLBAR + ) main_builder.get_object('label_available_version').set_text(available_version) main_builder.get_object('label_client_version').set_text( deluge.common.get_version() diff --git a/deluge/ui/gtk3/preferences.py b/deluge/ui/gtk3/preferences.py index 12370ed99..fb3935a90 100644 --- a/deluge/ui/gtk3/preferences.py +++ b/deluge/ui/gtk3/preferences.py @@ -1091,11 +1091,13 @@ class Preferences(component.Component): def on_get_test(status): if status: - self.builder.get_object('port_img').set_from_stock(Gtk.STOCK_YES, 4) + self.builder.get_object('port_img').set_from_icon_name( + 'emblem-ok-symbolic', Gtk.IconSize.MENU + ) self.builder.get_object('port_img').show() else: - self.builder.get_object('port_img').set_from_stock( - Gtk.STOCK_DIALOG_WARNING, 4 + self.builder.get_object('port_img').set_from_icon_name( + 'dialog-warning-symbolic', Gtk.IconSize.MENU ) self.builder.get_object('port_img').show() @@ -1152,9 +1154,9 @@ class Preferences(component.Component): self.pref_dialog, Gtk.FileChooserAction.OPEN, buttons=( - Gtk.STOCK_CANCEL, + _('_Cancel'), Gtk.ResponseType.CANCEL, - Gtk.STOCK_OPEN, + _('_Open'), Gtk.ResponseType.OK, ), ) diff --git a/deluge/ui/gtk3/queuedtorrents.py b/deluge/ui/gtk3/queuedtorrents.py index a7c2dbe60..0f08c24c6 100644 --- a/deluge/ui/gtk3/queuedtorrents.py +++ b/deluge/ui/gtk3/queuedtorrents.py @@ -13,13 +13,7 @@ import logging import os.path from gi.repository.GLib import timeout_add -from gi.repository.Gtk import ( - STOCK_SORT_DESCENDING, - Builder, - CellRendererText, - ListStore, - TreeViewColumn, -) +from gi.repository.Gtk import Builder, CellRendererText, ListStore, TreeViewColumn import deluge.common import deluge.component as component @@ -129,7 +123,7 @@ class QueuedTorrents(component.Component): # have already been added. if self.status_item is None: self.status_item = component.get('StatusBar').add_item( - stock=STOCK_SORT_DESCENDING, + icon='view-sort-descending', text=label, callback=self.on_statusbar_click, )