projects
/
conv-inbox
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a62899
)
Draw service avatar in background
author
Artem Garmash
<artemgarmash@gmail.com>
Sun, 24 Jan 2010 22:57:59 +0000
(
00:57
+0200)
committer
Artem Garmash
<artem.garmash@nokia.com>
Sun, 27 Jun 2010 19:13:44 +0000
(22:13 +0300)
src/el-home-applet.c
patch
|
blob
|
history
diff --git
a/src/el-home-applet.c
b/src/el-home-applet.c
index
d287ab8
..
020c37f
100644
(file)
--- 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 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 */
#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) {
if (priv->message) {
if (priv->service_pixbuf) {
+ cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
gdk_cairo_set_source_pixbuf (cr,
priv->service_pixbuf,
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 */
}
/* 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,
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);
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,
priv->service_pixbuf = gtk_icon_theme_load_icon (icon_theme,
icon_name,
- 128,
+ SERVICE_ICON_SIZE,
0, NULL);
}
}
0, NULL);
}
}