summaryrefslogtreecommitdiff
path: root/mate-panel/panel-separator.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-04Revert "Add "center-stick" capability applets on the panel"raveit651-1/+1
This reverts commit 38e00280e9d17282717595a05411736a308804c0.
2022-06-01Add "center-stick" capability applets on the panelThe Squash1-1/+1
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-06-22update copyright to 2021raveit651-0/+1
2019-05-16[mate-panel] Avoid deprecated g_type_class_add_privateWu Xiaotian1-6/+2
2018-01-31require GTK+ 3.22 and GLib 2.50monsta1-10/+1
2016-11-21move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-74/+1
and require libmate-desktop >= 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-21check for stable release of GTK+3, not for development onemonsta1-1/+1
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-3/+7
panel-separator.c
2016-02-19GTK+-3.20: add more css namesWolfgang Ulbrich1-1/+5
- MatePanelAppletFrameDBus - PanelSeparator - PanelToplevel
2016-01-04separator: less #if'smonsta1-34/+29
2016-01-04background: all functions should have PanelBackground as 1st argumentmonsta1-1/+1
2015-11-20Don't set the panel transparent by defaultBalló György1-1/+1
This fixes the background for GTK+ 3 themes which don't support mate-panel explicitly. Themes could still overwrite the background if they want in the usual way.
2014-11-23Gtk3: panel: Draw the separator line where it shouldinfirit1-4/+14
The calculation wasn't done right. At least, I think so :-) Also cleanup a bit some code in the file. Based on gnome-panel commit: be822666a99680e5cd34c02ad2e35bea81f4a7d8 From: Vincent Untz <[email protected]>
2014-11-23Gtk3: panel-separator: Port to GtkStyleContextinfirit1-34/+36
Based on gnome-panel commit: f2ff0440223641d7495560ef2bf99b2b61895cac From: Carlos Garcia Campos <[email protected]>
2014-11-22Gtk3: Sync get_preferred_width/height() usage with gnome-panelinfirit1-21/+37
Even tough it works it makes taking code (eg StyleContext) from gnome-panel much easier. Also fixes a bug where applets are not drawn when moved/added.
2014-06-20Fix RGBA issues for GTK3Konstantin Pugin1-4/+7
2013-10-26mate-panel: Add GTK3 supportStefano Karapetsas1-5/+81
2012-11-18fixed incorrect fsf addresses.Steve Zesch1-2/+2
2012-10-11migrate mate-panel to gsettingsStefano Karapetsas1-2/+2
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+250