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: Changes since version 0.63.1:
............................. .............................
- fixed messup in get-{wings,wutil,wraster}-flags - 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: 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) ` ling=` (cd po; /bin/ls *.po) `
ALL_LINGUAS="" ALL_LINGUAS=""
for l in $ling; do 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` lname=`echo $lname`
lcode=`basename $l .po` lcode=`basename $l .po`
ALL_LINGUAS="$ALL_LINGUAS $lcode" ALL_LINGUAS="$ALL_LINGUAS $lcode"

View File

@@ -2,6 +2,7 @@ changes since wmaker 0.63.1:
............................ ............................
- added WMRunModalLoop() and WMBreakModalLoop() - added WMRunModalLoop() and WMBreakModalLoop()
- added WMSetBoxExpandsToParent() - added WMSetBoxExpandsToParent()
- added WMRemoveBoxSubview()
changes since wmaker 0.62.1: 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@ LDADD= libWINGs.a $(top_builddir)/wrlib/libwraster.la @LIBPL@
EXTRA_DIST = BUGS EXTRA_DIST = BUGS WINGs
# wbutton.c # wbutton.c
libWINGs_a_SOURCES = \ libWINGs_a_SOURCES = \

View File

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

View File

@@ -6,7 +6,7 @@
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include "WINGs.h" #include <WINGs/WINGs.h>
#if WINGS_H_VERSION < 20000521 #if WINGS_H_VERSION < 20000521
#error There_is_an_old_WINGs.h_file_somewhere_in_your_system._Please_remove_it. #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; break;
} }
} }
rearrange(bPtr);
} }

View File

@@ -130,10 +130,10 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner,
WMMapWidget(panel->vbox); WMMapWidget(panel->vbox);
hbox = WMCreateBox(panel->vbox); hbox = WMCreateBox(panel->vbox);
WMSetBoxBorderWidth(hbox, 10); WMSetBoxBorderWidth(hbox, 5);
WMSetBoxHorizontal(hbox, True); WMSetBoxHorizontal(hbox, True);
WMMapWidget(hbox); 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); panel->iLbl = WMCreateLabel(hbox);
WMSetLabelImagePosition(panel->iLbl, WIPImageOnly); WMSetLabelImagePosition(panel->iLbl, WIPImageOnly);
@@ -171,6 +171,7 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner,
if (msg) { if (msg) {
panel->mLbl = WMCreateLabel(panel->win); panel->mLbl = WMCreateLabel(panel->win);
WMSetLabelWraps(panel->mLbl, True);
WMMapWidget(panel->mLbl); WMMapWidget(panel->mLbl);
WMAddBoxSubview(panel->vbox, WMWidgetView(panel->mLbl), True, True, WMAddBoxSubview(panel->vbox, WMWidgetView(panel->mLbl), True, True,
WMFontHeight(scrPtr->normalFont)*4, 0, 5); 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; int new_width, new_height, new_x, new_y;
WArea usableArea = wwin->screen_ptr->totalUsableArea; WArea usableArea = wwin->screen_ptr->totalUsableArea;
WArea totalArea;
if (WFLAGP(wwin, no_resizable)) if (WFLAGP(wwin, no_resizable))
return; 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)) { if (WFLAGP(wwin, full_maximize)) {
usableArea.x1 = 0; usableArea = totalArea;
usableArea.y1 = 0;
usableArea.x2 = wwin->screen_ptr->scr_width;
usableArea.y2 = wwin->screen_ptr->scr_height;
} }
if (wwin->flags.shaded) { if (wwin->flags.shaded) {

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
/* /*
* Window Maker window manager * 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 * 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 * it under the terms of the GNU General Public License as published by
@@ -28,6 +28,10 @@
#include <proplist.h> #include <proplist.h>
#ifdef XINERAMA
#include <X11/Xinerama.h>
#endif
#define WTB_LEFT 0 #define WTB_LEFT 0
#define WTB_RIGHT 1 #define WTB_RIGHT 1
@@ -89,6 +93,12 @@ typedef struct _WScreen {
Visual *w_visual; Visual *w_visual;
int w_depth; int w_depth;
Colormap w_colormap; /* our colormap */ 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 Window no_focus_win; /* window to get focus when nobody
* else can do it */ * else can do it */