Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
pager.c
Log Message:
Use default pager background in pagers for desk without background.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/pager.c,v
retrieving revision 1.190
retrieving revision 1.191
diff -u -3 -r1.190 -r1.191
--- pager.c 7 Jan 2006 07:20:58 -0000 1.190
+++ pager.c 26 Jan 2006 19:12:59 -0000 1.191
@@ -488,6 +488,7 @@
Pixmap pmap;
GC gc;
Background *bg;
+ ImageClass *ic;
p->x1 = p->y1 = 0;
p->x2 = p->y2 = 99999;
@@ -497,19 +498,8 @@
EFreePixmap(pmap);
pmap = p->bgpmap = ECreatePixmap(p->win, p->dw, p->dh, VRoot.depth);
- if (!Conf_pagers.snap)
- {
- ImageClass *ic;
-
- ic = ImageclassFind("PAGER_BACKGROUND", 0);
- if (ic)
- ImageclassApplySimple(ic, p->win, pmap, STATE_NORMAL,
- 0, 0, p->dw, p->dh);
- return;
- }
-
bg = DeskBackgroundGet(p->dsk);
- if (bg)
+ if (bg && Conf_pagers.snap)
{
char s[4096];
char *uniq;
@@ -541,6 +531,14 @@
return;
}
+ ic = ImageclassFind("PAGER_BACKGROUND", 0);
+ if (ic)
+ {
+ ImageclassApplySimple(ic, p->win, pmap, STATE_NORMAL,
+ 0, 0, p->dw, p->dh);
+ return;
+ }
+
gc = ECreateGC(pmap, 0, NULL);
if (gc == None)
return;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs