summaryrefslogtreecommitdiff
path: root/mate-panel/button-widget.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-11button-widget: Fix memory leakrbuj1-0/+1
2019-07-05Remove trailing whitespacesLaurent Napias1-9/+9
2019-05-16[mate-panel] Avoid deprecated g_type_class_add_privateWu Xiaotian1-8/+4
2019-05-10button-widget: Clarify calculation precedence for '&' and '?'Pablo Barciela1-3/+3
Fixes cppcheck warnings: [mate-panel/button-widget.c:180]: (style) Clarify calculation precedence for '&' and '?'. [mate-panel/button-widget.c:181]: (style) Clarify calculation precedence for '&' and '?'. [mate-panel/button-widget.c:315]: (style) Clarify calculation precedence for '&' and '?'.
2018-10-20button-widget: wide panels, more suitable resize limits on Widgets and arrowsbraikar1-15/+42
Set better limits to the size taken by all BUTTON_WIDGETs when the panel is wide. For a wide panel (example vertical panel 100px wide) a widget would, before, take a space of 100x100 (for max hardcoded icon size 48px) Now if panel width exceeds 50px, the widgets' height stays at 50 and does not grow in height anymore. Same behaviour applies on wide horizontal panels. The GTK_ARROW also resizes properly for wide panel on BUTTON_WIDGETs with property "has_arrow"
2018-05-12Convert launcher icons to cairo surfacesVictor Kareh1-73/+80
This improves support for HiDPI by loading properly scaled surfaces for launcher and drawer icons. It also Fixes the Show Desktop wncklet to show a surface icon. Other wncklets have their icons determined by libwnck, so they remain as pixbufs. Fixes mate-desktop/mate-desktop#314
2018-01-31require GTK+ 3.22 and GLib 2.50monsta1-18/+0
2017-01-08Gtk-WARNING: Allocating size to GtkAlignment..Denis Gorodnichev1-2/+0
2016-11-21move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build optionmonsta1-252/+0
and require libmate-desktop >= 1.17 WARNING: use GTK+3 build of libmateweather for this build. that lib is not migrated to GTK+3 only as we will possibly use libgweather instead of it.
2016-11-21check for stable release of GTK+3, not for development onemonsta1-3/+3
2016-11-21fix indent a bitmonsta1-1/+1
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-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
2015-12-18button-widget: avoid build warnings about unused variablesMonsta1-14/+9
2015-12-18button-widget: properly init a variable in GTK+3 buildMonsta1-2/+6
2015-12-18button-widget: removed unused variablemonsta1-2/+1
2015-09-25eliminate criticalsDenis Gorodnichev1-0/+10
gdk_window_set_geometry_hints accept 0 as flags when geometry is null return 1px width/height while image is not loadded
2015-08-26Gtk3: Don't use deprecated gtk_widget_render_icon_pixbufyetist1-9/+5
2014-11-23Gtk3: panel: focus-line-width is not needed when drawing ButtonWidgetinfirit1-2/+1
Based on gnome-panel commit: 8a942d16378f62015f302357e0e5b6f61b5713b3 From: Vincent Untz <[email protected]>
2014-11-23Gtk3: button-widget: Use gtk_widget_render_icon_pixbuf() instead of ↵infirit1-0/+6
gtk_widget_render_icon() Based on gnome-panel commit: 6f13318fa892afde6ff35b6784217121481e3963 From: Carlos Garcia Campos <[email protected]>
2014-11-22Gtk3: Sync get_preferred_width/height() usage with gnome-panelinfirit1-25/+22
Even tough it works it makes taking code (eg StyleContext) from gnome-panel much easier. Also fixes a bug where applets are not drawn when moved/added.
2014-11-22Gtk3: button-widget: Port to GtkStyleContextinfirit1-47/+86
Based on gnome-panel commit: ee0fcd193030b433b5aa1785a864f89e25345f01 From: Carlos Garcia Campos <[email protected]> In the process make button_widget_{draw,expose} a little more readable.
2014-11-22Add a gtkimage with the current pixbuf to button-widgetinfirit1-0/+11
We need to add a child to the button to get the right allocation of the pixbuf. When the button is created without a pixbuf, get_preferred_width/height are called the first time when the widget is allocated and 0x0 size is cached by gtksizerequest. Since the widget doesn't change its size when a pixbuf is set, gtk_widget_queue_resize() always uses the cached values instead of calling get_preferred_width_height() again. So the actual size, based on pixbuf size, is never used. We are overriding the draw() method, so having a child doesn't affect the widget rendering anyway. Taken from gnome-panel commit: 0b8ace11087855d741cdeed97dc839db50319ae8 from: Carlos Garcia Campos <[email protected]>
2014-11-22button-widget: small white-space cleanupinfirit1-4/+4
2013-10-27Fix variables for GTK2Stefano Karapetsas1-2/+2
2013-10-26mate-panel: Add GTK3 supportStefano Karapetsas1-7/+163
2012-10-11migrate mate-panel to gsettingsStefano Karapetsas1-0/+2
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+902