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

new/changelog fix

This commit is contained in:
kojima
1999-04-03 03:51:17 +00:00
parent 370c15ad2b
commit 9df0e16707
29 changed files with 680 additions and 439 deletions

View File

@@ -20,11 +20,11 @@ wdwrite_LDADD = $(liblist)
wxcopy_LDADD = @XLFLAGS@ @XLIBS@
wxpaste_LDADD = @XLFLAGS@ @XLIBS@
wxpaste_LDADD = @XLFLAGS@ @XLIBS@
getstyle_LDADD = $(liblist)
setstyle_LDADD = $(liblist)
setstyle_LDADD = @XLFLAGS@ @XLIBS@ $(liblist)
seticons_LDADD= $(liblist)

View File

@@ -106,11 +106,11 @@ wdwrite_LDADD = $(liblist)
wxcopy_LDADD = @XLFLAGS@ @XLIBS@
wxpaste_LDADD = @XLFLAGS@ @XLIBS@
wxpaste_LDADD = @XLFLAGS@ @XLIBS@
getstyle_LDADD = $(liblist)
setstyle_LDADD = $(liblist)
setstyle_LDADD = @XLFLAGS@ @XLIBS@ $(liblist)
seticons_LDADD = $(liblist)

View File

@@ -21,7 +21,7 @@
*/
#define PROG_VERSION "getstyle (Window Maker) 0.2"
#define PROG_VERSION "getstyle (Window Maker) 0.3"
@@ -68,6 +68,7 @@ static char *options[] = {
"IconBack",
"IconTitleColor",
"IconTitleBack",
"AlternativeMenuStyle",
#ifdef TITLE_TEXT_SHADOW
"Shadow",
"FShadowColor",

View File

@@ -21,7 +21,7 @@
*/
#define PROG_VERSION "setstyle (Window Maker) 0.2"
#define PROG_VERSION "setstyle (Window Maker) 0.3"
#include <stdlib.h>
#include <stdio.h>
@@ -29,6 +29,8 @@
#include <sys/stat.h>
#include <unistd.h>
#include <X11/Xlib.h>
#include <string.h>
#include "../src/wconfig.h"
@@ -229,6 +231,11 @@ hackStyle(proplist_t style)
}
}
}
if (!PLGetDictionaryEntry(style, PLMakeString("AlternativeMenuStyle"))) {
PLInsertDictionaryEntry(style, PLMakeString("AlternativeMenuStyle"),
PLMakeString("NO"));
}
}
@@ -370,8 +377,33 @@ main(int argc, char **argv)
hackStyle(style);
PLMergeDictionaries(prop, style);
PLSave(prop, YES);
{
Display *dpy;
XEvent ev;
dpy = XOpenDisplay("");
if (dpy) {
int i;
char *msg = "Reconfigure";
memset(&ev, 0, sizeof(XEvent));
ev.xclient.type = ClientMessage;
ev.xclient.message_type = XInternAtom(dpy, "_WINDOWMAKER_COMMAND",
False);
ev.xclient.window = DefaultRootWindow(dpy);
ev.xclient.format = 8;
for (i = 0; i <= strlen(msg); i++) {
ev.xclient.data.b[i] = msg[i];
}
XSendEvent(dpy, DefaultRootWindow(dpy), False,
SubstructureRedirectMask, &ev);
XFlush(dpy);
}
}
exit(0);
}

View File

@@ -206,12 +206,12 @@ parseTexture(RContext *rc, char *text)
case 'H':
gtype = RHorizontalGradient;
iwidth = scrWidth;
iheight = 1;
iheight = 8;
break;
case 'V':
case 'v':
gtype = RVerticalGradient;
iwidth = 1;
iwidth = 8;
iheight = scrHeight;
break;
default:
@@ -299,12 +299,12 @@ parseTexture(RContext *rc, char *text)
case 'H':
gtype = RHorizontalGradient;
iwidth = scrWidth;
iheight = 1;
iheight = 8;
break;
case 'V':
case 'v':
gtype = RVerticalGradient;
iwidth = 1;
iwidth = 8;
iheight = scrHeight;
break;
default: