[gthumb] media viewer: use white text on black background when there is no video available
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] media viewer: use white text on black background when there is no video available
- Date: Wed, 2 Nov 2011 19:16:13 +0000 (UTC)
commit 92dd88919c3ab244b610dd90fa1e814f0ff5c890
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Nov 2 16:09:13 2011 +0100
media viewer: use white text on black background when there is no video available
extensions/gstreamer_tools/gth-media-viewer-page.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/extensions/gstreamer_tools/gth-media-viewer-page.c b/extensions/gstreamer_tools/gth-media-viewer-page.c
index 21b12cc..d8d6e89 100644
--- a/extensions/gstreamer_tools/gth-media-viewer-page.c
+++ b/extensions/gstreamer_tools/gth-media-viewer-page.c
@@ -214,16 +214,7 @@ video_area_draw_cb (GtkWidget *widget,
g_free (type);
}
- if (! self->priv->has_video) {
- GdkRGBA color;
-
- gtk_style_context_get_background_color (style_context,
- gtk_widget_get_state (widget),
- &color);
- gdk_cairo_set_source_rgba (cr, &color);
- }
- else
- cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
+ cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
cairo_rectangle (cr, 0, 0, allocation.width, allocation.height);
cairo_fill (cr);
@@ -233,7 +224,6 @@ video_area_draw_cb (GtkWidget *widget,
int icon_x, icon_y;
PangoRectangle logical_rect;
int x, y;
- GdkRGBA color;
icon_w = gdk_pixbuf_get_width (self->priv->icon);
icon_h = gdk_pixbuf_get_height (self->priv->icon);
@@ -255,8 +245,7 @@ video_area_draw_cb (GtkWidget *widget,
cairo_move_to (cr, x, y);
pango_layout_set_font_description (self->priv->caption_layout, gtk_style_context_get_font (style_context, gtk_widget_get_state (widget)));
pango_cairo_layout_path (cr, self->priv->caption_layout);
- gtk_style_context_get_color (style_context, gtk_widget_get_state (widget), &color);
- gdk_cairo_set_source_rgba (cr, &color);
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
cairo_fill (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]