[glide] Preview paints black for now
- From: Robert Carr <racarr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glide] Preview paints black for now
- Date: Sat, 5 Jun 2010 19:49:59 +0000 (UTC)
commit 78fd8dc584a3d081b264e9b93f4a26065af5aee2
Author: Robert Carr <racarr Valentine localdomain>
Date: Tue May 25 15:00:35 2010 -0400
Preview paints black for now
libglide/glide-theme-preview.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/libglide/glide-theme-preview.c b/libglide/glide-theme-preview.c
index 4b89307..0b87f89 100644
--- a/libglide/glide-theme-preview.c
+++ b/libglide/glide-theme-preview.c
@@ -37,6 +37,20 @@ enum {
PROP_0,
};
+static gboolean
+glide_theme_preview_expose_event (GtkWidget *widget,
+ GdkEventExpose *event)
+{
+ cairo_t *cr = gdk_cairo_create (gtk_widget_get_window (widget));
+
+ cairo_set_source_rgba (cr, 0, 0, 0, 1);
+ cairo_paint (cr);
+
+ cairo_destroy (cr);
+
+ return FALSE;
+}
+
static void
glide_theme_preview_finalize (GObject *object)
{
@@ -80,11 +94,14 @@ static void
glide_theme_preview_class_init (GlideThemePreviewClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->finalize = glide_theme_preview_finalize;
object_class->get_property = glide_theme_preview_get_property;
object_class->set_property = glide_theme_preview_set_property;
+ widget_class->expose_event = glide_theme_preview_expose_event;
+
g_type_class_add_private (object_class, sizeof(GlideThemePreviewPrivate));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]