gtk-engines r1264 - in trunk: . engines/mist/src
- From: thos svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-engines r1264 - in trunk: . engines/mist/src
- Date: Mon, 6 Oct 2008 10:16:28 +0000 (UTC)
Author: thos
Date: Mon Oct 6 10:16:28 2008
New Revision: 1264
URL: http://svn.gnome.org/viewvc/gtk-engines?rev=1264&view=rev
Log:
2008-10-06 Thomas Wood <thos gnome org>
* engines/mist/src/mist-style.c: (mist_style_draw_focus),
(mist_style_class_init): Style the focus indicator in Mist
Modified:
trunk/ChangeLog
trunk/engines/mist/src/mist-style.c
Modified: trunk/engines/mist/src/mist-style.c
==============================================================================
--- trunk/engines/mist/src/mist-style.c (original)
+++ trunk/engines/mist/src/mist-style.c Mon Oct 6 10:16:28 2008
@@ -1336,6 +1336,36 @@
return stated;
}
+void
+mist_style_draw_focus (GtkStyle *style,
+ GdkWindow *window,
+ GtkStateType state_type,
+ GdkRectangle *area,
+ GtkWidget *widget,
+ const gchar *detail,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ MistStyle *mist_style = MIST_STYLE (style);
+ CairoColor *dark;
+ cairo_t *cr;
+
+ CHECK_ARGS
+ SANITIZE_SIZE
+
+ cr = ge_gdk_drawable_to_cairo (window, area);
+ cairo_translate (cr, 0.5, 0.5);
+ width--; height--;
+
+ dark = &mist_style->color_cube.dark[state_type];
+ ge_cairo_set_color (cr, dark);
+ cairo_rectangle (cr, x, y, width, height);
+ cairo_stroke (cr);
+ cairo_destroy (cr);
+}
+
GType mist_type_style = 0;
void
@@ -1400,4 +1430,5 @@
style_class->draw_string = mist_style_draw_string;
style_class->draw_layout = mist_style_draw_layout;
style_class->render_icon = mist_style_render_icon;
+ style_class->draw_focus = mist_style_draw_focus;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]