mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-30 12:15:50 +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 {
|
typedef struct WMTextFieldDelegate {
|
||||||
void *data;
|
void *data;
|
||||||
|
|
||||||
void (*didBeginEditing)(struct WMTextFieldDelegate *self,
|
|
||||||
WMNotification *notif);
|
|
||||||
|
|
||||||
void (*didChange)(struct WMTextFieldDelegate *self,
|
void (*didChange)(struct WMTextFieldDelegate *self,
|
||||||
WMNotification *notif);
|
WMNotification *notif);
|
||||||
|
|
||||||
|
void (*didBeginEditing)(struct WMTextFieldDelegate *self,
|
||||||
|
WMNotification *notif);
|
||||||
|
|
||||||
void (*didEndEditing)(struct WMTextFieldDelegate *self,
|
void (*didEndEditing)(struct WMTextFieldDelegate *self,
|
||||||
WMNotification *notif);
|
WMNotification *notif);
|
||||||
|
|
||||||
|
|||||||
@@ -230,7 +230,8 @@ requestHandler(WMWidget *w, Atom selection, Atom target, Atom *type,
|
|||||||
static void
|
static void
|
||||||
lostHandler(WMWidget *w, Atom selection)
|
lostHandler(WMWidget *w, Atom selection)
|
||||||
{
|
{
|
||||||
TextField *tPtr;
|
TextField *tPtr = (WMTextField*)w;
|
||||||
|
|
||||||
tPtr->selection.count = 0;
|
tPtr->selection.count = 0;
|
||||||
paintTextField(tPtr);
|
paintTextField(tPtr);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ browseForFile(WMWidget *w, void *data)
|
|||||||
WMSetFilePanelCanChooseFiles(filePanel, False);
|
WMSetFilePanelCanChooseFiles(filePanel, False);
|
||||||
|
|
||||||
if (WMRunModalFilePanelForDirectory(filePanel, panel->win, "/",
|
if (WMRunModalFilePanelForDirectory(filePanel, panel->win, "/",
|
||||||
_("Select path"), NULL) == True) {
|
_("Select directory"), NULL) == True) {
|
||||||
char *str = WMGetFilePanelFileName(filePanel);
|
char *str = WMGetFilePanelFileName(filePanel);
|
||||||
|
|
||||||
if (str) {
|
if (str) {
|
||||||
|
|||||||
Reference in New Issue
Block a user