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

added options to change default fonts

This commit is contained in:
kojima
2000-05-21 23:56:33 +00:00
parent 6947fd7b64
commit 79ae37a35c
5 changed files with 32 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
changes since wmaker 0.62.0:
............................
- added WMSetWidgetDefaultFont(), WMSetWidgetDefaultBoldFont()
changes since wmaker 0.62.0: changes since wmaker 0.62.0:
............................ ............................
- added WM{S,G}etDataFormat() - added WM{S,G}etDataFormat()

View File

@@ -7,7 +7,7 @@
#include <WUtil.h> #include <WUtil.h>
#include <X11/Xlib.h> #include <X11/Xlib.h>
#define WINGS_H_VERSION 20000402 #define WINGS_H_VERSION 20000521
#ifdef __cplusplus #ifdef __cplusplus
@@ -648,6 +648,11 @@ WMFont *WMUserFontOfSize(WMScreen *scrPtr, int size);
WMFont *WMUserFixedPitchFontOfSize(WMScreen *scrPtr, int size); WMFont *WMUserFixedPitchFontOfSize(WMScreen *scrPtr, int size);
*/ */
void WMSetWidgetDefaultFont(WMScreen *scr, WMFont *font);
void WMSetWidgetDefaultBoldFont(WMScreen *scr, WMFont *font);
WMFont *WMSystemFontOfSize(WMScreen *scrPtr, int size); WMFont *WMSystemFontOfSize(WMScreen *scrPtr, int size);
WMFont *WMBoldSystemFontOfSize(WMScreen *scrPtr, int size); WMFont *WMBoldSystemFontOfSize(WMScreen *scrPtr, int size);

View File

@@ -8,7 +8,7 @@
#include "WINGs.h" #include "WINGs.h"
#if WINGS_H_VERSION < 20000402 #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.
#endif #endif

View File

@@ -815,6 +815,24 @@ WMCreateScreenWithRContext(Display *display, int screen, RContext *context)
} }
void
WMSetWidgetDefaultFont(WMScreen *scr, WMFont *font)
{
WMReleaseFont(scr->normalFont);
scr->normalFont = WMRetainFont(font);
}
void
WMSetWidgetDefaultBoldFont(WMScreen *scr, WMFont *font)
{
WMReleaseFont(scr->boldFont);
scr->boldFont = WMRetainFont(font);
}
void void
WMHangData(WMWidget *widget, void *data) WMHangData(WMWidget *widget, void *data)
{ {