mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-12 03:35:52 +01:00
- fixed a bug that crashed the programm when a popup button was scrolled.
- fixed a bug that caused incorrect drawing position of the popup indicator. - fixed a bug that prevented selecting no item (-1) in a popup button. - an assertion will be raised if the program tries to select a popup button item that is beyond the total number of items present in the popup button. - changed names of functions for SplitView to be consistent. Some contained SubView while other Subview. Now all have Subview.
This commit is contained in:
@@ -505,7 +505,7 @@ appendSubviewButtonAction(WMWidget *self, void *data)
|
||||
char buf[64];
|
||||
WMLabel *label = WMCreateLabel(sPtr);
|
||||
|
||||
sprintf(buf, "Subview %d", WMGetSplitViewSubViewsCount(sPtr) + 1);
|
||||
sprintf(buf, "Subview %d", WMGetSplitViewSubviewsCount(sPtr) + 1);
|
||||
WMSetLabelText(label, buf);
|
||||
WMSetLabelRelief(label, WRSunken);
|
||||
WMAddSplitViewSubview(sPtr, WMWidgetView(label));
|
||||
@@ -517,10 +517,10 @@ void
|
||||
removeSubviewButtonAction(WMWidget *self, void *data)
|
||||
{
|
||||
WMSplitView *sPtr = (WMSplitView*)data;
|
||||
int count = WMGetSplitViewSubViewsCount(sPtr);
|
||||
int count = WMGetSplitViewSubviewsCount(sPtr);
|
||||
|
||||
if (count > 2) {
|
||||
WMView *view = WMGetSplitViewSubViewAt(sPtr, count-1);
|
||||
WMView *view = WMGetSplitViewSubviewAt(sPtr, count-1);
|
||||
WMDestroyWidget(WMWidgetOfView(view));
|
||||
WMRemoveSplitViewSubviewAt(sPtr, count-1);
|
||||
}
|
||||
@@ -536,7 +536,7 @@ orientationButtonAction(WMWidget *self, void *data)
|
||||
void
|
||||
adjustSubviewsButtonAction(WMWidget *self, void *data)
|
||||
{
|
||||
WMAdjustSplitViewSubViews((WMSplitView*)data);
|
||||
WMAdjustSplitViewSubviews((WMSplitView*)data);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user