diff --git a/glade/dgtkpopups.glade b/glade/dgtkpopups.glade index ceddc24bf..53ff4606a 100644 --- a/glade/dgtkpopups.glade +++ b/glade/dgtkpopups.glade @@ -1,6 +1,6 @@ - + True @@ -219,4 +219,36 @@ + + 5 + True + True + True + False + http://deluge-torrent.org + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 2 + + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + GTK_BUTTONBOX_END + + + False + GTK_PACK_END + + + + + diff --git a/src/delugegtk.py b/src/delugegtk.py index c62d747e3..7f8c9aaa0 100644 --- a/src/delugegtk.py +++ b/src/delugegtk.py @@ -181,7 +181,7 @@ class DelugeGTK(dbus.service.Object): def build_about_dialog(self): gtk.about_dialog_set_url_hook(dcommon.open_url_in_browser) - self.abt = gtk.AboutDialog() + self.abt = gtk.glade.XML(dcommon.get_glade_file("dgtkpopups.glade")).get_widget("aboutdialog") self.abt.set_name(dcommon.PROGRAM_NAME) self.abt.set_version(dcommon.PROGRAM_VERSION) self.abt.set_authors(["Zach Tibbits", "A. Zakai"]) @@ -687,6 +687,8 @@ class DelugeGTK(dbus.service.Object): if torrent is not None: glade = gtk.glade.XML(dcommon.get_glade_file("dgtkpopups.glade")) asker = glade.get_widget("remove_torrent_dlg") + + asker.set_icon_from_file(dcommon.get_pixmap("deluge32.png")) warning = glade.get_widget("warning") warning.set_text(" ") diff --git a/src/dgtk.py b/src/dgtk.py index 26e103ee1..e248498f9 100644 --- a/src/dgtk.py +++ b/src/dgtk.py @@ -42,6 +42,8 @@ def show_file_open_dialog(parent=None): f1.add_pattern("*") chooser.add_filter(f1) + chooser.set_icon_from_file(dcommon.get_pixmap("deluge32.png")) + response = chooser.run() if response == gtk.RESPONSE_OK: result = chooser.get_filename() @@ -53,6 +55,7 @@ def show_file_open_dialog(parent=None): def show_directory_chooser_dialog(parent=None): chooser = gtk.FileChooserDialog(_("Choose a download directory"), parent, gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, gtk.STOCK_OK, gtk.RESPONSE_OK)) + chooser.set_icon_from_file(dcommon.get_pixmap("deluge32.png")) if chooser.run() == gtk.RESPONSE_OK: result = chooser.get_filename() else: