summaryrefslogtreecommitdiff
path: root/mate-panel/panel-profile.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-04Revert "Add "center-stick" capability applets on the panel"raveit651-55/+20
This reverts commit 38e00280e9d17282717595a05411736a308804c0.
2024-02-04Revert "Reduce scope of variables"raveit651-1/+3
This reverts commit 96c7ebc6dc9e8b8327db04a9570054ee78743353.
2024-02-04Revert "Avoid a redundant NULL check"raveit651-5/+4
This reverts commit 17b87e321bfca409c31ce4b4e0e3326eeef92b88.
2023-11-21Avoid a redundant NULL checkColomban Wendling1-4/+5
It's probably not necessary to perform the NULL check at all as the only code paths that could make `list` NULL are already pretty dramatically broken, but as we have a NULL check move everything relevant inside it.
2023-11-21Reduce scope of variablesColomban Wendling1-3/+1
Mostly found by cppcheck.
2023-05-17tell dconf-edit about relocatable schemas (#1355)Denis Gorodnichev1-0/+47
* tell dconf-edit about relocatable schemas * self fix for incorrect and duplicated records remove duplicated schemas for currect path remove incorrect schemas for current path * remove clock applet hack * expose mate_panel_applet_settings_new to introspection add "transfer full" annotation to make this method available throught introspection
2022-06-01Add "center-stick" capability applets on the panelThe Squash1-20/+55
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-16Use g_clear_pointer() and g_clear_object()rbuj1-6/+3
2021-06-22update copyright to 2021raveit651-0/+1
2020-12-05Fix solid color controls after disabling compositorrbuj1-5/+4
2020-12-04Drop panel_profile_set_background_gdk_rgba() and getter (duplicates of ↵William Wold1-17/+3
panel_profile_set_background_color ())
2020-12-04Remove get_background_color() (duplicate of ↵William Wold1-17/+1
panel_profile_get_background_gdk_rgba())
2020-08-04Fix creating several launchers at onceColomban Wendling1-0/+5
When creating a new launcher, we try and find an available object ID by browsing the existing ones. This however fails to take into account objects that were created but that didn't make it to the backend yet, leading to likely re-using the same ID when creating several objects roughly at the same time. This happens e.g. when dropping several URIs together.
2020-07-29panel-profile: Fix leaking list elementsTomas Bzatek1-2/+2
2020-07-23panel-profile: Fix leaking list elementsTomas Bzatek1-2/+2
The mate_gsettings_strv_to_gslist() call will dup all the strings and removing duplicates should free them.
2020-07-05Avoid using single-line cpp commentsrbuj1-1/+1
2019-06-23Wayland support for panel-profile.cWilliam Wold1-2/+17
2019-06-21Update to the new panel_multimonitor functionsWilliam Wold1-2/+2
2019-06-21Rename panel-multiscreen files panel-multimonitorWilliam Wold1-1/+1
2019-05-20fix reloading the default layout after panel resetmonsta1-1/+13
- do it in the idle handler - wait until all toplevels are destroyed before reloading the layout
2019-05-20fix random crashes on panel resetmonsta1-10/+0
- unref objects in toplevel's dispose function instead of finalize - disconnect from toplevel's GSettings objects before deleting them
2018-01-31require GTK+ 3.22 and GLib 2.50monsta1-8/+1
2017-07-31avoid deprecated gdk_display_get_screenZenWalker1-3/+2
2017-07-16avoid deprecated gdk_screen_get_numberZenWalker1-8/+9
2016-11-21move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-148/+0
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-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-2/+9
panel-profile.c
2016-02-21fix some warningsSorokin Alexei1-2/+2
2016-02-15panel-profile: less #if's againmonsta1-42/+34
2016-02-15panel-profile: less #if'smonsta1-24/+39
2016-02-15panel-profile: remove leftover that makes no sensemonsta1-4/+0
must be some issue during the last merge
2016-02-12[GTK+3] fix one more use of deprecated gdk_display_get_n_screensmonsta1-2/+9
2016-02-12[GTK+3] fix one more use of deprecated gdk_display_get_n_screensmonsta1-2/+18
2016-01-05profile: simplify a couple of functionsmonsta1-6/+2
2016-01-05profile: fix indent & spacing a bitmonsta1-20/+22
2016-01-05profile: rename get/set rgba functions for consistencymonsta1-4/+4
2015-12-21panel-profile: simplify some codemonsta1-51/+30
2015-12-18panel-profile: fix indent a bitmonsta1-9/+12
2014-10-16Fix memory leakDenis Gorodnichev1-0/+1
Closes https://github.com/mate-desktop/mate-panel/pull/244
2014-06-20Replace opacity key to alpha value in color key.Konstantin Pugin1-6/+19
2014-05-12Use better dconf path for added appletsStefano Karapetsas1-1/+1
2014-04-23Use common GSettings function from libmate-desktopStefano Karapetsas1-5/+5
2014-04-21Use dconf functions from libmate-desktopStefano Karapetsas1-5/+5
2014-02-21memory leaksDenis Gorodnichev1-4/+6
g_settings_get_string returns newly-allocated string
2014-02-17Fix mate-panel --resetStefano Karapetsas1-0/+9
2013-11-29Panel background improvements for GTK3Stefano Karapetsas1-2/+52
2013-10-26mate-panel: Add GTK3 supportStefano Karapetsas1-2/+30
2013-05-31Another fix for #111Scott Balneaves1-0/+2
2013-05-03Save panel coordinates also if panel is expandedStefano Karapetsas1-31/+29
This will save panel position if the user disable expand Closes #32 (https://github.com/mate-desktop/mate-panel/issues/32)
2012-12-18Fix crash on deleting panelsStefano Karapetsas1-0/+10
https://github.com/mate-desktop/mate-panel/issues/65
2012-11-18fixed incorrect fsf addresses.Steve Zesch1-2/+2