summaryrefslogtreecommitdiff
path: root/mate-panel
AgeCommit message (Collapse)AuthorFilesLines
2016-03-25Gtk3.18/3.20-move background handling toplevellukefromdc1-24/+38
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
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-1/+7
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
2016-03-25 Gtk3.18/3.20-move background handling toplevel lukefromdc1-8/+180
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
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-3/+7
panel-separator.c
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-2/+9
panel-profile.c
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-2/+7
panel-menu-bar.c
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-5/+21
panel-applet-frame.c
2016-03-25Gtk3.18/3.20-move background handling toplevel lukefromdc1-1/+6
panel.c
2016-03-25 GTK3.18-revert hack not needed with moved bg codelukefromdc1-7/+1
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
2016-03-13GTK 3.20-Prevent transparent panel on BG changelukefromdc1-2/+3
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
2016-03-13menubar: some corrections for new max-items-or-submenu keymonsta1-14/+12
- 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
2016-03-11Make MAX_ITEMS_OR_SUBMENU configurable.Julian RĂ¼ger2-6/+18
2016-02-27GTK3.20: preserve default backgroundlukefromdc1-0/+3
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.
2016-02-27gtk3.20: custom background work on main panellukefromdc1-1/+4
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.
2016-02-21add gschema key for setting menu icon sizesSorokin Alexei1-7/+28
2016-02-21change default menu bar icon size to 22pxSorokin Alexei1-4/+4
with 24px panel 24px menu bar icon is too big: touches borders
2016-02-21panel-menu-bar.c: force icon sizeSorokin Alexei1-4/+9
adapted from: https://git.gnome.org/browse/gnome-panel/commit/?id=eefb31f
2016-02-21fix some warningsSorokin Alexei4-3/+11
2016-02-21merge panel_load_menu_image_deferred() into setup_menuitem_with_icon()Sorokin Alexei4-123/+83
also rename setup_menu_item_with_icon() to setup_menuitem_with_icon(), and drop GtkStock support from it
2016-02-19GTK+-3.20: add more css namesWolfgang Ulbrich3-1/+14
- MatePanelAppletFrameDBus - PanelSeparator - PanelToplevel
2016-02-15panel-profile: less #if's againmonsta1-42/+34
2016-02-15panel-profile: less #if'smonsta1-24/+39
2016-02-15panel-profile: remove leftover that makes no sensemonsta1-4/+0
must be some issue during the last merge
2016-02-15icon chooser: use proper icon name for missing iconmonsta1-1/+1
2016-02-15icon chooser: fix typomonsta1-1/+1
2016-02-12[GTK+3] fix one more use of deprecated gdk_display_get_n_screensmonsta1-2/+9
2016-02-12[GTK+3] fix one more use of deprecated gdk_display_get_n_screensmonsta1-2/+18
2016-02-12GTK+3 panel-frame: fix a Wunused build warningWolfgang Ulbrich1-2/+2
2016-02-12GTK+-3.20 panel-toplevel: don't use deprecated style propertiesWolfgang Ulbrich1-0/+8
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=e56b20d
2016-02-12GTK+-3.20 button-widget: don't use deprecated style propertiesWolfgang Ulbrich1-0/+8
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=8b554ba
2016-02-12GTK+3 menu: don't use deprecated gtk_menu_get_tearoff_stateWolfgang Ulbrich1-2/+6
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=d907a6e
2016-02-12GTK+3 panel-frame: don't use deprecated GtkSymbolicColorWolfgang Ulbrich4-13/+223
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
2016-02-12GTK+3 panel-frame: do not use deprecated get_background_colorWolfgang Ulbrich1-4/+7
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=3cb7bc
2016-02-12Gtk+-3 panel-widget: don't use deprecated get_background_colorWolfgang Ulbrich1-7/+10
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=539ecc4
2016-02-12GTK+3: do not use deprecated n_screensWolfgang Ulbrich2-0/+31
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
2016-02-12do not use deprecated gdk_cursor_new, useWolfgang Ulbrich5-10/+17
gdk_cursor_new_for_display for both GTK versions
2016-02-09panel-frame: set css nameWolfgang Ulbrich1-0/+3
2016-02-09panel-widget: set css nameWolfgang Ulbrich1-0/+4
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=201f16b
2016-02-09GTK+3 panel-toplevel: do not use deprecated gtk_widget_get_requisitionWolfgang Ulbrich1-0/+4
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=e14b9ac
2016-02-09Kill ubuntu counterhackWolfgang Ulbrich1-8/+0
2016-02-09GTK+3 panel-toplevel: fix a build warningWolfgang Ulbrich1-1/+1
2016-02-09GTK+3 panel-applet-frame: fix deprecated gdk_pointer_ungrabWolfgang Ulbrich1-1/+2
2016-02-09GTK3: don't use deprecated gdk_threads_{enter/leave}Wolfgang Ulbrich1-0/+12
2016-02-09button-widget: do not use deprecated GTK_STOCK_MISSING_IMAGEWolfgang Ulbrich1-1/+1
2016-02-09Fix ButtonWidget appearing as a thin line on creationWolfgang Ulbrich1-11/+21
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
2016-01-23GTK3: More panel BG rendering bugfixeslukefromdc1-0/+9
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.
2016-01-23Gtk3: Don't use deprecated gtk_misc_set_alignmentRoy Zhang5-0/+25
2016-01-10background: reduce number of #if's once moremonsta1-16/+15
2016-01-10background: reduce number of #if's againmonsta1-9/+13
2016-01-10background: reduce number of #if'smonsta1-16/+20