summaryrefslogtreecommitdiff
path: root/mate-panel/launcher.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-04Revert "Add "center-stick" capability applets on the panel"raveit651-1/+2
This reverts commit 38e00280e9d17282717595a05411736a308804c0.
2022-06-01Add "center-stick" capability applets on the panelThe Squash1-2/+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-12-20Remove unnecessary cast in g_signal_connect* callrbuj1-4/+6
2021-12-19Use dashes instead of underscores in signal namesrbuj1-8/+8
2021-12-16Use g_clear_pointer() and g_clear_object()rbuj1-8/+4
2021-12-11Use a blank line at mostrbuj1-3/+0
2021-07-15Add the function of monitor panel launcher fileszhuyaliang1-0/+41
2021-06-22update copyright to 2021raveit651-0/+1
2020-09-07Remove variableScope warnings reported by cppcheckrbuj1-18/+8
cppcheck --enable=all . 2> err.txt grep variableScope err.txt
2020-08-05launcher: Fix memory leaksColomban Wendling1-11/+15
2020-08-05launcher: Fix memory leakrbuj1-4/+2
2020-07-29launcher: Fix leaking stringsTomas Bzatek1-0/+2
2020-07-05Avoid using single-line cpp commentsrbuj1-1/+1
2019-07-05Remove trailing whitespacesLaurent Napias1-5/+5
2019-06-21Rename panel-multiscreen files panel-multimonitorWilliam Wold1-1/+0
2019-03-10Wayland support for launcher.cWilliam Wold1-2/+10
2019-03-10Remove unneeded X11 includesWilliam Wold1-1/+0
2018-05-12Convert launcher icons to cairo surfacesVictor Kareh1-15/+19
This improves support for HiDPI by loading properly scaled surfaces for launcher and drawer icons. It also Fixes the Show Desktop wncklet to show a surface icon. Other wncklets have their icons determined by libwnck, so they remain as pixbufs. Fixes mate-desktop/mate-desktop#314
2018-01-31require GTK+ 3.22 and GLib 2.50monsta1-4/+0
2017-09-29make file/folder launchers work againmonsta1-81/+125
fixes https://github.com/mate-desktop/mate-panel/issues/590 reverts a part of 7ee450758e4f2bee13aa8ff967a5795a6dcdc91f
2017-05-18localized application's name and descriptionDenis Gorodnichev1-6/+4
g_desktop_app_info_get_string return unlocalized strings. g_app_info_get_name and g_app_info_get_description to get localized application's name and comment(description)
2017-03-20setup custom iconDenis Gorodnichev1-0/+2
restore ability to configure launcher's custom icon which degradated after switching on g_app_info_get_icon also update launcher state after saving launcher's properties.
2017-01-13support desktop actionsDenis Gorodnichev1-130/+170
2014-11-23don't leak memoryMonsta1-1/+1
2014-01-26Fix typoStefano Karapetsas1-2/+2
2012-10-11migrate mate-panel to gsettingsStefano Karapetsas1-34/+25
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+1114