Age | Commit message (Collapse) | Author | Files | Lines |
|
This reverts commit 38e00280e9d17282717595a05411736a308804c0.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cppcheck --enable=all . 2> err.txt
grep variableScope err.txt
|
|
|
|
No real leak here except of the unnecessary gtk_css_provider_new() call,
refactored for readability and to conform to the code style.
|
|
|
|
|
|
|
|
|
|
Do not set an extra a11y name and description on an internal child of the
panel, because its toplevel has most of it already through setting the GTK
window title. Instead, explicitly set the a11y name and description on the
toplevel directly, possibly overriding GTK's value implicitly set via
gtk_window_set_title(), but which would be the same anyway.
This prevents e.g. a screen reader vocalizing the panel name twice when
entering it, once for the toplevel and once for the internal child.
This also avoids announcing the panel again when moving from one of the hide
buttons to one of the applets or launcher.
|
|
|
|
fixes https://github.com/mate-desktop/mate-panel/issues/745
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- unref objects in toplevel's dispose function instead of finalize
- disconnect from toplevel's GSettings objects before deleting them
|
|
|
|
Fixes cppcheck warnings:
[mate-panel/panel-toplevel.c:2315]: (style) Clarify calculation precedence for '&' and '?'.
[mate-panel/panel-toplevel.c:4687]: (style) Clarify calculation precedence for '&' and '?'.
[mate-panel/panel-toplevel.c:5036]: (style) Clarify calculation precedence for '&' and '?'.
|
|
|
|
of 4 ints
|
|
Origin commit :
https://github.com/GNOME/gnome-panel/commit/19129513e9dbfef9a985e0666d98d60a9e7b2779#diff-97cdffd8b53134e4fdfdd45b4a862042R2144
|
|
origin commit:
https://gitlab.gnome.org/GNOME/gnome-panel/commit/6015418
|
|
Thanks to Juha Leppänen, Kuopio, Finland
for simplifing the code
|
|
panel_toplevel_queue_auto_hide()"
This reverts commit 0d29acf6a70090ee771de2793b1af8e1388a430f.
Which causes a regression.
Fixes https://github.com/mate-desktop/mate-panel/issues/773
|
|
fix #733
|
|
in HiDPI
|
|
*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
|
|
|
|
*Fix scaling of panel widgets, buttons, and the menu bar
*Draw grab handles at the ends of the panel
*Fix size of _almost_ all included applets
*Fix panel snapping coordinates
*Down-scale monitor coordinates to support multi-monitors
Author: Victor Kareh <[email protected]>
Date: Wed Dec 20 14:03:18 2017 -0500
|
|
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
|
|
panel_toplevel_queue_auto_hide()
|
|
change larger
|
|
found by cppcheck
|