From 4bc283a4209fe9f11ddac86a05884dd037c5a89f Mon Sep 17 00:00:00 2001 From: fossfreedom Date: Wed, 28 Jan 2015 20:40:04 +0000 Subject: [PATCH] remove lots of deprecated Gtk syntax --- coverart_export.py | 1 + coverart_toolbar.py | 2 +- ui/coverart_browser.ui | 3 +- ui/coverart_browser_prefs.ui | 14 +---- ui/coverart_leftsidebar.ui | 1 - ui/coverart_rightsidebar.ui | 1 - ui/coverart_topbar.ui | 26 ++++----- ui/coverart_window.ui | 103 ++++++++++++++++++++--------------- 8 files changed, 73 insertions(+), 78 deletions(-) diff --git a/coverart_export.py b/coverart_export.py index 348dd85..d43a1a9 100644 --- a/coverart_export.py +++ b/coverart_export.py @@ -83,6 +83,7 @@ class CoverArtExport(GObject.Object): 'ui/coverart_exportembed.ui')) ui.connect_signals(self) embeddialog = ui.get_object('exportembeddialog') + embeddialog.set_transient_for(self.shell.props.window) folderchooserbutton = ui.get_object('folderchooserbutton') use_album_name_checkbutton = ui.get_object('use_album_name_checkbutton') open_filemanager_checkbutton = ui.get_object('open_filemanager_checkbutton') diff --git a/coverart_toolbar.py b/coverart_toolbar.py index 8dbbcda..2f09940 100644 --- a/coverart_toolbar.py +++ b/coverart_toolbar.py @@ -52,7 +52,7 @@ class Toolbar(GObject.Object): # create the toolbar builder = Gtk.Builder() builder.set_translation_domain(cl.Locale.LOCALE_DOMAIN) - + print (ui_file) builder.add_from_file(ui_file) # assign the controllers to the buttons diff --git a/ui/coverart_browser.ui b/ui/coverart_browser.ui index 10c2f06..a627a58 100644 --- a/ui/coverart_browser.ui +++ b/ui/coverart_browser.ui @@ -1,11 +1,10 @@ - True False - gtk-cancel + gtk-cancel diff --git a/ui/coverart_browser_prefs.ui b/ui/coverart_browser_prefs.ui index 13f72af..2dc6ea4 100644 --- a/ui/coverart_browser_prefs.ui +++ b/ui/coverart_browser_prefs.ui @@ -1,5 +1,5 @@ - + @@ -982,8 +982,6 @@ albums to play 2 0 - 1 - 1 @@ -1000,8 +998,6 @@ albums to play 2 1 - 1 - 1 @@ -1013,8 +1009,6 @@ albums to play 0 0 - 1 - 1 @@ -1026,8 +1020,6 @@ albums to play 0 1 - 1 - 1 @@ -1039,8 +1031,6 @@ albums to play 1 0 - 1 - 1 @@ -1052,8 +1042,6 @@ albums to play 1 1 - 1 - 1 diff --git a/ui/coverart_leftsidebar.ui b/ui/coverart_leftsidebar.ui index 6e4c8d8..30713d2 100644 --- a/ui/coverart_leftsidebar.ui +++ b/ui/coverart_leftsidebar.ui @@ -1,7 +1,6 @@ - False start diff --git a/ui/coverart_rightsidebar.ui b/ui/coverart_rightsidebar.ui index b42b8b0..ad78731 100644 --- a/ui/coverart_rightsidebar.ui +++ b/ui/coverart_rightsidebar.ui @@ -1,7 +1,6 @@ - False start diff --git a/ui/coverart_topbar.ui b/ui/coverart_topbar.ui index 68cc980..9ea63db 100644 --- a/ui/coverart_topbar.ui +++ b/ui/coverart_topbar.ui @@ -1,11 +1,11 @@ + - - + True False - True + True True @@ -17,7 +17,6 @@ True False False - False half @@ -49,7 +48,6 @@ center center 1 - False half @@ -68,7 +66,6 @@ center center 1 - False False @@ -79,14 +76,12 @@ False - False False False True center center 1 - False half @@ -98,14 +93,12 @@ False - False True True True center center 1 - False False @@ -161,7 +154,6 @@ center center 1 - False half @@ -201,8 +193,11 @@ + + 0 + 0 + - True @@ -212,8 +207,8 @@ True False - 0.50 1 + 0.5 False @@ -223,9 +218,8 @@ - True - True - 1 + 1 + 0 diff --git a/ui/coverart_window.ui b/ui/coverart_window.ui index 559cce4..9652ed1 100644 --- a/ui/coverart_window.ui +++ b/ui/coverart_window.ui @@ -1,23 +1,59 @@ - + + - + + False GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK center-on-parent True - + True + False vertical + + + True + True + True + + + True + False + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 400 + 400 + + + 0 + 0 + True + False + gtk-missing-image + + + + + + + False + True + 0 + + True - text + False + icons True - gtk-save-as - + False + gtk-save-as + False @@ -27,8 +63,9 @@ True - gtk-zoom-in - + False + gtk-zoom-in + False @@ -38,8 +75,9 @@ True - gtk-zoom-out - + False + gtk-zoom-out + False @@ -49,8 +87,9 @@ True - gtk-zoom-100 - + False + gtk-zoom-100 + False @@ -60,8 +99,9 @@ True - gtk-zoom-fit - + False + gtk-zoom-fit + False @@ -71,10 +111,11 @@ True + False True - gtk-close + gtk-close + - False @@ -88,40 +129,14 @@ 1 - - - True - True - automatic - automatic - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 400 - 400 - - - 0 - 0 - True - gtk-missing-image - - - - - - - 0 - - True + False False + True 2