summaryrefslogtreecommitdiff
path: root/mate-panel/panel-widget.c
AgeCommit message (Collapse)AuthorFilesLines
2016-06-08fix missing focus for panel widgetsraveit651-0/+1
credits and thanks to Joanmarie from orca project fixes partially https://github.com/mate-desktop/mate-panel/issues/441 https://github.com/mate-desktop/mate-panel/issues/440 https://github.com/mate-desktop/mate-panel/issues/444
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-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-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-21fix some warningsSorokin Alexei1-0/+4
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-12do not use deprecated gdk_cursor_new, useWolfgang Ulbrich1-3/+5
gdk_cursor_new_for_display for both GTK versions
2016-02-09panel-widget: set css nameWolfgang Ulbrich1-0/+4
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=201f16b
2016-01-05rename mate-panel-*.{c|h} -> panel-*.{c|h} for consistencymonsta1-1/+1
(libmate-panel-applet files are left alone since there are public header files used by all panel applets)
2016-01-04background: group some local functions by GTK+ versionmonsta1-20/+18
2016-01-04background: even less #if'smonsta1-7/+7
2016-01-04background: less #if'smonsta1-18/+18
2016-01-04background: all functions should have PanelBackground as 1st argumentmonsta1-1/+1
2015-12-21panel-widget: drop unused variables (assigned but never read after)monsta1-10/+0
2015-11-20Don't set the panel transparent by defaultBalló György1-0/+1
This fixes the background for GTK+ 3 themes which don't support mate-panel explicitly. Themes could still overwrite the background if they want in the usual way.
2015-10-26bring back good old deprecated function which works perfectlyMonsta1-3/+1
thanks to some genius from gnome team, we're now supposed to re-implement gtk_widget_reparent from scratch in every place we need to move a widget between containers. thanks but no thanks. don't fix what's not broken. fixes #360
2015-08-26Always use gtk_container_remove/gtk_container_addinfirit1-4/+1
Should work fine under both Gtk+ versions.
2015-08-26Gtk3: Don't use deprecated gtk_widget_reparentyetist1-0/+5
2015-08-26Gtk3: Don't use deprecated gdk_cursor_newyetist1-2/+1
2015-08-26Gtk3: Don't use deprecated gdk_window_get_pointeryetist1-0/+8
2015-08-26Gtk3: Don't use deprecated gtk_widget_get_pointeryetist1-0/+24
2015-07-14Replace GtkObject with GObject also for Gtk+ 2infirit1-27/+0
2015-07-14Drop gdkkeysyms-compat usage in Gtk+3infirit1-23/+22
The new GDK_KEY_ keys are also in Gtk+2.
2014-11-22Gtk3: Fix use of deprecated gdk_pointer_grab()/_ungrab()infirit1-4/+30
Replaced gdk_pointer_grab() and gdk_pointer_ungrab() by gdk_device_grab() and gdk_device_ungrab(), respectively. Taken from gnome-panel commit: 98da5c1953ab90cc5581c1858d7a9c3d3cf796eb From: Germán Póo-Caamaño <[email protected]>
2014-11-22Gtk3: Replaced gdk_cursor_unref() by g_object_unref()infirit1-0/+4
gdk_cursor_unref () is deprecated in Gtk+3
2014-06-20Fix RGBA issues for GTK3Konstantin Pugin1-1/+3
2014-04-26GTK3 fixStefano Karapetsas1-1/+1
2013-11-29Panel background improvements for GTK3Stefano Karapetsas1-15/+89
2013-10-26mate-panel: Add GTK3 supportStefano Karapetsas1-3/+79
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+3010