summaryrefslogtreecommitdiff
path: root/mate-panel/drawer.c
AgeCommit message (Collapse)AuthorFilesLines
2022-06-01Add "center-stick" capability applets on the panelThe Squash1-2/+2
Conventionally, the applets on a MATE Panel are positioned relative to the left edge of the panel (if the panel is horizontal) or the top edge (if the panel is vertical). There has also been some (buggy) support for positioning of applets relative to the right (or bottom) edge of the panel, so that applets on the right side of the panel will stay on the right side even if the user changes screen resolutions or if the panel changes size for some other reason. However, many users want to also place applets at or near the center of their panel(s). There is no such conventional support for positioning applets relative to the center of the panel, so users have positioned applets near the center of the panel -- but the position recorded is relative to the left side of the panel. As such, the applets will almost certainly shift over to the left or right slightly if the panel is ever resized, and the user will have to reposition all those centered applets yet again. This is especially frustrating if the user switches monitors on a regular basis! This patch radically revamps the MATE Panel's positioning framework, and deprecates the original "right-stick" feature. To replace the right-stick feature, this patch instead associates an "edge relativity" setting with each and every panel applet: An applet can be relative to the start (left/ top), end (right/bottom), or center of the panel. This setting can be changed using DConf/GSettings, using a custom panel layout file, or even by simply dragging the applet to the appropriate place on the panel. (Conventionally, applets are not even right-stuck automatically even when the user drags the applet over to the far right of the panel!) As a bonus, when the user drags an applet across the center of the panel, the applet will temporarily "stick" to the very center of the panel, to allow the user to very precisely align any applet they wish.
2021-12-19Use dashes instead of underscores in signal namesrbuj1-8/+8
2021-12-11Use a blank line at mostrbuj1-5/+0
2021-06-22update copyright to 2021raveit651-0/+1
2020-09-07Remove variableScope warnings reported by cppcheckrbuj1-6/+2
cppcheck --enable=all . 2> err.txt grep variableScope err.txt
2020-07-05Avoid using single-line cpp commentsrbuj1-1/+1
2019-03-10Remove unneeded X11 includesWilliam Wold1-1/+0
2018-05-30Support new mate-menus apiyetist1-4/+7
2018-02-15Drawer cleanup and fix arrow behaviorinfo-cppsp1-533/+534
*Drawer coding style cleanup *Drawer code organized *Rearranged and labeled code *Drawer fix arrows *Fixed hide code for drawer in toplevel. *fix #528 *fix #704
2018-01-25avoid deprecated GtkStockPablo Barciela1-3/+3
2015-12-21drawer: don't try to set NULL tooltipmonsta1-6/+4
2015-12-21drawer: some fixesmonsta1-32/+21
2015-07-14Drop gdkkeysyms-compat usage in Gtk+3infirit1-13/+10
The new GDK_KEY_ keys are also in Gtk+2.
2014-02-21memory leaksDenis Gorodnichev1-3/+7
g_settings_get_string returns newly-allocated string
2013-10-26mate-panel: Add GTK3 supportStefano Karapetsas1-0/+4
2012-10-11migrate mate-panel to gsettingsStefano Karapetsas1-122/+72
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+806