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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user