summaryrefslogtreecommitdiff
path: root/mate-panel/applet.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-04Revert "Add "center-stick" capability applets on the panel"raveit651-56/+37
This reverts commit 38e00280e9d17282717595a05411736a308804c0.
2022-06-08applet: SMALL_ICON_SIZE macro is not used [-Wunused-macros]rbuj1-2/+0
2022-06-01Add "center-stick" capability applets on the panelThe Squash1-37/+56
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-10/+10
2021-12-19Use dashes instead of underscores in signal namesrbuj1-2/+2
2021-12-16Use g_clear_pointer() and g_clear_object()rbuj1-6/+0
2021-12-11Use a blank line at mostrbuj1-2/+0
2021-06-22update copyright to 2021raveit651-0/+1
2020-12-15applet: Avoid a NULL pointer dereferencerbuj1-5/+3
2020-12-11cppcheck warning: The if condition is the same as the previous onerbuj1-4/+3
2020-07-05Avoid using single-line cpp commentsrbuj1-3/+3
2019-07-05Remove trailing whitespacesLaurent Napias1-1/+1
2019-03-10Remove unneeded X11 includesWilliam Wold1-1/+0
2019-01-28applet.c: Remove unused mate_panel_applet_position_menu ()William Wold1-74/+0
2018-07-04applet-context-menu: replace deprecated gtk_menu_popuplukefromdc1-7/+1
2018-05-07applet.c: avoid deprecated GtkImageMenuItemPablo Barciela1-20/+31
avoid deprecated: gtk_image_menu_item_new_with_mnemonic gtk_image_menu_item_set_image
2018-01-31require GTK+ 3.22 and GLib 2.50monsta1-5/+2
2017-12-17WidthOfScreen and HeightOfScreen implementationPablo Barciela1-9/+4
This commit reverts: https://github.com/mate-desktop/mate-panel/commit/7b2bc7d9f98c6ba8c2c31bdf9605faadb42a7e0e And it applies an alternative to fix the deprecated functions: gdk_screen_get_width gdk_screen_get_height
2017-08-22Fix crashes on moving/removing applets with glib 2.53.4 or laterlukefromdc1-0/+2
*On destroying applet disconnect signals for functions that otherwise segfaults with glib 2.53.4 or later. *Fish: it's not always enough for a function to return immediately if applet destroyed anymore *panel-action-button: suppress a warning
2017-08-13avoid deprecated gdk_screen_get_width/heightZenWalker1-4/+9
2017-01-13support desktop actionsDenis Gorodnichev1-20/+30
2016-11-29Fix: the panel does not display the icon on the mouse with dndZenWalker1-0/+9
Fixes #457
2016-11-21move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-15/+2
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-06-29fix some warnings and deprecationsSorokin Alexei1-4/+7
2016-01-05rename mate-panel-*.{c|h} -> panel-*.{c|h} for consistencymonsta1-1/+1
(libmate-panel-applet files are left alone since there are public header files used by all panel applets)
2015-10-15Don't change position/right-stick of locked appletsClement Lefebvre1-4/+11
Until position calculations are refactored to fix the issue of the panel applets getting reordered on resolution changes don't save position/right-stick on locked applets.
2015-10-10Add custom menu theming support to applet.clukefromdc1-0/+13
Make applet menus follow the .mate-panel-menu-bar .menu selector in the gtk theme, and the menu window follow the .mate-panel-menu-bar selector. Use the former to set a custom menu theme, the latter to alter or remove shadows from applet menus
2015-08-29Removed obsolete compatibility codeGymnasiast1-4/+0
2015-08-06Gtk3: Set push_in to FALSEinfirit1-0/+4
We already do this for the same function in libmate-panel-applet. Thanks to luke on the forums. fixes #330
2014-11-23applet: Disconnect show and deactivate menu signals before destroying the ↵infirit1-1/+9
applet menu Fixes crash while removing the menu bar or a drawer. Based on gnome-panel commit: 8211f19c2c331b1502694a03e1b5abfdc793b56b From: Carlos Garcia Campos <[email protected]>
2014-06-20Fix expanded panels and size allocationKonstantin Pugin1-1/+8
2014-02-17Fix mate-panel --resetStefano Karapetsas1-1/+2
2014-01-23Use gtk_widget_get_preferred_size with GTK3Stefano Karapetsas1-0/+4
2013-12-22Update help uri to the correct locationinfirit1-1/+1
2012-12-13mate-panel: Add a missing g_freeStefano Karapetsas1-0/+1
2012-10-11migrate mate-panel to gsettingsStefano Karapetsas1-82/+43
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+1449