Age | Commit message (Collapse) | Author | Files | Lines |
|
Key press events weren’t passed to GTK normally, which
prevented from opening the contextual menu without the mouse.
|
|
|
|
Commit 4cb6f915 added cpufreq-selector-sysfs.[ch] to
mate_cpufreq_selector_SOURCES for the !HAVE_LIBCPUFREQ case, but left
them unconditionally included as well. Including them twice leads to
duplicate definitions for the symbols defined by them.
|
|
|
|
|
|
|
|
|
|
- tabs to spaces
- 4 spaces at the beginning of a line
|
|
|
|
|
|
|
|
origin commit:
https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/66e58e7
|
|
origin commit:
https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/8951c6f
|
|
- tab to spaces
- use 4 spaces at the beginning of a line
|
|
|
|
|
|
https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/ed5418eed57cb00976603923d2ccf2b1b8acddf4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cpufreq-selector-sysfs.c:244:18: warning: taking the absolute value of unsigned type ‘guint’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
244 | current_dist = abs (frequency - f);
| ^~~
--
cpufreq-selector-procfs.c:187:7: warning: taking the absolute value of unsigned type ‘guint’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
187 | if (abs (sc_max - frequency) < abs (frequency - sc_min))
| ^~~
cpufreq-selector-procfs.c:187:34: warning: taking the absolute value of unsigned type ‘guint’ {aka ‘unsigned int’} has no effect [-Wabsolute-value]
187 | if (abs (sc_max - frequency) < abs (frequency - sc_min))
| ^~~
--
cpufreq-selector-libcpufreq.c:109:18: warning: taking the absolute value of unsigned type ‘long unsigned int’ has no effect [-Wabsolute-value]
109 | current_dist = abs (freq->frequency - frequency);
| ^~~
|
|
Ported from gnome-applets, see
git diff e48b2d73~..5882df7f cpufreq/ configure.ac
on the gnome-applets repository.
Fixes mate-desktop/mate-applets#238.
|
|
|
|
|
|
void
g_list_free_full (GList *list,
GDestroyNotify free_func);
Convenience method, which frees all the memory used
by a GList, and calls free_func on every element's
data.
https://developer.gnome.org/glib/stable/glib-Doubly-Linked-Lists.html#g-list-free-full
|
|
|
|
|
|
|
|
Note that GTK+ sets a default title of _("About %s") on the dialog
window (where %s is replaced by the name of the application, but
in order to ensure proper translation of the title, applications
should set the title property explicitly when constructing a
GtkAboutDialog
https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html
|
|
Also stop any other segfaults caused by failure of deprecated gtk_action_group_get_action to return the name of the active item. With GTK 3.23.0 cpufreq_popup_menu_set_active sends invalid name information for userspace governors
|
|
happens if build with -lcpupower and kernel 4.7+
```
cpufreq-monitor-libcpufreq.c: In function 'cpufreq_monitor_libcpufreq_run':
cpufreq-monitor-libcpufreq.c:117:7: warning: implicit declaration of function 'cpupower_is_cpu_online' [-Wimplicit-function-declaration]
if (cpupower_is_cpu_online (cpu)) {
^~~~~~~~~~~~~~~~~~~~~~
```
|
|
|
|
right away
Use a default "---" label until frequency values are found
|
|
|
|
Remove old code left over from GTK2 that never worked properly in GTK 3
|
|
This improves support for HiDPI by loading properly scaled surfaces for applets.
|
|
|
|
|
|
|
|
|
|
This commit reverts:
https://github.com/mate-desktop/mate-applets/commit/d809e57c7b09f545f1cf847f514fa738d44ac2b3
https://github.com/mate-desktop/mate-applets/commit/2f5515815c1f6c9b66f85d6ec228aad7aea0b441
And it applies an alternative to fix the deprecated functions:
gdk_screen_get_width
gdk_screen_get_height
gdk_screen_width
gdk_screen_height
|
|
|
|
*Force the frequency label to hold the largest size it ever takes
*Reset label size with any change of theme or font to avoid truncation
*Clean up a nasty mix of spaced and tabs in cpufreq_applet_refresh
|
|
|