From: Artem Garmash Date: Sun, 24 Jan 2010 22:57:59 +0000 (+0200) Subject: Draw service avatar in background X-Git-Url: https://vcs.maemo.org/git/?p=conv-inbox;a=commitdiff_plain;h=e1b0d1052e15f78a85922c2c94923fa832ea0a03 Draw service avatar in background --- diff --git a/src/el-home-applet.c b/src/el-home-applet.c index d287ab8..020c37f 100644 --- a/src/el-home-applet.c +++ b/src/el-home-applet.c @@ -62,6 +62,8 @@ #define MESSAGE_HEIGHT (C_HEIGHT - HEADER_HEIGHT - FOOTER_HEIGHT) #define MESSAGE_WIDTH (C_WIDTH - 2*HILDON_MARGIN_DEFAULT) +#define SERVICE_ICON_SIZE 64 + #define BOX_RADIOUS 20 #define SCROLL_PERIOD 100 /* ms */ @@ -472,10 +474,12 @@ expose_event (GtkWidget *self, GdkEventExpose *event) if (priv->message) { if (priv->service_pixbuf) { + cairo_set_operator (cr, CAIRO_OPERATOR_OVER); gdk_cairo_set_source_pixbuf (cr, priv->service_pixbuf, - 0, 0); - cairo_paint_with_alpha (cr, 0.5); + C_WIDTH - SERVICE_ICON_SIZE, + C_HEIGHT - FOOTER_HEIGHT - SERVICE_ICON_SIZE); + cairo_paint_with_alpha (cr, 0.3); } /* draw footer unread part bg */ @@ -866,7 +870,7 @@ make_query (RTComEl *el, gint event_id) rtcom_el_query_prepare (query, "is-read", FALSE, RTCOM_EL_OP_EQUAL, "service", conv_services, RTCOM_EL_OP_IN_STRV, - "event-type", conv_event_types, RTCOM_EL_OP_IN_STRV, + /* "event-type", conv_event_types, RTCOM_EL_OP_IN_STRV, */ NULL); } it = rtcom_el_get_events (el, query); @@ -956,7 +960,7 @@ read_event (ELHomeApplet *self) priv->service_pixbuf = gtk_icon_theme_load_icon (icon_theme, icon_name, - 128, + SERVICE_ICON_SIZE, 0, NULL); } }