summaryrefslogtreecommitdiff
path: root/mate-volume-control
AgeCommit message (Collapse)AuthorFilesLines
2024-01-08meson: fix building wayland supportlukefromdc1-2/+2
*Checking for GDK_WINDOWING_WAYLAND breaks the wayland support when built with meson as it is not detected
2023-11-30add meson build supportzhuyaliang1-0/+154
2023-11-25fix building with libxml 2.12.0raveit651-0/+1
2023-11-08Fix various instance checksColomban Wendling4-7/+7
The g_return*_if_fail() calls should use PREFIX_IS_TYPE_NAME [1], which returns whether the given instance is of the right type, not PREFIX_TYPE_NAME [2], which checks whether the given instance if of the right type, warns if not, and returns the passed-in instance unchanged. Using the wrong one means the returned value is the passed-in pointer, and thus passes the g_return*_if_fail() whenever the pointer is non-NULL, no matter whether it's of the right type or not. A warning would still be emitted by g_type_check_instance_cast(), but the execution wouldn't get short-circuited. [1] calls g_type_check_instance_is_a() [2] calls g_type_check_instance_cast()
2023-10-05applet: Do not override the process' text domainColomban Wendling4-8/+4
When loaded as in-process applet, we must not call `textdomain()` or we will override mate-panel's text domain. Instead, properly use gi18n-lib.h header that provides the same API but uses the compile-time `GETTEXT_PACKAGE` value for each call. Actually drop the whole i18n setup logic that is provided already by mate-panel's factory macros. Fixes #203.
2023-10-04replace deprecated gtk_image_menu_itemraveit651-4/+5
2023-07-10in-process: enable scrolling on icon as in out of process buildsLuke from DC1-13/+4
* in-process: enable scrolling on icon as in out of process builds - Use same code to catch scroll events in-process and out
2023-07-08Wayland: fix slider rendering underneath fullscreen windowslukefromdc1-1/+1
2023-07-05position popup slider properly in wayland and make wayland optional (#196)Luke from DC6-16/+169
* Wayland: fix position of volume slider using GtkLayerShell edge and margin settings *Unused edge anchors and margins set to zero to avoid glitches when orientation changes * Build options: *(default) out of process, no wayland support as wayland support is experimental *in-process, no wayland support (--enable-in-process --disable-wayland) * wayland dependencies not checked for or used *in-process with wayland support (--enable-wayland also calls --in-process) * wayland dependencies checked for and required
2023-06-18build: fix typo from last commitlukefromdc1-1/+1
D_LDFLAGS->libmate_volume_control_applet_la_LDFLAGS
2023-06-14Applet: port to in-process for wayland supportlukefromdc5-45/+23
*Wayland cannot use xembed/GtkPlug/GtkSocket so port to in-process. *The applet then works on wayland. *Two out of process-only code blocks requiring separate windows removed
2022-08-14gvc-stream-status-icon: fix a volume rounding error (101% -> 100%)rbuj2-10/+6
2022-08-14Add setting for adjustment of audio volume above 100 per cent: Part 2Gordon Norman Squash5-7/+169
There is often a need for the user to increase the audio playback volume above the volume level known as "100% volume". While increasing the audio volume above 100% can result in degraded audio quality, sometimes the audio was, for example, originally recorded at an extremely low volume, and the user has no other option to clearly hear the audio. Unfortunately, most MATE applications with volume controls do not allow the user to set the volume level above 100%. For example, the main MATE Sound Preferences dialog lets you set the audio volume beyond 100% (when possible), whereas the Volume Control Applet, Volume Control status icon, and special "multimedia" volume control keys do not. In fact, if the user even tries to change the volume using any of the latter methods, and the current volume level is above 100%, these latter methods will all reduce the volume to 100%, even if the user tried to increase the volume! This is part 2 of a patch to change this situation. This patch adds this capability to the MATE Volume Control Applet and the MATE Volume Control status icon. It also adds a check box to the MATE Volume Control Preferences dialog to enable or disable this capability, and for consistency, the main volume control at the top of that dialog also obeys the current setting of that check box. This commit is by far the largest one, and is the main part of the patch.
2022-03-27Fix build warnings about missing field initializerrbuj2-2/+2
2022-03-27gvc-balance-bar: fix build warning -Wunused-macrosrbuj1-6/+0
2022-03-27gvc-stream-applet-icon: fix memory leakrbuj1-0/+1
2022-03-23sound-theme-file-utils: fix build warning -Wformat-nonliteralrbuj1-4/+4
2022-03-18Fix warnings -Wfloat-conversion, -Wimplicit-float-conversionrbuj2-13/+15
2022-03-18gvc-mixer-dialog: fix build warning -Wsign-comparerbuj1-4/+4
2021-11-20Use a blank line at mostrbuj2-2/+0
2021-11-10Accessibility improvementsvvillenave3-0/+18
- Make the speaker test dialog accessible - Add an accessible object for the Input level custom widget Co-authored-by: Valentin Villenave <[email protected]>
2021-08-04replace mute/unmute checkmenuitem with imagemenuitemKonstantin Unruh1-10/+18
2021-06-21update copyright to 2021raveit6529-0/+29
2020-12-06remove dead function mate_panel_applet_set_background_widgetmbkma1-1/+0
2020-07-08gvc-mixer-dialogi: Refactor on_notebook_scroll_eventrbuj1-70/+60
2020-04-25gvc-stream-applet-icon: Remove enum-conversion warningrbuj1-1/+10
2020-03-03panel-applet: ensure speaker can be shown alongside or above miclukefromdc1-1/+15
Initialize the applet GktBox in the appropriate direction.
2019-12-02Show application icons whenever possibleWu Xiaotian1-6/+34
Even if some application icons do not exist in the current theme, try looking for them in the fallback themes.
2019-11-17fix volume-panel-applet can not find mo fileraveit651-1/+1
2019-11-09migrate from intltools to gettextWu Xiaotian3-14/+17
2019-10-29gvc-channel-bar: remove unused struct memberPablo Barciela1-1/+0
2019-10-29gvc-channel-bar: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-mixer-dialog: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-applet: avoid 'g_type_class_add_private'Pablo Barciela1-9/+2
2019-10-29gvc-level-bar: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-speaker-test: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-combo-box: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-balance-bar: avoid 'g_type_class_add_private'Pablo Barciela1-7/+2
2019-10-29gvc-sound-theme-chooser: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-stream-status-icon: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-10-29gvc-status-icon: avoid 'g_type_class_add_private'Pablo Barciela1-9/+2
2019-10-29gvc-stream-applet-icon: avoid 'g_type_class_add_private'Pablo Barciela1-9/+3
2019-08-20applet: Update default outputVictor Kareh1-0/+72
When a new output device is connected and configured as the default, the mate-volume-control applet (and the status icon) should update the attached control stream. This allows hot-keys and mouse-scroll events to affect the new output device.
2019-07-28gvc applet: add missing translations (i18n)rbuj1-2/+2
2019-07-27Scroll volume in configurable steps same as media-keysgm101-9/+17
and don't hardcode default value
2019-06-21Add scroll interface tabs with mouse wheelLaurent Napias1-0/+75
2019-04-22gvc-mixer-dialog: avoid declaration of same variable in different scopePablo Barciela1-3/+1
Fixes cppcheck warnings: [mate-volume-control/gvc-mixer-dialog.c:379] -> [mate-volume-control/gvc-mixer-dialog.c:405]: (style) Local variable control shadows outer variable [mate-volume-control/gvc-mixer-dialog.c:535] -> [mate-volume-control/gvc-mixer-dialog.c:586]: (style) Local variable control shadows outer variable
2019-04-20mate-volume-control: reduce the scope of some variablesPablo Barciela3-6/+11
Fixes 'cppcheck' warnings: [mate-volume-control/gvc-level-bar.c:572]: (style) The scope of the variable 'by' can be reduced. [mate-volume-control/gvc-level-bar.c:611]: (style) The scope of the variable 'bx' can be reduced. [mate-volume-control/gvc-mixer-dialog.c:379]: (style) The scope of the variable 'swtch' can be reduced. [mate-volume-control/gvc-mixer-dialog.c:534]: (style) The scope of the variable 'swtch' can be reduced. [mate-volume-control/gvc-mixer-dialog.c:1891]: (style) The scope of the variable 'closure' can be reduced. [mate-volume-control/sound-theme-file-utils.c:47]: (style) The scope of the variable 'data_dir' can be reduced.
2019-04-18mate-volume-control: Fix 'syntax error' detected with 'cppcheck'Pablo Barciela4-15/+15
Fixes cppcheck warnings: [mate-volume-control/gvc-applet.c:118]: (error) syntax error [mate-volume-control/gvc-applet.c:133]: (error) syntax error [mate-volume-control/gvc-applet.c:184]: (error) syntax error [mate-volume-control/gvc-applet.c:287]: (error) syntax error [mate-volume-control/gvc-applet.c:290]: (error) syntax error [mate-volume-control/gvc-combo-box.c:111]: (error) syntax error [mate-volume-control/gvc-combo-box.c:309]: (error) syntax error [mate-volume-control/gvc-combo-box.c:317]: (error) syntax error [mate-volume-control/gvc-combo-box.c:428]: (error) syntax error [mate-volume-control/gvc-mixer-dialog.c:793]: (error) syntax error [mate-volume-control/gvc-status-icon.c:107]: (error) syntax error [mate-volume-control/gvc-status-icon.c:122]: (error) syntax error [mate-volume-control/gvc-status-icon.c:175]: (error) syntax error [mate-volume-control/gvc-status-icon.c:280]: (error) syntax error [mate-volume-control/gvc-status-icon.c:283]: (error) syntax error
2019-03-21add widget name volume-applet to panel-appletraveit651-0/+3