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:
@@ -206,7 +206,7 @@ lookup_available_fonts(_Panel *panel)
|
|||||||
|
|
||||||
found = -1;
|
found = -1;
|
||||||
for (j = 0; j < panel->fonts->familyn && found<0; j++)
|
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;
|
found= j;
|
||||||
|
|
||||||
if (found < 0)
|
if (found < 0)
|
||||||
@@ -419,7 +419,7 @@ static void
|
|||||||
selectedOption(WMWidget *w, void *data)
|
selectedOption(WMWidget *w, void *data)
|
||||||
{
|
{
|
||||||
_Panel *panel= (_Panel*)data;
|
_Panel *panel= (_Panel*)data;
|
||||||
int index= WMGetPopUpButtonSelectedItem(panel->optionP);
|
int index = WMGetPopUpButtonSelectedItem(panel->optionP);
|
||||||
WMMenuItem *item= WMGetPopUpButtonMenuItem(panel->optionP, index);
|
WMMenuItem *item= WMGetPopUpButtonMenuItem(panel->optionP, index);
|
||||||
char *font;
|
char *font;
|
||||||
|
|
||||||
|
|||||||
@@ -158,12 +158,4 @@ char* GetProgramNameForWindow(Window win);
|
|||||||
|
|
||||||
Bool GetCommandForPid(int pid, char ***argv, int *argc);
|
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
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user