summaryrefslogtreecommitdiff
path: root/mate-panel
AgeCommit message (Collapse)AuthorFilesLines
2020-12-04Remove get_background_color() (duplicate of ↵William Wold1-17/+1
panel_profile_get_background_gdk_rgba())
2020-12-04Drop dead panel_background_set_opacity()William Wold2-22/+0
2020-12-04Drop background compositingWilliam Wold5-722/+6
2020-11-05Use g_task... replace obsolete function g_ simple....zhuyaliang1-126/+102
2020-10-21Link with libwaylandWilliam Wold1-3/+2
2020-09-27Use gdk_set_allowed_backends () instead of custom checkWilliam Wold1-13/+8
2020-09-07Remove variableScope warnings reported by cppcheckrbuj22-279/+207
cppcheck --enable=all . 2> err.txt grep variableScope err.txt
2020-08-08Handle locked down settings better when dropping an image URIColomban Wendling1-15/+52
Don't propose actions that will fail anyway, and create a launcher automatically if it's the only option. However, still ask for setting the background to still avoid unintentional changes.
2020-08-07panel-toplevel: Fix -Wenum-conversion warningrbuj1-1/+1
2020-08-05launcher: Fix memory leaksColomban Wendling1-11/+15
2020-08-05panel-action-button: using enum for accessing an array indexedrbuj1-52/+30
2020-08-05launcher: Fix memory leakrbuj1-4/+2
2020-08-04Ask the user what to do when receiving an image dropColomban Wendling1-2/+104
Instead of unconditionally setting the panel's background when an image file URI gets dropped on a panel, ask the user whether to create a launcher for that URI (like for non-image URIs) or to use the image as the panel's background. A number of users have seen their panel's background changed unexpectedly due to unwanted drop of an image file over the panel, sometimes seeing this as a panel's bug. Also, this behavior is inconsistent with dropping a URI pointing to any other type of file, where it would create a launcher for it. Consequently, and as setting the panel's background doesn't seem like a so common task it ought to be super fast, ask the user what to do when receiving an image URI drop.
2020-08-04Create launchers when dropping multiple image URIsColomban Wendling1-2/+4
It doesn't make any sense to set the panel's background several times if we get multiple image URIs dropped, so don't consider multi-URI drops as candidate for setting the background, and handle those like other non-image URIs.
2020-08-04panel-util: Fix memory leakrbuj1-0/+1
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-run-dialog: Fix leaking tree model stringsTomas Bzatek1-6/+18
The gtk_tree_model_get() duplicates memory or adds a reference and any data need to be freed explicitly.
2020-07-29panel-properties-dialog: Fix leaking stringTomas Bzatek1-0/+1
2020-07-29panel-profile: Fix leaking list elementsTomas Bzatek1-2/+2
2020-07-29panel-lockdown: Fix leaking string arrayTomas Bzatek1-0/+1
Overwriting an already allocated memory.
2020-07-29panel-menu-items: Fix leaking stringTomas Bzatek1-1/+3
The PANEL_GLIB_STR_EMPTY() macro returns TRUE even when the memory was allocated yet the string was empty, so do explicit free() here.
2020-07-29launcher: Fix leaking stringsTomas Bzatek1-0/+2
2020-07-24Clarify meaning of panel reset optionlukefromdc1-4/+4
Change "Reset Panel" to "Reset all Panels" in context menu and in reset confirmation dialog to make clear that ALL panels will be reset.
2020-07-23panel-toplevel: Refactor panel_toplevel_update_hide_buttons_size()Tomas Bzatek1-18/+11
No real leak here except of the unnecessary gtk_css_provider_new() call, refactored for readability and to conform to the code style.
2020-07-23panel-util: Fix leaking root GFileTomas Bzatek1-0/+1
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-23panel-frame: Fix leaking background-colorTomas Bzatek1-0/+2
2020-07-23panel-applet-frame: Fix leaking bg_patternTomas Bzatek1-19/+21
Also acquire it only when needed. This fixes a leak for me when switching workspaces back and forth.
2020-07-13panel-multimonitor: Do not require limits.h macrosrbuj1-2/+2
2020-07-07Using #include with system librariesrbuj5-6/+6
2020-07-05Avoid using single-line cpp commentsrbuj35-98/+107
2020-07-05Use '#include <config.h>' instead of '#include "config.h"'rbuj3-3/+3
2020-06-26panel-util: switch to generic header for --disable-x11Jan Beich1-1/+1
panel-util.c:31:10: fatal error: 'gdk/gdkx.h' file not found #include <gdk/gdkx.h> ^~~~~~~~~~~~
2020-06-20update submoduleraveit651-0/+0
2020-06-17update to use the latest submodule codeWu Xiaotian1-0/+0
2020-06-11libegg: use git submoduleWu Xiaotian9-3855/+3
2020-06-06panel-toplevel: Use monotonic time for measuring time intervalsrbuj1-41/+20
2020-06-06panel-toplevel: Use animation duration time instead of end timerbuj1-25/+13
2020-06-06panel-toplevel: Remove warning ‘GTimeVal’ is deprecatedrbuj1-49/+66
2020-05-25Fix some cast-function-type warnings introduced in GCC 8rbuj10-24/+23
2020-03-11button-widget: Fix memory leakrbuj1-0/+1
2020-03-02Do not collect the translation for Iconrbuj1-1/+1
2020-02-19Enable applications in addto menu (fixes 1055) (#1056)William Wold1-0/+2
2020-02-17Remove warnings: function declaration isn’t a prototyperbuj2-2/+2
2020-01-14Avoid double a11y description on panel toplevelsColomban Wendling1-2/+2
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.
2020-01-12Update copyright to 2020raveit651-1/+1
2019-11-15fix mate-panel can not find mo fileWu Xiaotian1-1/+1
2019-11-11migrate from intltool to gettextWu Xiaotian2-4/+6
2019-10-07Change the panel menu descriptions to better identify themMartin Wimpress1-4/+4
The "Main Menu" becomes "Compact Menu", since it is indeed the most compact menu available for MATE. The "Menu Bar" becomes "Classic Menu" since this is what most users identify as the classic menu used in GNOME2/MATE. The description more clearly articulates the menu features.
2019-10-02Load layouts from absolute pathsAnthony Perkins1-1/+6
If the layout name begins with a '/', load from that filename instead of from PANEL_LAYOUTS_DIR. This allows loading of layouts from home directories and other write-permitted locations.