summaryrefslogtreecommitdiff
path: root/libmate-panel-applet
AgeCommit message (Collapse)AuthorFilesLines
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
2018-03-19Fix out-of-process applet sizes for HiDPIVictor Kareh1-10/+9
2018-02-06Added gir for mate_panel_applet_set_size_hints()info-cppsp1-0/+7
fix #727
2018-01-31require GTK+ 3.22 and GLib 2.50monsta3-138/+5
2018-01-31fix indent a bitmonsta1-11/+15
2018-01-26Down-scale out-of-process applets (#713)Victor Kareh1-28/+56
Out-of-process applets end up scaled up doubly. This divides the preferred width/height by the scale factor to ensure they are back at the correct preferred size.
2018-01-25avoid deprecated GtkStockPablo Barciela1-1/+1
2017-12-27Fix build warning: "GLIB_VERSION_MIN_REQUIRED" redefinedPablo Barciela1-1/+0
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-13libmate-panel-applet: fix typos in id->factory_id renamelukefromdc1-2/+2
2017-08-13libmate-panel-applet: Only declare _panel_applet_shlib_factory() when neededlukefromdc1-1/+1
Stops segfault on adding, removing, adding fish again when built in-process. Based on https://github.com/GNOME/gnome-panel/commit/66602bab12f55e09b2205b493c7e0e5e9c560911 "This function only makes sense when PANEL_APPLET_IN_PROCESS_FACTORY is used."
2017-08-13libmate-panel-applet: fix error in unregistering dbus objectlukefromdc1-1/+2
One portion of https://github.com/GNOME/gnome-panel/commit/0c3844c0e5f1bee5885d2c7aeaa49763e6708f6d got left out
2017-08-13libmate-panel-applet: fix build warninglukefromdc1-2/+1
This is a dummy variable used only to accomodate existing applets
2017-08-13libmate-panel-applet: fix introspectionlukefromdc1-2/+2
2017-08-13libmate-panel-applet: unown bus name and unregister dbus objectlukefromdc1-1/+15
Fix for crashes on removing applets similar to https://bugzilla.gnome.org/show_bug.cgi?id=692610
2017-08-13libmate-panel-applet GTK 3.14/3.16: fix custom bg w alphalukefromdc2-10/+14
Draw the background only on out of process applets. This prevents double-draw of bg w alpha value on in-process applets with GTK 3.14/3/16 Also Fix indent
2017-08-13libmate-panel-applet: include dummy variable in factory for certian appletslukefromdc2-5/+8
Otherwise, some applets such as disk mounter, hardware monitor, cpufreq won't start. * Fixes all but invest, note that cpufreq needs to be rebuilt against this for the menu to work * Also fix two new build warnings
2017-08-13libmate-panel-applet: fix bg rendering for in-process appletslukefromdc1-64/+45
Note that at least some in-process applets will pick up the MatePanelAppletFrameDBus styling, so drag handles should be themed with the MatePanelAppletFrameDBus>MatePanelAppletFrameDBus selector instead
2017-08-13libpanel-applet/panel-applet.h: Rename id to factory_id for factorylukefromdc1-6/+6
2017-08-13limatepanel-applet: add panel-applet-private.hlukefromdc5-8/+41
... and move private functions from factory to this file. Later we will have at least one more private function. Based on https://github.com/GNOME/gnome-panel/commit/c04da8c76ee6f16af44faca2b247df71e98b0a4b plus one more change as it was added out of order
2017-08-13don't use GtkPlug/GtkSocket for in process appletslukefromdc1-4/+25
1. This will allow panel to exit/stop without crashing when using in process applets. It was crashing because of following assert: g_assert (widget->priv->verifying_invariants_count > 0); 2. In process applet will not have extra background. Transparency should now work as expected. This fixes redrawing of in-process applet backgrounds with GTK 3.22 based on https://github.com/GNOME/gnome-panel/commit/df4ec78272624660e1e01b7382dac3e1f83cfc4a
2017-08-13make it possible to get applet widgetlukefromdc1-0/+7
We will use this to get applet widget from factory. This will allow to bypass GtkPlug/GtkSocket. Based on https://github.com/GNOME/gnome-panel/commit/408bab094d1fad471b342548dabc58410a3dc327
2017-08-13libpanel-applet: add panel_applet_factory_get_applet_widgetlukefromdc2-0/+21
This function will be used to get applet widget from factory. Based on https://github.com/GNOME/gnome-panel/commit/8e1f7ea9f13533ce448cbc485d766fed01029be5
2017-08-13libpanel-applet: return process type and applet uidlukefromdc1-2/+10
Return applet process type and generated uid from factory. Process type will be needed to know if we should create GtkSocket, but uid will be used to get applet widget.