summaryrefslogtreecommitdiff
path: root/mate-volume-control/gvc-level-bar.c
AgeCommit message (Collapse)AuthorFilesLines
2023-12-25Fix various instance checksColomban Wendling1-2/+2
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()
2021-11-10Accessibility improvementsvvillenave1-0/+14
- Make the speaker test dialog accessible - Add an accessible object for the Input level custom widget Co-authored-by: Valentin Villenave <[email protected]>
2021-06-21update copyright to 2021raveit651-0/+1
2019-10-29gvc-level-bar: avoid 'g_type_class_add_private'Pablo Barciela1-8/+2
2019-04-20mate-volume-control: reduce the scope of some variablesPablo Barciela1-2/+4
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.
2018-01-28require GTK+ 3.22 and GLib 2.50monsta1-2/+1
2016-11-21move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-109/+1
and require libmate-desktop >= 1.17
2016-08-12GTK+-3.20 levelbar: set css name gvc-level-barraveit651-0/+3
2016-02-26GTK+3: Get values from GtkStyleContext states properlyraveit651-6/+10
2014-11-10Add forgotten GTK+ version check to GvcLevelBarMichal Ratajsky1-0/+2
2014-11-10Fix look of the peak meter on GTK3 and use a support function from ↵Michal Ratajsky1-8/+10
libmate-desktop instead of custom copy&paste
2014-11-08Move some files and directories to better locationsMichal Ratajsky1-0/+876
- mate-volume-control/data changed to /data - mate-volume-control/src/* moved to mate-volume-control - sound-theme/sounds changed to /data/sounds - sound-theme/*.{c,h} moved to mate-volume-control - Removed AUTHORS and ChangeLog.pre-2-26 from mate-volume-control