From 337839f809e0adfd12fe1a849b9afc903b2054ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hakan=20D=C3=BCndar?= Date: Wed, 7 Dec 2022 15:05:31 +0300 Subject: [PATCH] Changes for version (v1.36.0) --- Changes.md | 5 +++++ debian/changelog | 8 ++++++++ src/MainGUI.py | 16 +++------------- src/MainMenusDialogs.py | 6 +++--- src/__version__ | 2 +- 5 files changed, 20 insertions(+), 17 deletions(-) diff --git a/Changes.md b/Changes.md index 6cc9fa4e..db960902 100644 --- a/Changes.md +++ b/Changes.md @@ -1,5 +1,10 @@ # System Monitoring Center +### v1.36.0 (08.12.2022) + * New: Single menu button for all customization menus + * Minor visual simplifications for customization menus + * Code simplifications, bug fixes, etc. + ### v2.2.0 (05.12.2022) * New: Adw. theme is set for the GUI * Visual improvements for Summary tab graphics diff --git a/debian/changelog b/debian/changelog index fa73abf0..9cc916b6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +system-monitoring-center (1.36.0) unstable; urgency=medium + + * New: Single menu button for all customization menus + * Minor visual simplifications for customization menus + * Code simplifications, bug fixes, etc. + + -- Hakan Dündar Thu, 08 Dec 2022 09:00:00 +0300 + system-monitoring-center (1.35.1) unstable; urgency=medium * Fix: Fix: Application shortcut and image diff --git a/src/MainGUI.py b/src/MainGUI.py index 039d29b6..0fc8ed81 100644 --- a/src/MainGUI.py +++ b/src/MainGUI.py @@ -30,17 +30,14 @@ def __init__(self): except Exception: pass - # Detect environment type (Flatpak or native). This information will be used for accessing host OS commands if the application is run in Flatpak environment. self.main_gui_environment_type_detection_func() # Add images to the image theme. These images are used for application GUI. image_theme = Gtk.IconTheme. get_default() image_theme.append_search_path(os.path.dirname(os.path.realpath(__file__)) + "/../icons") - # Generate symbolic links for GUI icons and application shortcut (.desktop file) in user folders if they are not generated. self.main_gui_application_system_integration_func() - # Adapt to system color scheme (light/dark) on systems with newer versions than GTK3. self.main_gui_adapt_color_scheme_for_gtk4_based_systems_func() # Get GUI objects from file @@ -91,7 +88,6 @@ def __init__(self): self.button1.connect("clicked", self.on_button1_clicked) self.button2.connect("clicked", self.on_button2_clicked) - # Get GUI objects for performance summary on the window headerbar. self.grid101 = builder.get_object('grid101') self.drawingarea101 = builder.get_object('drawingarea101') @@ -102,11 +98,10 @@ def __init__(self): self.label104 = builder.get_object('label104') self.label105 = builder.get_object('label105') self.label106 = builder.get_object('label106') - # Get chart functions from another module and define as local objects for lower CPU usage (for performance summary on the window headerbar). - self.performance_bar_charts_draw_func = Performance.performance_bar_charts_draw_func + # Connect GUI signals for performance summary on the window headerbar. - self.drawingarea101.connect("draw", self.performance_bar_charts_draw_func) - self.drawingarea102.connect("draw", self.performance_bar_charts_draw_func) + self.drawingarea101.connect("draw", Performance.performance_bar_charts_draw_func) + self.drawingarea102.connect("draw", Performance.performance_bar_charts_draw_func) # Run initial function for performance summary on the window headerbar. self.main_gui_performance_summary_headerbar_initial_func() @@ -192,16 +187,12 @@ def on_window1_show(self, widget): Config.current_main_tab = -1 Config.performance_tab_current_sub_tab = -1 - # Start loop function to run loop functions of opened tabs to get data of them. self.main_gui_tab_loop_func() - # Run default tab function after main window is shown. self.main_gui_default_tab_func() - # Connect main gui radiobuttons signals after switching to default tab (by using "main_gui_default_tab_func") in order to avoid running functions during this switches. self.main_gui_radiobuttons_connect_signals_func() - # Run main tab function after main window is shown (this function is also called when main tab checkbuttons are toggled). self.main_gui_tab_switch_func() # Show information for warning the user if the application has been run with root privileges (if UID=0). Information is shown just below the application window headerbar. @@ -931,7 +922,6 @@ def main_gui_environment_type_detection_func(self): Config.environment_type = environment_type - # ----------------------- Called for copying application image and shortcut (.desktop file) in user folders if they are not copied before. ----------------------- def main_gui_application_system_integration_func(self): """ Copy files for application shortcut (.desktop file) in user folders if they are not copied before. diff --git a/src/MainMenusDialogs.py b/src/MainMenusDialogs.py index 9eec4bc8..dbc5a443 100644 --- a/src/MainMenusDialogs.py +++ b/src/MainMenusDialogs.py @@ -55,7 +55,7 @@ def on_button1002p_clicked(self, widget): pass # Define translators dictionary - translators_dic = {"cs": "panmourovaty", + translators_dict = {"cs": "panmourovaty", "de": "Baumfinder", "fa": "MasterKia", "hu": "Kálmán Szalai", @@ -75,10 +75,10 @@ def on_button1002p_clicked(self, widget): # Define translators list try: - translators = '\n'.join(translators_dic[application_language_code].split(", ")) + translators = '\n'.join(translators_dict[application_language_code].split(", ")) except Exception: try: - translators = '\n'.join(translators_dic[application_language_code_split].split(", ")) + translators = '\n'.join(translators_dict[application_language_code_split].split(", ")) except Exception: translators = "-" diff --git a/src/__version__ b/src/__version__ index 7eee7857..39fc130e 100644 --- a/src/__version__ +++ b/src/__version__ @@ -1 +1 @@ -1.35.1 +1.36.0