summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@beryl-project.org>2007-04-12 14:26:37 +0200
committerDennis Kasprzyk <onestone@beryl-project.org>2007-04-12 14:26:37 +0200
commite5886dd954826b008f877cf5dc446e2f3452c850 (patch)
tree1bdb1c3a629aeb8be41c2f01aac04ae68cfd18a4 /src/thumbnail.c
parent57917c03e1c2e2632989315eb8805d0e0db94f5f (diff)
downloadberyl-premerge-e5886dd954826b008f877cf5dc446e2f3452c850.tar.gz
beryl-premerge-e5886dd954826b008f877cf5dc446e2f3452c850.tar.bz2
renamed thumb to thumbnail in bcop file to generate right gconf schema path
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index deb7d03..58c39ce 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -166,12 +166,12 @@ renderThumbText (CompScreen * s, Thumbnail * t, Bool freeThumb)
tA.maxwidth = t->width;
tA.maxheight = 100;
tA.screen = s;
- tA.size = thumbGetFontSize (s);
- tA.color[0] = thumbGetFontColorRed (s);
- tA.color[1] = thumbGetFontColorGreen (s);
- tA.color[2] = thumbGetFontColorBlue (s);
- tA.color[3] = thumbGetFontColorAlpha (s);
- tA.style = (thumbGetFontBold (s)) ? TEXT_STYLE_BOLD : TEXT_STYLE_NORMAL;
+ tA.size = thumbnailGetFontSize (s);
+ tA.color[0] = thumbnailGetFontColorRed (s);
+ tA.color[1] = thumbnailGetFontColorGreen (s);
+ tA.color[2] = thumbnailGetFontColorBlue (s);
+ tA.color[3] = thumbnailGetFontColorAlpha (s);
+ tA.style = (thumbnailGetFontBold (s)) ? TEXT_STYLE_BOLD : TEXT_STYLE_NORMAL;
tA.family = "Sans";
tA.ellipsize = TRUE;
@@ -277,7 +277,7 @@ thumbUpdateThumbnail (CompScreen * s)
if (!ts->thumb.win)
return;
- float maxSize = thumbGetThumbSize (s);
+ float maxSize = thumbnailGetThumbSize (s);
double scale = 1.0;
// do we nee to scale the window down?
if (WIN_W (ts->thumb.win) > maxSize || WIN_H (ts->thumb.win) > maxSize)
@@ -294,7 +294,7 @@ thumbUpdateThumbnail (CompScreen * s)
THUMB_WINDOW (ts->thumb.win);
- if (thumbGetTitleEnabled (s))
+ if (thumbnailGetTitleEnabled (s))
renderThumbText (s, &ts->thumb, FALSE);
else
freeThumbText (s, &ts->thumb);
@@ -307,7 +307,7 @@ thumbUpdateThumbnail (CompScreen * s)
int tPos[2];
int tmpPos[2];
float distance = 1000000;
- int off = thumbGetBorder (s);
+ int off = thumbnailGetBorder (s);
int oDev = outputDeviceForPoint (s, tw->ig.x + (tw->ig.width / 2),
tw->ig.y + (tw->ig.height / 2));
int ox1, oy1, ox2, oy2, ow, oh;
@@ -435,7 +435,7 @@ thumbShowThumbnail (void *vs)
static Bool
checkPosition (CompWindow * w)
{
- if (thumbGetCurrentViewport (w->screen))
+ if (thumbnailGetCurrentViewport (w->screen))
{
// TODO: We need a faster calculation here
Bool onViewport = FALSE;
@@ -521,14 +521,14 @@ thumbUpdateMouse (void *vs)
{
compRemoveTimeout (ts->displayTimeout);
ts->displayTimeout =
- compAddTimeout (thumbGetShowDelay (s),
+ compAddTimeout (thumbnailGetShowDelay (s),
thumbShowThumbnail, s);
}
}
else
{
ts->displayTimeout =
- compAddTimeout (thumbGetShowDelay (s),
+ compAddTimeout (thumbnailGetShowDelay (s),
thumbShowThumbnail, s);
}
}
@@ -673,17 +673,17 @@ thumbPaintThumb (CompScreen * s, Thumbnail * t,
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glTexEnvf (GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
- if (thumbGetWindowLike (s))
+ if (thumbnailGetWindowLike (s))
{
glColor4f (1.0, 1.0, 1.0, t->opacity);
enableTexture (s, &ts->windowTexture, COMP_TEXTURE_FILTER_GOOD);
}
else
{
- glColor4us (thumbGetThumbColorRed (s),
- thumbGetThumbColorGreen (s),
- thumbGetThumbColorBlue (s),
- thumbGetThumbColorAlpha (s) * t->opacity);
+ glColor4us (thumbnailGetThumbColorRed (s),
+ thumbnailGetThumbColorGreen (s),
+ thumbnailGetThumbColorBlue (s),
+ thumbnailGetThumbColorAlpha (s) * t->opacity);
enableTexture (s, &ts->glowTexture, COMP_TEXTURE_FILTER_GOOD);
}
@@ -770,7 +770,7 @@ thumbPaintThumb (CompScreen * s, Thumbnail * t,
glEnd ();
- if (thumbGetWindowLike (s))
+ if (thumbnailGetWindowLike (s))
{
disableTexture (s, &ts->windowTexture);
}
@@ -830,7 +830,7 @@ thumbPaintThumb (CompScreen * s, Thumbnail * t,
GLenum filter = s->display->textureFilter;
- if (thumbGetMipmap (s))
+ if (thumbnailGetMipmap (s))
s->display->textureFilter = GL_LINEAR_MIPMAP_LINEAR;
FragmentAttrib fragment;
@@ -864,7 +864,7 @@ thumbPreparePaintScreen (CompScreen * s, int ms)
float val = ms;
val /= 1000;
- val /= thumbGetFadeSpeed (s);
+ val /= thumbnailGetFadeSpeed (s);
if (otherScreenGrabExist (s, 0))
{
@@ -934,7 +934,7 @@ thumbPaintScreen (CompScreen * s,
(*s->paintScreen) (s, sAttrib, transform, region, output, newMask);
WRAP (ts, s, paintScreen, thumbPaintScreen);
- if (thumbGetAlwaysOnTop (s) && !ts->painted)
+ if (thumbnailGetAlwaysOnTop (s) && !ts->painted)
{
if (ts->oldThumb.opacity > 0.0 && ts->oldThumb.win)
{
@@ -979,7 +979,7 @@ thumbPaintTransformedScreen (CompScreen * s,
mask);
WRAP (ts, s, paintTransformedScreen, thumbPaintTransformedScreen);
- if (thumbGetAlwaysOnTop (s) && ts->x == s->x && ts->y == s->y)
+ if (thumbnailGetAlwaysOnTop (s) && ts->x == s->x && ts->y == s->y)
{
ts->painted = TRUE;
if (ts->oldThumb.opacity > 0.0 && ts->oldThumb.win)
@@ -1026,7 +1026,7 @@ thumbPaintWindow (CompWindow * w,
status = (*s->paintWindow) (w, attrib, transform, region, mask);
WRAP (ts, s, paintWindow, thumbPaintWindow);
- if (!thumbGetAlwaysOnTop (s) && ts->x == s->x && ts->y == s->y)
+ if (!thumbnailGetAlwaysOnTop (s) && ts->x == s->x && ts->y == s->y)
{
if (ts->oldThumb.opacity > 0.0 && ts->oldThumb.win &&
ts->oldThumb.dock == w)
@@ -1297,7 +1297,7 @@ thumbFini (CompPlugin * p)
}
static int
-thumbGetVersion (CompPlugin * plugin, int version)
+thumbnailGetVersion (CompPlugin * plugin, int version)
{
return ABIVERSION;
}
@@ -1307,7 +1307,7 @@ CompPluginVTable thumbVTable = {
"thumbnail",
N_("Window Previews"),
N_("Window thumbnails at the taskbar"),
- thumbGetVersion,
+ thumbnailGetVersion,
thumbInit,
thumbFini,
thumbInitDisplay,