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:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user