1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-19 07:55:48 +01:00

- fixed a bug in the icon chooser dialog that made the selected icon look

wrong if it had alpha blending.
- fixed a bug in WMReparentWidget()
- added WMReparentWidget() to WINGs.h
This commit is contained in:
dan
2001-04-26 02:45:28 +00:00
parent 86154ba01d
commit 649a7ac82c
5 changed files with 17 additions and 6 deletions

View File

@@ -45,6 +45,8 @@ Changes since version 0.64.0:
- The icon image set to be shown in panels ("Logo.WMPanel") will be - The icon image set to be shown in panels ("Logo.WMPanel") will be
automatically updated if its entry in WMWindowAttributes changes (without automatically updated if its entry in WMWindowAttributes changes (without
a need to restart as until now). a need to restart as until now).
- Fixed a bug in the icon chooser dialog that made the selected icon look
wrong if it had alpha blending.
Changes since version 0.63.1: Changes since version 0.63.1:

View File

@@ -29,7 +29,7 @@ Changes since wmaker 0.64.0:
performance a bit. performance a bit.
- replaced some recursive code with iterative code in selection.c - replaced some recursive code with iterative code in selection.c
- added WMCreateBlendedPixmapFromRImage() - added WMCreateBlendedPixmapFromRImage()
- Small API change: - small API change:
1. Renamed WMSetApplicationIconImage(), WMGetApplicationIconImage() and 1. Renamed WMSetApplicationIconImage(), WMGetApplicationIconImage() and
WMSetWindowMiniwindowImage() to respectively WMSetApplicationIconPixmap(), WMSetWindowMiniwindowImage() to respectively WMSetApplicationIconPixmap(),
WMGetApplicationIconPixmap() and WMSetWindowMiniwindowPixmap() WMGetApplicationIconPixmap() and WMSetWindowMiniwindowPixmap()
@@ -46,6 +46,8 @@ Changes since wmaker 0.64.0:
- updated panels to use the newly available RImages if present and fallback - updated panels to use the newly available RImages if present and fallback
to old WMPixmaps if not, to properly show alpha blended images. to old WMPixmaps if not, to properly show alpha blended images.
- replaced some still left malloc's with wmalloc's. - replaced some still left malloc's with wmalloc's.
- fixed a bug in WMReparentWidget()
- added WMReparentWidget() to WINGs.h
changes since wmaker 0.63.1: changes since wmaker 0.63.1:

View File

@@ -847,6 +847,8 @@ void WMUnmapSubwidgets(WMWidget *w);
void WMRealizeWidget(WMWidget *w); void WMRealizeWidget(WMWidget *w);
void WMReparentWidget(WMWidget *w, WMWidget *newParent, int x, int y);
void WMDestroyWidget(WMWidget *widget); void WMDestroyWidget(WMWidget *widget);
void WMHangData(WMWidget *widget, void *data); void WMHangData(WMWidget *widget, void *data);

View File

@@ -934,7 +934,7 @@ WMMapWidget(WMWidget *w)
void void
WMReparentWidget(WMWidget *w, WMWidget *newParent, int x, int y) WMReparentWidget(WMWidget *w, WMWidget *newParent, int x, int y)
{ {
W_ReparentView(W_VIEW(w), newParent, x, y); W_ReparentView(W_VIEW(w), W_VIEW(newParent), x, y);
} }

View File

@@ -370,7 +370,7 @@ drawIconProc(WMList *lPtr, int index, Drawable d, char *text,
WMColor *whitecolor; WMColor *whitecolor;
WMSize size; WMSize size;
WMScreen *wmscr = WMWidgetScreen(panel->win); WMScreen *wmscr = WMWidgetScreen(panel->win);
RColor gray; RColor color;
int width; int width;
if(!panel->preview) return; if(!panel->preview) return;
@@ -385,9 +385,14 @@ drawIconProc(WMList *lPtr, int index, Drawable d, char *text,
sprintf(file, "%s/%s", dirfile, text); sprintf(file, "%s/%s", dirfile, text);
wfree(dirfile); wfree(dirfile);
gray.red = 0xae; gray.green = 0xaa; if ((state & WLDSSelected) != 0) {
gray.blue = 0xae; gray.alpha = 0; color.red = color.green = color.blue = 0xff;
pixmap = WMCreateBlendedPixmapFromFile(wmscr, file, &gray); color.alpha = 0;
} else {
color.red = color.blue = 0xae;
color.green = 0xaa; color.alpha = 0;
}
pixmap = WMCreateBlendedPixmapFromFile(wmscr, file, &color);
wfree(file); wfree(file);
if (!pixmap) { if (!pixmap) {