From 024fb9cbc9eae7043c577d63803ad8caee2e03d6 Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 30 Jul 2020 19:13:49 +0200 Subject: cpufreq: Update cpufreq-preferences.ui --- cpufreq/cpufreq-preferences.ui | 286 +++++++++++++++++++++-------------------- cpufreq/src/cpufreq-prefs.c | 8 +- 2 files changed, 153 insertions(+), 141 deletions(-) diff --git a/cpufreq/cpufreq-preferences.ui b/cpufreq/cpufreq-preferences.ui index 33d719e0..f155f73e 100644 --- a/cpufreq/cpufreq-preferences.ui +++ b/cpufreq/cpufreq-preferences.ui @@ -1,65 +1,103 @@ - + + - - + + + True + False + window-close + + + True + False + help-browser + + False 5 CPU Frequency Monitor Preferences - False - True dialog - - True + + False + vertical 2 + + + False + end + + + _Help + True + True + True + help_img + True + True + + + True + True + 0 + + + + + _Close + True + True + True + close_img + True + True + + + True + True + 1 + + + + + False + False + 0 + + - + True + False 5 + vertical 18 - + True - 6 + False + 0 + none - + True - 0 - Monitor Settings - - - - - - False - False - 0 - - - - - True - - - True - - - - False - False - 0 - - + False + 12 - + True + False + 6 12 True + False + start _Monitored CPU: True prefs_cpu_number + 0 False @@ -70,91 +108,89 @@ True + False + True + True 1 - - 1 - - - 1 - + + + + True + False + Monitor Settings + + + + False + True 0 - + True - 6 + False + 0 + none - - True - 0 - Display Settings - - - - - - False - False - 0 - - - - + True + False + 12 - - True - - - - False - False - 0 - - - - + True + False + vertical 6 - + True + False + 6 12 True + False + start _Appearance: True prefs_show_mode + 0 False + True 0 True + False + True + True 1 False + True 0 @@ -164,31 +200,31 @@ True True False + start True + True True False + True 1 - + + Show frequency _units True - 18 - - - Show frequency _units - True - True - False - True - True - - + True + False + start + 18 + True + True False + True 2 @@ -198,83 +234,59 @@ True True False + start True True prefs_show_freq False + True 3 - - 1 - - - 1 - + + + + True + False + Display Settings + + + + False - False - 1 - - - - - 1 - - - - - True - end - - - gtk-help - True - True - True - False - True - - - False - False - 0 - - - - - gtk-close - True - True - True - False - True - - - False - False + True 1 False - end - 0 + True + 1 - helpbutton2 - closebutton2 + button2 + button1 + + + + + + + + + diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c index 0f425021..e7804f80 100644 --- a/cpufreq/src/cpufreq-prefs.c +++ b/cpufreq/src/cpufreq-prefs.c @@ -50,7 +50,7 @@ struct _CPUFreqPrefsPrivate { GtkWidget *show_unit; GtkWidget *show_perc; GtkWidget *cpu_combo; - GtkWidget *monitor_settings_box; + GtkWidget *monitor_settings_frame; GtkWidget *show_mode_combo; }; @@ -369,9 +369,9 @@ static void cpufreq_prefs_dialog_update_visibility (CPUFreqPrefs *prefs) { if (cpufreq_utils_get_n_cpus () > 1) - gtk_widget_show (prefs->priv->monitor_settings_box); + gtk_widget_show (prefs->priv->monitor_settings_frame); else - gtk_widget_hide (prefs->priv->monitor_settings_box); + gtk_widget_hide (prefs->priv->monitor_settings_frame); } static void @@ -532,7 +532,7 @@ cpufreq_prefs_dialog_create (CPUFreqPrefs *prefs) prefs->priv->show_unit = GTK_WIDGET (gtk_builder_get_object (builder, "prefs_show_unit")); prefs->priv->show_perc = GTK_WIDGET (gtk_builder_get_object (builder, "prefs_show_perc")); - prefs->priv->monitor_settings_box = GTK_WIDGET (gtk_builder_get_object (builder, "monitor_settings_box")); + prefs->priv->monitor_settings_frame = GTK_WIDGET (gtk_builder_get_object (builder, "monitor_settings_frame")); g_object_unref (builder); -- cgit v1.2.1