Age | Commit message (Collapse) | Author | Files | Lines |
|
panel-widget.c move background handling to the panel toplevel in GTK 3.18 and GTK 3.20 builds only, seems to fix the applet crashes on theme changes with a custom background loaded, and in GTK 3.20 also preserves custom backgrounds when GTK themes are changed
|
|
panel-toplevel.h move background handling to the panel toplevel in GTK 3.18 and GTK 3.20 builds only, seems to fix the applet crashes on theme changes with a custom background loaded, and in GTK 3.20 also preserves custom backgrounds when GTK themes are changed
|
|
panel-toplevel.c move background handling to the panel toplevel in GTK 3.18 and GTK 3.20 builds only, seems to fix the applet crashes on theme changes with a custom background loaded, and in GTK 3.20 also preserves custom backgrounds when GTK themes are changed
|
|
panel-separator.c
|
|
panel-profile.c
|
|
panel-menu-bar.c
|
|
panel-applet-frame.c
|
|
panel.c
|
|
Revert a technically incorrect hack previously needed for GTk 3.18 but no longer needed after moving the background handling to the panel toplevel. Moving the BG is GTK 3.18 and later only it seems
|
|
The mate-custom-panel-background style class persists on the panel widget when resetting the panel BG to the system theme. It will overrride the panel system theme and turn the panel transparent with the new applet changes for some reason, so don't run panel_background_apply_css on GTK 3.20 builds. It's not needed to override t.he theme background for a custom background with the new code and GTK 3.20, and mate-panel-menu-bar is already present
|
|
- remove check for menubar schema as it's already installed along with panel itself
- properly unref menubar_settings object
- make key type unsigned
- drop obsolete MAX_ITEMS_OR_SUBMENU define
|
|
|
|
Add back the default background for themes such as Adwaita that do not explicitly support MATE. Tested with custom and system themes in Adwaita and all themes I have. System themes work perfectly, custom themes require restarting panel after any theme change, still need to restart panel after returning to the system theme from a custom theme as well.
|
|
This makes custom backgrounds show on the panel, the menu, the launcher applets
but not yet the tray, the clock button, the trash, or most applets from mate-applets.
Sometimes panel BG not drawn after theme change until panel restarted.
Still, this is a clue-will keep working.
Adding gdk_window_ensure_native (window) was taken from gnome-panel but caused the
default background not to show if the system BG is selected and does not explicitly
set the theme. Also using this brings back the requirement to restart the panel to
fully apply a system BG but progress is being made here.
|
|
|
|
with 24px panel 24px menu bar icon is too big: touches borders
|
|
adapted from:
https://git.gnome.org/browse/gnome-panel/commit/?id=eefb31f
|
|
|
|
also rename setup_menu_item_with_icon() to setup_menuitem_with_icon(),
and drop GtkStock support from it
|
|
- MatePanelAppletFrameDBus
- PanelSeparator
- PanelToplevel
|
|
|
|
|
|
must be some issue during the last merge
|
|
|
|
|
|
|
|
|
|
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=e56b20d
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=8b554ba
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=d907a6e
|
|
Code for color shading copied from mutter:
https://git.gnome.org/browse/mutter/tree/src/ui/theme.c
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=5b19b4b
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=3cb7bc
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=539ecc4
|
|
since gtk+-3.10 screen is always 1
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=be976a0
https://git.gnome.org/browse/gnome-panel/commit/?id=272f680
|
|
gdk_cursor_new_for_display for both GTK versions
|
|
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=201f16b
|
|
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?id=e14b9ac
|
|
|
|
|
|
|
|
|
|
|
|
It makes no sense to use the size of the icon to tell GTK+ about our
preferred width/height: what we really care about is the size of our
parent, since we're filling it anyway.
taken from:
https://git.gnome.org/browse/gnome-panel/commit/?h=gnome-3-0&id=e870aaa
|
|
Keep the .mate-panel-menu-bar and .gnome-panel-menu-bar style classes on the panel toplevel unconditionally. GTK Inspector showed that the toplevel was actually being themed by PanelWidget and not by PanelToplevel, causing multiple issues. This was why it was not possible to set an image or an alpha background in the GTK theme. The .mate-custom-panel-background style class was being applied to the toplevel, but not mate-panel-menu-bar and .gnome-panel-menu-bar . This was also why resetting the panel from a custom to a system background required restarting the panel.
I found all of this because of a bug or changed feature (not sure which) in GTK 3.19.7 which prevented the panel from being themed at all. Fixing this right also fixes all the bugs mentioned above. First restart after setting a custom theme will sometimes but not reliably crash an applet, not sure if that is a pre-existing bug though. At any rate, setting ANY custom background was just broken by gtk3.19.7. don't know if they will fix that or we will have to. That one can wait.
|
|
|
|
|
|
|
|
|