summaryrefslogtreecommitdiff
path: root/mate-panel/button-widget.c
AgeCommit message (Collapse)AuthorFilesLines
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