From ba74b3280e346627371f22a90c2170b07ef22161 Mon Sep 17 00:00:00 2001 From: Sorokin Alexei Date: Mon, 21 Mar 2016 11:00:05 +0300 Subject: Fix some deprecations --- Mozo/MainWindow.py | 2 +- data/mozo.ui | 519 +++++++++++++++++++++-------------------------------- 2 files changed, 204 insertions(+), 317 deletions(-) diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index ca2be27..c6fa109 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -630,7 +630,7 @@ class MainWindow: pass GLib.timeout_add(10, self.quit) - def on_style_set(self, *args): + def on_style_updated(self, *args): self.loadUpdates() def quit(self): diff --git a/data/mozo.ui b/data/mozo.ui index 9ea0955..c532687 100644 --- a/data/mozo.ui +++ b/data/mozo.ui @@ -1,29 +1,29 @@ - - + + + gtk-properties - edit_properties - + document-properties + - gtk-revert-to-saved - edit_revert_to_original _Revert to Original - + document-revert + gtk-delete - edit_delete - + edit-delete + @@ -38,107 +38,97 @@ - - - - - - - - - + True + False + - 5 675 530 True + False + 5 Main Menu - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_CENTER - False - True - False - True - False - False - GDK_WINDOW_TYPE_HINT_NORMAL - GDK_GRAVITY_NORTH_WEST - True - False - - - - + center + normal + + + - + True - False + False 2 - + True - GTK_BUTTONBOX_END + False + end + gtk-help True - True True - gtk-help + True + False True - GTK_RELIEF_NORMAL - True - + + + False + False + 0 + + gtk-revert-to-saved True - Restore the default menu layout - True True - gtk-revert-to-saved + True + False + Restore the default menu layout True - GTK_RELIEF_NORMAL - True - + + + False + False + 1 + + gtk-close True + True True True - True - gtk-close + False True - GTK_RELIEF_NORMAL - True - + + + False + False + 2 + - 0 False True - GTK_PACK_END + end + 0 - 5 True - 0.5 - 0.5 - 1 - 1 - 0 - 0 - 0 - 0 + False + 5 - False + False 6 @@ -148,214 +138,166 @@ True - False + False 6 True + False _Menus: True - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 menu_tree - PANGO_ELLIPSIZE_NONE - -1 True - 0 + 0 - 0 False False + 0 True True - GTK_POLICY_EXTERNAL - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT + external + automatic + in True True True False - False - False - True - False - False - False - - - + + + + + + - 0 True True + 1 - True False + True True - False + False 6 True + False It_ems: True - False - GTK_JUSTIFY_LEFT - False - False - 0 - 0.5 - 0 - 0 item_tree - PANGO_ELLIPSIZE_NONE - -1 True - 0 + 0 - 0 False False + 0 True - False + False 6 True True - GTK_POLICY_AUTOMATIC - GTK_POLICY_AUTOMATIC - GTK_SHADOW_IN - GTK_CORNER_TOP_LEFT + in True True - True True - False - True - False - False - False - - - - - - - - + + + + + + + + + + + - 0 True True + 0 True - False + False 6 True - GTK_BUTTONBOX_START + False 6 + start True - True True - GTK_RELIEF_NORMAL - True - + True + False + True - 0.5 - 0.5 + False 0 0 - 0 - 0 - 0 - 0 True - False + False 2 True + False gtk-new - 4 - 0.5 - 0.5 - 0 - 0 - 0 False False + 0 True + False _New Menu True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - 0 False False + 1 @@ -363,69 +305,53 @@ + + False + False + 0 + True - True True - GTK_RELIEF_NORMAL - True - + True + False + True - 0.5 - 0.5 + False 0 0 - 0 - 0 - 0 - 0 True - False + False 2 True + False gtk-add - 4 - 0.5 - 0.5 - 0 - 0 - 0 False False + 0 True + False Ne_w Item True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - 0 False False + 1 @@ -433,104 +359,87 @@ + + False + False + 1 + + New _Separator True - True True - New _Separator + True + False True - GTK_RELIEF_NORMAL - True - + + + False + False + 2 + - 0 False True + 0 True - 0.5 - 0.5 - 1 - 1 + False 12 - 0 - 0 - 0 True - GTK_BUTTONBOX_START + False 6 + start True - True True - GTK_RELIEF_NORMAL - True - + True + False + True - 0.5 - 0.5 + False 0 0 - 0 - 0 - 0 - 0 True - False + False 2 True + False gtk-go-up - 4 - 0.5 - 0.5 - 0 - 0 - 0 False False + 0 True + False Move Up True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - 0 False False + 1 @@ -538,69 +447,53 @@ + + False + False + 0 + True - True True - GTK_RELIEF_NORMAL - True - + True + False + True - 0.5 - 0.5 + False 0 0 - 0 - 0 - 0 - 0 True - False + False 2 True + False gtk-go-down - 4 - 0.5 - 0.5 - 0 - 0 - 0 False False + 0 True + False Move Down True - False - GTK_JUSTIFY_LEFT - False - False - 0.5 - 0.5 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - 0 False False + 1 @@ -608,50 +501,55 @@ + + False + False + 1 + - 0 True True + 1 - 0 False True + 1 - 0 True True + 1 - True True + True - 0 True True + 0 - 0 True True + 1 @@ -661,112 +559,101 @@ revert_button close_button + + False 5 Revert Changes? - GTK_WINDOW_TOPLEVEL - GTK_WIN_POS_NONE - False False - False - True - False - False - GDK_WINDOW_TYPE_HINT_DIALOG - GDK_GRAVITY_NORTH_WEST - True - False + dialog - + True - False + False 2 - + True - GTK_BUTTONBOX_END + False + end + gtk-cancel True - True True - gtk-cancel + True + False True - GTK_RELIEF_NORMAL - True + + False + False + 0 + + gtk-revert-to-saved True - True True - gtk-revert-to-saved + True + False True - GTK_RELIEF_NORMAL - True + + False + False + 1 + - 0 False True - GTK_PACK_END + end + 0 - 5 True - False + False + 5 8 True - 6 - gtk-dialog-question + False 0 - 0.5 - 0 - 0 + gtk-dialog-question + 6 - 0 False True + 0 True + False Revert all menus to original settings? - False - False - GTK_JUSTIFY_LEFT - False - False 0 0 - 0 - 0 - PANGO_ELLIPSIZE_NONE - -1 - False - 0 - 0 True True + 1 - 0 True True + 1 -- cgit v1.2.1