summaryrefslogtreecommitdiff
path: root/cpufreq/src
AgeCommit message (Collapse)AuthorFilesLines
2020-12-09cpufreq: Remove /proc/cpufreq support (Linux 2.4)rbuj8-601/+35
2020-12-06remove dead function mate_panel_applet_set_background_widgetmbkma1-1/+0
2020-11-20Cpufreq code styleraveit6531-3198/+3217
- tabs to spaces - 4 spaces at the beginning of a line
2020-08-05cpufreq: Remove warning about unreachable code reported by scan-buildrbuj1-25/+24
2020-08-03cpufreq: -1 indicates error obtaining max frequencyrbuj1-1/+1
2020-08-03cpufreq: Update cpufreq-preferences.uirbuj1-4/+4
2020-08-01cpufreq: avoid deprecated GtkAlignmentAlberts Muktupāvels1-14/+9
origin commit: https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/66e58e7
2020-08-01cpufreq: create all needed widgets only onceAlberts Muktupāvels1-53/+49
origin commit: https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/8951c6f
2020-08-01 cpufreq: fix code-styleraveit652-609/+619
- tab to spaces - use 4 spaces at the beginning of a line
2020-07-30cpufreq: Load menu and ui file from resourcesrbuj3-9/+21
2020-07-17Remove warning about assigned value is never used reported by cppcheckrbuj1-1/+1
2020-05-21cpufreq: Port client of selector service to GDBusrbuj3-72/+109
https://gitlab.gnome.org/GNOME/gnome-applets/-/commit/ed5418eed57cb00976603923d2ccf2b1b8acddf4
2020-05-21build: Remove MATEDESKTOP_CFLAGS and MATEDESKTOP_LIBSrbuj1-3/+1
2020-05-21build: Use dbus-glib only when requiredrbuj1-5/+11
2020-04-25Remove unused-function warningsrbuj1-19/+1
2020-04-16Remove unused-variable warningsrbuj1-1/+0
2020-04-08build: Use WARN_CFLAGS variablerbuj1-2/+5
2020-01-10Update copyright to 2020raveit651-1/+1
2020-01-10make the dbus directory configurableChristian Hesse1-1/+1
2020-01-09migrate from intltools to gettextWu Xiaotian3-6/+4
2019-12-04avoid redundant redeclarationsPablo Barciela12-28/+0
2019-09-10cpufreq: remove -Wabsolute-value warningrbuj3-3/+3
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); | ^~~
2019-08-29Make cpufreq builds independent from kernel header version.Mike Gabriel2-9/+16
Ported from gnome-applets, see git diff e48b2d73~..5882df7f cpufreq/ configure.ac on the gnome-applets repository. Fixes mate-desktop/mate-applets#238.
2019-05-27cpufreq: deprecated g_type_class_add_privateWu Xiaotian5-39/+14
2019-05-16cpufreq: support kernel 5.1.0raveit652-2/+17
2019-04-14Use g_list_free_full() convenience functionrbuj2-17/+5
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
2019-03-20assignment discards 'const' qualifier from pointer target typerbuj1-1/+1
2019-03-20Make translatable documenters in about dialogrbuj1-0/+7
2019-03-20Make translatable copyright info in about dialogrbuj1-5/+2
2019-03-20Ensure proper translation of the about dialog titlerbuj1-0/+1
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
2018-07-12cpufreq: stop segfault with gtk3.23lukefromdc1-1/+10
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
2018-07-10cpufreq: fix a -Wimplicit-function-declarationraveit651-0/+4
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)) { ^~~~~~~~~~~~~~~~~~~~~~ ```
2018-07-08cpu-freq: replace deprecated gtk_menu_popupraveit651-52/+5
2018-06-11Cpufreq: Force the frequency label to render if frequencies are not found ↵lukefromdc1-1/+7
right away Use a default "---" label until frequency values are found
2018-06-11Cpufreq: Refactor to remove more GTK2 leftoverslukefromdc1-112/+10
2018-06-11Cpufreq: ensure frequency label always shows up if freq selectedlukefromdc1-44/+7
Remove old code left over from GTK2 that never worked properly in GTK 3
2018-05-12Convert applet icons from pixbuf to surfacesVictor Kareh1-8/+16
This improves support for HiDPI by loading properly scaled surfaces for applets.
2018-03-21Fix cpufreq applet spacing on HiDPI displaysVictor Kareh1-1/+3
2018-02-09avoid deprecated GtkStockPablo Barciela1-3/+3
2018-02-04require GTK+ 3.22 and GLib 2.50monsta2-14/+0
2018-01-09update copyright year to 2018monsta1-1/+1
2017-12-05WidthOfScreen and HeightOfScreen implementationPablo Barciela1-7/+3
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
2017-11-09Cpufreq: fix a build warninglukefromdc1-1/+1
2017-11-09Cpufreq: stop jumping numbers moving units labellukefromdc1-29/+38
*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
2017-10-05update copyright year in other appletsmonsta1-1/+1
2017-09-22cpufreq: fix calculating max width of frequency/unit/percent labelsmonsta1-23/+22
fixes https://github.com/mate-desktop/mate-applets/issues/268
2017-09-19cpufreq: refresh applet size on style change (e.g. font size)monsta1-0/+16
2017-09-05cpufreq: fix random invisibility of the appletmonsta1-2/+2
2017-08-09avoid deprecated gdk_screen_get_width/heightZenWalker1-3/+8
2017-08-05cpufreq: don't use deprecated gtk_show_uriraveit652-6/+16