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

- removed unnecessary include of WINGsP.h in some places

- smaller space between rows of text in WMText
This commit is contained in:
dan
2002-11-04 20:29:47 +00:00
parent 5e37991b6c
commit 4f80ec9178
10 changed files with 8 additions and 22 deletions

View File

@@ -1293,9 +1293,6 @@ main(int argc, char **argv)
testDragAndDrop(scr); testDragAndDrop(scr);
testText(scr); testText(scr);
testFontPanel(scr);
testList(scr);
#if 0 #if 0
testColorPanel(scr); testColorPanel(scr);
testScrollView(scr); testScrollView(scr);

View File

@@ -743,7 +743,7 @@ _getSibling:
if (tPtr->flags.ownsSelection) { if (tPtr->flags.ownsSelection) {
XRectangle rect; XRectangle rect;
if ( sectionWasSelected(tPtr, tb, &rect, s)) { if (sectionWasSelected(tPtr, tb, &rect, s)) {
tb->selected = True; tb->selected = True;
XFillRectangle(dpy, tPtr->db, WMColorGC(scr->gray), XFillRectangle(dpy, tPtr->db, WMColorGC(scr->gray),
rect.x, rect.y, rect.width, rect.height); rect.x, rect.y, rect.width, rect.height);
@@ -1472,7 +1472,8 @@ layOutLine(Text *tPtr, myLineItems *items, int nitems, int x, int y)
} else { } else {
font = (tPtr->flags.monoFont)?tPtr->dFont : tb->d.font; font = (tPtr->flags.monoFont)?tPtr->dFont : tb->d.font;
max_d = WMAX(max_d, abs(font->height-font->y)); /*max_d = WMAX(max_d, abs(font->height-font->y));*/
max_d = 2;
line_height = WMAX(line_height, font->height + max_d); line_height = WMAX(line_height, font->height + max_d);
text = &(tb->text[items[i].begin]); text = &(tb->text[items[i].begin]);
len = items[i].end - items[i].begin; len = items[i].end - items[i].begin;
@@ -2346,7 +2347,8 @@ handleTextKeyPress(Text *tPtr, XEvent *event)
goto L_imaGFX; goto L_imaGFX;
if(tPtr->tpos==0) { if(tPtr->tpos==0) {
L_imaGFX: if(tb->prior) { L_imaGFX:
if(tb->prior) {
tPtr->currentTextBlock = tb->prior; tPtr->currentTextBlock = tb->prior;
if(tPtr->currentTextBlock->graphic) if(tPtr->currentTextBlock->graphic)
tPtr->tpos = 1; tPtr->tpos = 1;
@@ -2367,7 +2369,8 @@ L_imaGFX: if(tb->prior) {
if(tb->graphic) if(tb->graphic)
goto R_imaGFX; goto R_imaGFX;
if(tPtr->tpos == tb->used) { if(tPtr->tpos == tb->used) {
R_imaGFX: if(tb->next) { R_imaGFX:
if(tb->next) {
tPtr->currentTextBlock = tb->next; tPtr->currentTextBlock = tb->next;
tPtr->tpos = 0; tPtr->tpos = 0;
if(!tb->next->first && tb->next->used>0) if(!tb->next->first && tb->next->used>0)

View File

@@ -48,7 +48,6 @@
#include "xdnd.h" #include "xdnd.h"
#endif #endif
#include "wsound.h" #include "wsound.h"
#include <WINGs/WINGsP.h>
/* /*

View File

@@ -34,8 +34,6 @@
#include <wraster.h> #include <wraster.h>
#include <WINGs/WINGsP.h>
#include "WindowMaker.h" #include "WindowMaker.h"
#include "screen.h" #include "screen.h"
#include "texture.h" #include "texture.h"

View File

@@ -51,8 +51,6 @@
#include <wraster.h> #include <wraster.h>
#include <WINGs/WINGsP.h>
#include "WindowMaker.h" #include "WindowMaker.h"
#include "wcore.h" #include "wcore.h"
#include "framewin.h" #include "framewin.h"

View File

@@ -56,8 +56,6 @@
#include "wsound.h" #include "wsound.h"
#include <WINGs/WINGsP.h>

View File

@@ -32,8 +32,6 @@
#include <wraster.h> #include <wraster.h>
#include <WINGs/WINGsP.h>
#include "WindowMaker.h" #include "WindowMaker.h"
#include "GNUstep.h" #include "GNUstep.h"
#include "texture.h" #include "texture.h"

View File

@@ -43,8 +43,6 @@
#include "stacking.h" #include "stacking.h"
#include "text.h" #include "text.h"
#include <WINGs/WINGsP.h>
/****** Global Variables ******/ /****** Global Variables ******/

View File

@@ -368,8 +368,7 @@ textRefresh(WTextInput *wtext)
XFillRectangle(dpy, wtext->core->window, wtext->regGC, XFillRectangle(dpy, wtext->core->window, wtext->regGC,
x1, y1, x2-x1, y2-y1); x1, y1, x2-x1, y2-y1);
/* Draw the selected text... use invGC so it will be the /* Draw the selected text. Inverse bg and fg colors for selection */
* opposite color as the filled rectangle */
WMDrawImageString(scr->wmscreen, wtext->core->window, WMDrawImageString(scr->wmscreen, wtext->core->window,
scr->white, scr->black, wtext->font, x1, y1, ptr, scr->white, scr->black, wtext->font, x1, y1, ptr,
(ep - sp)); (ep - sp));

View File

@@ -50,8 +50,6 @@
#include "kwm.h" #include "kwm.h"
#endif #endif
#include <WINGs/WINGsP.h>
extern WPreferences wPreferences; extern WPreferences wPreferences;
extern XContext wWinContext; extern XContext wWinContext;