[Goodies-commits] r6795 - in xfce4-notes-plugin/trunk: . panel-plugin
Mike Massonnet
mmassonnet at xfce.org
Wed Feb 25 20:50:11 CET 2009
Author: mmassonnet
Date: 2009-02-25 19:50:10 +0000 (Wed, 25 Feb 2009)
New Revision: 6795
Modified:
xfce4-notes-plugin/trunk/ChangeLog
xfce4-notes-plugin/trunk/panel-plugin/xfce-arrow-button.c
Log:
Draw the arrow button only with the state ACTIVE
Modified: xfce4-notes-plugin/trunk/ChangeLog
===================================================================
--- xfce4-notes-plugin/trunk/ChangeLog 2009-02-25 15:21:13 UTC (rev 6794)
+++ xfce4-notes-plugin/trunk/ChangeLog 2009-02-25 19:50:10 UTC (rev 6795)
@@ -1,5 +1,13 @@
2009-02-25 Mike Massonnet <mmassonnet at xfce.org>
+Draw the arrow button only with the state ACTIVE
+ * panel-plugin/xfce-arrow-button.c(xfce_arrow_button_expose):
+ - The arrow still displays poorly on different theme engines. Try to
+ draw the arrow only in the ACTIVE state, and cross the fingers it
+ displays fine on other theme engines.
+
+2009-02-25 Mike Massonnet <mmassonnet at xfce.org>
+
Replace the custom packed arrow button against XfceArrowButton
* panel-plugin/xfce-arrow-button.c, panel-plugin/xfce-arrow-button.h,
panel-plugin/Makefile.am:
Modified: xfce4-notes-plugin/trunk/panel-plugin/xfce-arrow-button.c
===================================================================
--- xfce4-notes-plugin/trunk/panel-plugin/xfce-arrow-button.c 2009-02-25 15:21:13 UTC (rev 6794)
+++ xfce4-notes-plugin/trunk/panel-plugin/xfce-arrow-button.c 2009-02-25 19:50:10 UTC (rev 6795)
@@ -81,7 +81,7 @@
GType
xfce_arrow_button_get_type (void)
{
- static GtkType type = G_TYPE_INVALID;
+ static GType type = G_TYPE_INVALID;
if (G_UNLIKELY (type == G_TYPE_INVALID))
{
@@ -236,7 +236,7 @@
GTK_WIDGET_CLASS (parent_class)->expose_event (widget, event);
gtk_paint_arrow (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), GTK_SHADOW_NONE,
+ GTK_STATE_ACTIVE, GTK_SHADOW_NONE,
&(event->area), widget, "xfce_arrow_button",
XFCE_ARROW_BUTTON (widget)->arrow_type, FALSE,
x, y, w, w);
@@ -271,7 +271,7 @@
static GType
xfce_arrow_button_child_type (GtkContainer *container)
{
- return GTK_TYPE_NONE;
+ return G_TYPE_NONE;
}
More information about the Goodies-commits
mailing list