Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
|
|
fixes https://github.com/mate-desktop/mate-applets/issues/268
|
|
|
|
|
|
|
|
|
|
|
|
Still can be set to monitor any given core's speed but sets governor or userspace speed on all cores together
|
|
gtk_orientable_get_orientation now throws warnings so remove it. It does not appear to work anyway. Applet tested in a vertical (left side) panel as well as a horizontal one, as long as the vertical panel is wide enough to accept the applet it works and puts the frequency and units on two levels. Puts them on one level in a horizontal panel.
|
|
and require mate-panel >= 1.17
WARNING: use GTK+3 build of libmateweather for this build.
that lib is not migrated to GTK+3 only as we will possibly
use libgweather instead of it.
|
|
|
|
And bump polkit requirement.
polkit_authority_get is deprecated since polkit-0.97 from 2010.
So the requirement bump should be save for all distros.
|
|
there's implicit declaration warning with or without it,
see https://bugzilla.kernel.org/show_bug.cgi?id=153161
|
|
|
|
|
|
|
|
Stop BlackMATE, possibly other themes from cutting off the end of the units label and get rid of an #1f block for GTK 3.19 at the same time. GTK 3.19 seemed to pad the end of this label a bit, not so with released GTK 3.20.
|
|
In gtk3, replacing "label" with "applet->label" makes the gtk_widget_get_preferred_width functions work for the frequency and unit labels without issue. Trim them a bit in gtk3.19 builds as they render 2px wider there for some reason. The exception is the percentage label. That one apparently always starts with "0%" entered-and it does NOT update it's width when larger character strings come up. Thus, a fixed figure of 20px still has to be added to that one. On the other hand, that will ensure the applet never jumps from percentage changes. Height of the whole applet is still limited somewhere to 24 px, still looking for that issue as it hurts the match to taller panels.
|
|
remove unused argument "parent" in cpufreq_selector_set_xxx_async functions
|
|
gtk3: stop cpufreq-applet turning transparent -prevent the cpufreq applet and panel area beneath from becoming transparent to the desktop when a menu item in the popup menu is clicked. Veriied to work on gtk3.19.5
|
|
fix bottom panel rendering of popup menu in gtk3 builds,
fix zero-width frequency/percentage labels in gtk3 builds.
|
|
support custom panel themes in gtk3 builds. Include robust support
for transparent themes in cases where gtk3 has issues
properly detecting a compositing window manager, e.g compiz.
|
|
The issue was caused by using deprecated widgets and defines
for orientation with GTK3.
#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
Deprecated gtk_[h/v]box_new don't use them.
|
|
|
|
Taken from 6d61304f8ee62eb2776725b8424140a332f651cf
|
|
|
|
|
|
|
|
Closes https://github.com/mate-desktop/mate-applets/pull/114
|