summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
AgeCommit message (Collapse)AuthorFilesLines
2024-02-04Reduce scope of variablesColomban Wendling1-4/+4
Mostly found by cppcheck. origin commit was: https://github.com/mate-desktop/mate-panel/commit/96c7ebc
2024-02-04Revert "Reduce scope of variables"raveit651-4/+4
This reverts commit 96c7ebc6dc9e8b8327db04a9570054ee78743353.
2024-01-25wayland: keep window list menu off space not used for buttonslukefromdc1-1/+11
*Fix the window list menu replacing the panel context menu between the end of the window list and the next applet
2023-11-21Remove unused-but-set variableColomban Wendling1-2/+0
2023-11-21Reduce scope of variablesColomban Wendling1-4/+4
Mostly found by cppcheck.
2023-11-21Optimize mate_panel_applet_settings_get_g*list()Colomban Wendling1-10/+10
- Build the list in reverse order, then reverse the result. This is useful because GS?List are list nodes, not containers of nodes, and thus don't contain a pointer to the list's end, meaning to append one has to walk the entire list to find the end each time. To avoid this we use the common idiom of prepending to the list (which is cheap, as it's adding a node before the given one), and then reversing the resulting list to get back the original order. - Avoid unnecessary memory copy by stealing the GStrv's members. We get the array as a copy, so we can simply steal the members and free the container array only, saving a copy for each member.
2023-08-12libmate-panel-applet: don't use panel plug to find the screenlukefromdc1-1/+1
* There is only one screen in GTK 3.22 or later * Finding the screen from that used by GtkPanelPlug is out of process only * Any in-process applet calling mate_panel_applet_request_focus needs this to avoid a segfault * One known user: dictionary applet
2023-06-29libmate-panel-applet/Makefile.am: Fix build with gettext 0.22Brahmajit Das1-1/+1
With gettext-0.22 we are getting build errors like: /usr/bin/msgfmt --desktop --keyword Name --keyword Description --template org.mate.panel.TestApplet.mate-panel-applet.desktop.in -d ../po -o org.mate.panel.TestApplet.mate-panel-applet /usr/bin/msgfmt: no input file should be given if --desktop and -d are specified Try '/usr/bin/msgfmt --help' for more information. make[3]: *** [Makefile:1035: org.mate.panel.TestApplet.mate-panel-applet] Error 1 make[3]: *** Waiting for unfinished jobs.... Bug: https://bugs.gentoo.org/908877 Signed-off-by: Brahmajit Das <[email protected]>
2023-05-17tell dconf-edit about relocatable schemas (#1355)Denis Gorodnichev2-0/+90
* 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-28panel-applet: Fix leak in no-background code pathColomban Wendling1-2/+3
2021-12-20Fix some -Wsign-compare warningsrbuj1-1/+1
2021-12-20Remove unnecessary cast in g_signal_connect* callrbuj2-7/+4
2021-12-19Use dashes instead of underscores in signal namesrbuj2-6/+6
2021-12-16Use g_clear_pointer() and g_clear_object()rbuj2-28/+10
2021-12-14Fix build warnings about missing field initializerrbuj2-3/+6
2021-12-11Use a blank line at mostrbuj4-6/+0
2021-10-19panel-applet-private: fix include guardrbuj1-1/+1
2021-06-22update copyright to 2021raveit659-0/+9
2020-12-11mate-panel-applet.h: tabs to spacesmbkma1-83/+111
2020-12-05mate-panel-applet-factory: format coderbuj1-77/+82
2020-12-05mate-panel-applet-factory: Boilerplaterbuj2-27/+14
2020-12-04mate-panel-applet: Boilerplaterbuj3-353/+450
2020-12-04Fix applet background for transparencyWilliam Wold1-0/+4
as proposed by @mbkma
2020-09-07Remove variableScope warnings reported by cppcheckrbuj1-20/+16
cppcheck --enable=all . 2> err.txt grep variableScope err.txt
2020-07-29mate-panel-applet: Fix leaking GVariantBuilderTomas Bzatek1-14/+18
And use stack-allocated GVariantBuilder for temporary storage.
2020-07-05Avoid using single-line cpp commentsrbuj5-18/+18
2019-11-15fix mate-panel can not find mo fileWu Xiaotian1-1/+1
2019-11-11migrate from intltool to gettextWu Xiaotian3-15/+16
2019-07-09Keep applet menus from covering up applets on WaylandWilliam Wold1-2/+18
2019-07-05Remove trailing whitespacesLaurent Napias2-5/+5
2019-06-23Fix out-of-process applets on X11 by fixing mate-panel-applet.cWilliam Wold1-2/+2
2019-06-23Wayland support for mate-panel-applet.cWilliam Wold1-19/+23
2019-06-23In mate-panel-applet-factory.c, only set screen when usedWilliam Wold1-6/+6
2019-06-21Fix Makefile.am to install in a given prefix pathJuan Picca1-2/+2
Currently installing mate-panel fails with the error /bin/mkdir -p '/usr/share/gir-1.0' /usr/bin/install -c -m 644 MatePanelApplet-4.0.gir '/usr/share/gir-1.0' /usr/bin/install: cannot create regular file '/usr/share/gir-1.0/MatePanelApplet-4.0.gir': Permission denied when configure is called with the --prefix option. This fix is the same used in: * caja (libcaja-extension/Makefile.am) * eom (src/Makefile.am) * libmatekbd (libmatekbd/Makefile.am) * mate-desktop (libmate-desktop/Makefile.am) * pluma (pluma/Makefile.am)
2019-05-16[libmate-panel-applet] Avoid deprecated g_type_class_add_privateWu Xiaotian1-7/+2
2019-05-09Fix panel applet keyboard focus traplukefromdc1-3/+9
Do not open the context menu on tab-or on anything but the menu key. Note that Return must be used by some applets (e.g. the clock) for something else
2019-03-10Error if compiling panel-plug-private.h without X11 supportWilliam Wold1-0/+6
2019-02-10mate-panel-applet.c: replace deprecated gtk_menu_popuplukefromdc1-92/+41
We need this for future porting of tray icons to standalone applets as replacements dfor gtk_menu_popup emit a "popped-up" signal when the menu is showing Based on gnome-panel commit github.com/GNOME/gnome-panel/commit/8e6e2847eca002499e862e9ae85bbc4c16b601fa
2019-01-25libmate-panel-applet: Add comments in headers to explain Wayland behaviorWilliam Wold3-0/+4
2019-01-25libmate-panel-applet: mate-panel-applet.c Wayland supportWilliam Wold1-29/+85
2019-01-25libmate-panel-applet: Applet factory Wayland supportWilliam Wold1-1/+18
2019-01-25libmate-panel-applet: Error if panel-plug is built without X11William Wold1-0/+6
2019-01-25libmate-panel-applet: Stop X11 specific files from building on WaylandWilliam Wold1-2/+6
2018-08-07Change GTK_CHECK_VERSION to match next gtk+ releaseraveit651-2/+2
2018-07-27applets: Guard against GTK scale-factor fixes on GtkSocketVictor Kareh1-4/+5
2018-07-23mate-panel-applet: setup_x_error_handler for in-process applets toolukefromdc1-4/+6
This is for the tray: GtkPlug/GtkSocket widgets are used to embed tray icons (GtkStatusIcons) in the tray even if the tray is in-process and does not use the plug/socket widgets to be itself embedded in the panel
2018-07-21GTK 3.23: fix applet size allocationlukefromdc1-9/+12
Limit workaround for GTK 3.22 double width/height allocation to GTK 3.22 builds only
2018-06-29libmate-panel-applet: replace deprecated gdk_error_trap functionsraveit651-10/+13
2018-05-09fix rendering and removal of in-process applets on unexpanded panellukefromdc1-12/+9
Fix https://github.com/mate-desktop/mate-panel/issues/797 and https://github.com/mate-desktop/mate-panel/issues/799
2018-04-26libpanel-applet: Add panel_applet_setup_menu_from_resource() APIVincent Untz2-0/+43
Add API to be able to use the new GResource framework. origin commit: https://git.gnome.org/browse/gnome-panel/commit/?id=182cefd