Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Changes for version (v1.36.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakandundar34coding committed Dec 7, 2022
1 parent 729aff8 commit 337839f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
5 changes: 5 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -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 <[email protected]> Thu, 08 Dec 2022 09:00:00 +0300

system-monitoring-center (1.35.1) unstable; urgency=medium

* Fix: Fix: Application shortcut and image
Expand Down
16 changes: 3 additions & 13 deletions src/MainGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand All @@ -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()
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/MainMenusDialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 = "-"

Expand Down
2 changes: 1 addition & 1 deletion src/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.35.1
1.36.0

0 comments on commit 337839f

Please sign in to comment.