1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-07 14:24:14 +01:00

Fixed a crashing bug related to textfield selections, and reordered the

items in the textfield delegate structure to be grouped togheter based
on their meaning.
This commit is contained in:
dan
1999-05-18 00:01:59 +00:00
parent d9347ea4cf
commit 35735b2f36
3 changed files with 6 additions and 5 deletions

View File

@@ -435,12 +435,12 @@ typedef struct WMBrowserDelegate {
typedef struct WMTextFieldDelegate {
void *data;
void (*didBeginEditing)(struct WMTextFieldDelegate *self,
WMNotification *notif);
void (*didChange)(struct WMTextFieldDelegate *self,
WMNotification *notif);
void (*didBeginEditing)(struct WMTextFieldDelegate *self,
WMNotification *notif);
void (*didEndEditing)(struct WMTextFieldDelegate *self,
WMNotification *notif);

View File

@@ -230,7 +230,8 @@ requestHandler(WMWidget *w, Atom selection, Atom target, Atom *type,
static void
lostHandler(WMWidget *w, Atom selection)
{
TextField *tPtr;
TextField *tPtr = (WMTextField*)w;
tPtr->selection.count = 0;
paintTextField(tPtr);
}

View File

@@ -146,7 +146,7 @@ browseForFile(WMWidget *w, void *data)
WMSetFilePanelCanChooseFiles(filePanel, False);
if (WMRunModalFilePanelForDirectory(filePanel, panel->win, "/",
_("Select path"), NULL) == True) {
_("Select directory"), NULL) == True) {
char *str = WMGetFilePanelFileName(filePanel);
if (str) {