rpms/gnome-applets/devel gnome-applets-2.16.0.1-cpufreq-changes.patch, NONE, 1.1 gnome-applets.spec, 1.192, 1.193
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Oct 24 03:58:53 UTC 2006
- Previous message (by thread): rpms/scim-m17n/devel scim-m17n-US-keyboard-211266.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 scim-m17n-no-M17N-prefix.patch, 1.1, 1.2 scim-m17n.spec, 1.11, 1.12 sources, 1.3, 1.4 scim-m17n-0.2.0-unique-uuid.patch, 1.2, NONE
- Next message (by thread): rpms/gnome-applets/devel gnome-applets-2.16.1-desktop-files.patch, NONE, 1.1 gnome-applets.spec, 1.193, 1.194
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mclasen
Update of /cvs/dist/rpms/gnome-applets/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5813
Modified Files:
gnome-applets.spec
Added Files:
gnome-applets-2.16.0.1-cpufreq-changes.patch
Log Message:
fix cpufreq applet a bit
gnome-applets-2.16.0.1-cpufreq-changes.patch:
cpufreq-applet.c | 28 +++++++++++++++++++++++-----
1 files changed, 23 insertions(+), 5 deletions(-)
--- NEW FILE gnome-applets-2.16.0.1-cpufreq-changes.patch ---
--- gnome-applets-2.16.0.1/cpufreq/src/cpufreq-applet.c.cpufreq-changes 2006-10-23 23:44:40.000000000 -0400
+++ gnome-applets-2.16.0.1/cpufreq/src/cpufreq-applet.c 2006-10-23 23:45:42.000000000 -0400
@@ -54,6 +54,7 @@
gboolean show_perc;
gboolean show_unit;
gboolean show_icon;
+ gboolean do_refresh;
CPUFreqMonitor *monitor;
@@ -222,6 +223,8 @@
applet->size = panel_applet_get_size (PANEL_APPLET (applet));
applet->orient = panel_applet_get_orient (PANEL_APPLET (applet));
+ applet->do_refresh = TRUE;
+
gtk_widget_show (GTK_WIDGET (applet));
}
@@ -663,7 +666,6 @@
gint perc;
guint cpu;
gchar *governor;
- static gboolean do_refresh = TRUE;
cpu = cpufreq_monitor_get_cpu (monitor);
freq = cpufreq_monitor_get_frequency (monitor);
@@ -713,9 +715,9 @@
g_free (text_tip);
/* Call refresh only the first time */
- if (do_refresh) {
+ if (applet->do_refresh) {
cpufreq_applet_refresh (applet);
- do_refresh = FALSE;
+ applet->do_refresh = FALSE;
}
}
@@ -844,6 +846,18 @@
}
static void
+cpufreq_applet_prefs_cpu_changed (CPUFreqPrefs *prefs,
+ GParamSpec *arg1,
+ CPUFreqApplet *applet)
+{
+ gint cpu;
+
+ cpu = cpufreq_prefs_get_cpu (prefs);
+ cpufreq_monitor_set_cpu (applet->monitor, cpu);
+ cpufreq_applet_update (applet, applet->monitor);
+}
+
+static void
cpufreq_applet_setup (CPUFreqApplet *applet)
{
BonoboUIComponent *popup_component;
@@ -873,9 +887,11 @@
"notify::show-text-mode",
G_CALLBACK (cpufreq_applet_prefs_show_mode_changed),
(gpointer) applet);
+ g_signal_connect (G_OBJECT (applet->prefs),
+ "notify::cpu",
+ G_CALLBACK (cpufreq_applet_prefs_cpu_changed),
+ (gpointer) applet);
- cpufreq_applet_update_visibility (applet);
-
/* Monitor */
applet->monitor = cpufreq_monitor_factory_create_monitor (
cpufreq_prefs_get_cpu (applet->prefs));
@@ -884,6 +900,8 @@
G_CALLBACK (cpufreq_applet_update),
(gpointer) applet);
+ cpufreq_applet_update_visibility (applet);
+
/* Setup the menus */
panel_applet_setup_menu_from_file (PANEL_APPLET (applet),
DATADIR,
Index: gnome-applets.spec
===================================================================
RCS file: /cvs/dist/rpms/gnome-applets/devel/gnome-applets.spec,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -r1.192 -r1.193
--- gnome-applets.spec 22 Oct 2006 00:06:22 -0000 1.192
+++ gnome-applets.spec 24 Oct 2006 03:58:50 -0000 1.193
@@ -33,7 +33,7 @@
Summary: Small applications for the GNOME panel
Name: gnome-applets
Version: 2.16.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
License: GPL
Group: User Interface/Desktops
@@ -59,6 +59,8 @@
# http://bugzilla.gnome.org/show_bug.cgi?id=356536
Patch25: gnome-applets-2.16.0.1-keyboard-indicator-segfault.patch
+Patch26: gnome-applets-2.16.0.1-cpufreq-changes.patch
+
URL: http://www.gnome.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -149,6 +151,7 @@
%patch20 -p1 -b .redraw
%patch25 -p1 -b .keyboard-indicator-segfault
+%patch26 -p1 -b .cpufreq-changes
cp gswitchit/gswitchit-applet.png gswitchit/gswitchit-properties-capplet.png
@@ -337,6 +340,9 @@
%{_libdir}/pkgconfig/gweather.pc
%changelog
+* Mon Oct 23 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.16.1-2
+- Make the cpufreq applet pick up preference changes (#209168)
+
* Sat Oct 21 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.16.1-1
- Update to 2.16.1
- Drop upstreamed patches
- Previous message (by thread): rpms/scim-m17n/devel scim-m17n-US-keyboard-211266.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 scim-m17n-no-M17N-prefix.patch, 1.1, 1.2 scim-m17n.spec, 1.11, 1.12 sources, 1.3, 1.4 scim-m17n-0.2.0-unique-uuid.patch, 1.2, NONE
- Next message (by thread): rpms/gnome-applets/devel gnome-applets-2.16.1-desktop-files.patch, NONE, 1.1 gnome-applets.spec, 1.193, 1.194
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list