summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-applet.c
AgeCommit message (Collapse)AuthorFilesLines
2023-07-17Allow building all applets in or out of processlukefromdc1-5/+9
*Use --enable-in-process selector for in-process builds *Accessx-status: mark as incompatable with wayland *Accessx-status: Fix in-process runtime warning *Stickynote, Geyes: style fixes
2023-07-17cpufreq: port to in-process for wayland compatablitylukefromdc1-3/+1
2021-11-21Use a blank line at mostrbuj1-1/+0
2021-10-26Mate Cpufreq applet: enable standard keyboard navigationValentin Villenave1-1/+1
Key press events weren’t passed to GTK normally, which prevented from opening the contextual menu without the mouse.
2021-01-28Remove unnecessary casts on g_signal_connect callsrbuj1-11/+11
2021-01-16Update copyright to 2021rbuj1-1/+1
2021-01-07Don't leave any round bracket at line endrbuj1-2/+3
2020-12-06remove dead function mate_panel_applet_set_background_widgetmbkma1-1/+0
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-styleraveit651-603/+613
- tab to spaces - use 4 spaces at the beginning of a line
2020-07-30cpufreq: Load menu and ui file from resourcesrbuj1-5/+3
2020-04-25Remove unused-function warningsrbuj1-19/+1
2020-04-16Remove unused-variable warningsrbuj1-1/+0
2020-01-10Update copyright to 2020raveit651-1/+1
2019-12-04avoid redundant redeclarationsPablo Barciela1-3/+0
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-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.50monsta1-7/+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_uriraveit651-3/+10
2017-01-14CpuFreq: fix warning from GTK_ORIENTABLElukefromdc1-3/+1
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.
2016-11-22move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-103/+1
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.
2016-11-22fix some indent and a couple of typosmonsta1-1/+1
2016-07-31cpufreq: use GtkAbout and update copyrightraveit651-3/+6
2016-03-30GTK 3.20 cpufreq: fix themes clipping units labellukefromdc1-6/+1
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.
2016-03-07cpufreq GTK3: hardcode fewer labelslukefromdc1-22/+17
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.
2015-10-16GTK3 cpufreq:fix bottom panel render & 0px labelslukefromdc1-2/+20
fix bottom panel rendering of popup menu in gtk3 builds, fix zero-width frequency/percentage labels in gtk3 builds.
2015-10-16GTK3 cpufreq: support custom panel themeslukefromdc1-1/+14
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.
2015-10-15GTK cpufreq: fix label position on horizontal panelsraveit651-0/+18
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.
2014-11-26GDK_KEY_* is also in Gtk+2infirit1-9/+6
2014-11-26Gtk3: Silence GtkVbox and GtkHbox deprecation warningsinfirit1-1/+6
2014-06-02Replace GtkObject with GObject also for gtk2infirit1-20/+0