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

- removed some obsoleted function definitions

- made font name comparison case insensitive
This commit is contained in:
dan
2004-10-14 18:04:18 +00:00
parent 3a97c33072
commit 36b55dc1e6
2 changed files with 10 additions and 18 deletions

View File

@@ -206,7 +206,7 @@ lookup_available_fonts(_Panel *panel)
found = -1;
for (j = 0; j < panel->fonts->familyn && found<0; j++)
if (strcmp(panel->fonts->families[j].name, name)==0)
if (strcasecmp(panel->fonts->families[j].name, name)==0)
found= j;
if (found < 0)
@@ -419,7 +419,7 @@ static void
selectedOption(WMWidget *w, void *data)
{
_Panel *panel= (_Panel*)data;
int index= WMGetPopUpButtonSelectedItem(panel->optionP);
int index = WMGetPopUpButtonSelectedItem(panel->optionP);
WMMenuItem *item= WMGetPopUpButtonMenuItem(panel->optionP, index);
char *font;

View File

@@ -158,12 +158,4 @@ char* GetProgramNameForWindow(Window win);
Bool GetCommandForPid(int pid, char ***argv, int *argc);
#ifdef NETWM_HINTS
#include "wmspec.h"
#define GetPidForWindow(win) wNETWMGetPidForWindow(win)
#else
int GetPidForWindow(Window win);
#endif
#endif