1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

*** empty log message ***

This commit is contained in:
kojima
2001-01-16 16:08:40 +00:00
parent fea4c4c84e
commit b4851afbb7
12 changed files with 52 additions and 13 deletions

View File

@@ -1,6 +1,8 @@
Changes since version 0.63.1:
.............................
- fixed messup in get-{wings,wutil,wraster}-flags
- fixed #wmdatadir# substitution in wmaker.inst
(Seiichi SATO <sato@cvs-net.co.jp>)
Changes since version 0.63.0:

View File

@@ -144,7 +144,7 @@ if [ "$NLS" = "y" -o "$NLS" = "Y" ]; then
ling=` (cd po; /bin/ls *.po) `
ALL_LINGUAS=""
for l in $ling; do
lname=`(cd po; grep Language-Team $l|cut -f 2 -d: |cut -f 2 -d\ )`
lname=`(cd po; grep Language-Team $l|cut -f2 -d: |cut -f2 -d\ |cut -f1 -d\\)`
lname=`echo $lname`
lcode=`basename $l .po`
ALL_LINGUAS="$ALL_LINGUAS $lcode"

View File

@@ -2,6 +2,7 @@ changes since wmaker 0.63.1:
............................
- added WMRunModalLoop() and WMBreakModalLoop()
- added WMSetBoxExpandsToParent()
- added WMRemoveBoxSubview()
changes since wmaker 0.62.1:
............................

View File

@@ -21,7 +21,7 @@ lib_LIBRARIES = libWINGs.a libWUtil.a
LDADD= libWINGs.a $(top_builddir)/wrlib/libwraster.la @LIBPL@
EXTRA_DIST = BUGS
EXTRA_DIST = BUGS WINGs
# wbutton.c
libWINGs_a_SOURCES = \

View File

@@ -4,7 +4,7 @@
#define _WINGS_H_
#include <wraster.h>
#include <WUtil.h>
#include <WINGs/WUtil.h>
#include <X11/Xlib.h>
#define WINGS_H_VERSION 20000521
@@ -1676,6 +1676,8 @@ void WMAddBoxSubview(WMBox *bPtr, WMView *view, Bool expand, Bool fill,
void WMAddBoxSubviewAtEnd(WMBox *bPtr, WMView *view, Bool expand, Bool fill,
int minSize, int maxSize, int space);
void WMRemoveBoxSubview(WMBox *bPtr, WMView *view);
void WMSetBoxHorizontal(WMBox *box, Bool flag);
void WMSetBoxExpandsToParent(WMBox *box);

View File

@@ -6,7 +6,7 @@
#include <X11/Xutil.h>
#include "WINGs.h"
#include <WINGs/WINGs.h>
#if WINGS_H_VERSION < 20000521
#error There_is_an_old_WINGs.h_file_somewhere_in_your_system._Please_remove_it.

View File

@@ -229,6 +229,7 @@ WMRemoveBoxSubview(WMBox *bPtr, WMView *view)
break;
}
}
rearrange(bPtr);
}

View File

@@ -130,10 +130,10 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner,
WMMapWidget(panel->vbox);
hbox = WMCreateBox(panel->vbox);
WMSetBoxBorderWidth(hbox, 10);
WMSetBoxBorderWidth(hbox, 5);
WMSetBoxHorizontal(hbox, True);
WMMapWidget(hbox);
WMAddBoxSubview(panel->vbox, WMWidgetView(hbox), False, True, 84, 0, 5);
WMAddBoxSubview(panel->vbox, WMWidgetView(hbox), False, True, 74, 0, 5);
panel->iLbl = WMCreateLabel(hbox);
WMSetLabelImagePosition(panel->iLbl, WIPImageOnly);
@@ -171,6 +171,7 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner,
if (msg) {
panel->mLbl = WMCreateLabel(panel->win);
WMSetLabelWraps(panel->mLbl, True);
WMMapWidget(panel->mLbl);
WMAddBoxSubview(panel->vbox, WMWidgetView(panel->mLbl), True, True,
WMFontHeight(scrPtr->normalFont)*4, 0, 5);

View File

@@ -427,17 +427,38 @@ wMaximizeWindow(WWindow *wwin, int directions)
{
int new_width, new_height, new_x, new_y;
WArea usableArea = wwin->screen_ptr->totalUsableArea;
WArea totalArea;
if (WFLAGP(wwin, no_resizable))
return;
totalArea.x1 = 0;
totalArea.y1 = 0;
totalArea.x2 = wwin->screen_ptr->scr_width;
totalArea.y2 = wwin->screen_ptr->scr_height;
#ifdef XINERAMA
if (wwin->screen_ptr->xine_count > 0
&& !(directions & MAX_IGNORE_XINERAMA)) {
WScreen *scr = wwin->screen_ptr;
WMRect rect;
rect = wGetRectForHead(scr, wGetHeadForWindow(wwin));
totalArea.x1 = rect.pos.x;
totalArea.y1 = rect.pos.y;
totalArea.x2 = totalArea.x1 + rect.size.width;
totalArea.y2 = totalArea.y1 + rect.size.height;
usableArea.x1 = WMAX(totalArea.x1, usableArea.x1);
usableArea.y1 = WMAX(totalArea.y1, usableArea.y1);
usableArea.x2 = WMIN(totalArea.x2, usableArea.x2);
usableArea.y2 = WMIN(totalArea.y2, usableArea.y2);
}
#endif /* XINERAMA */
if (WFLAGP(wwin, full_maximize)) {
usableArea.x1 = 0;
usableArea.y1 = 0;
usableArea.x2 = wwin->screen_ptr->scr_width;
usableArea.y2 = wwin->screen_ptr->scr_height;
usableArea = totalArea;
}
if (wwin->flags.shaded) {

View File

@@ -26,7 +26,7 @@
#define MAX_HORIZONTAL 1
#define MAX_VERTICAL 2
#define MAX_IGNORE_XINERAMA 4
void wSetFocusTo(WScreen *scr, WWindow *wwin);

View File

@@ -1361,6 +1361,7 @@ wShowLegalPanel(WScreen *scr)
panel->licenseL = WMCreateLabel(panel->win);
WMSetLabelWraps(panel->licenseL, True);
WMResizeWidget(panel->licenseL, 400, 230);
WMMoveWidget(panel->licenseL, 10, 10);
WMSetLabelTextAlignment(panel->licenseL, WALeft);

View File

@@ -1,7 +1,7 @@
/*
* Window Maker window manager
*
* Copyright (c) 1997, 1998 Alfredo K. Kojima
* Copyright (c) 1997-2001 Alfredo K. Kojima
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -28,6 +28,10 @@
#include <proplist.h>
#ifdef XINERAMA
#include <X11/Xinerama.h>
#endif
#define WTB_LEFT 0
#define WTB_RIGHT 1
@@ -90,6 +94,12 @@ typedef struct _WScreen {
int w_depth;
Colormap w_colormap; /* our colormap */
#ifdef XINERAMA
XineramaScreenInfo *xine_screens;
int xine_count; /* 0 means not active */
int xine_primary_screen; /* main working screen */
#endif
Window no_focus_win; /* window to get focus when nobody
* else can do it */