mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 12:55:47 +01:00
removed some C++ style comments
This commit is contained in:
@@ -3662,26 +3662,23 @@ WMDestroyTextBlock(WMText *tPtr, void *vtb)
|
|||||||
* need to find a safer way. till then... this stays commented out */
|
* need to find a safer way. till then... this stays commented out */
|
||||||
/* 5 months later... destroy it 10 seconds after now which should
|
/* 5 months later... destroy it 10 seconds after now which should
|
||||||
* be enough time for the widget's action to be completed... :-) */
|
* be enough time for the widget's action to be completed... :-) */
|
||||||
// This is a bad assumption. Just destroy the widget here.
|
/* This is a bad assumption. Just destroy the widget here.
|
||||||
// if the caller needs it, it can protect it with W_RetainView()
|
// if the caller needs it, it can protect it with W_RetainView()
|
||||||
//WMAddTimerHandler(10000, destroyWidget, (void *)tb->d.widget);
|
//WMAddTimerHandler(10000, destroyWidget, (void *)tb->d.widget);*/
|
||||||
WMDestroyWidget(tb->d.widget);
|
WMDestroyWidget(tb->d.widget);
|
||||||
//tb->d.widget = NULL;
|
|
||||||
} else {
|
} else {
|
||||||
WMReleasePixmap(tb->d.pixmap);
|
WMReleasePixmap(tb->d.pixmap);
|
||||||
//tb->d.pixmap = NULL;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
WMReleaseFont(tb->d.font);
|
WMReleaseFont(tb->d.font);
|
||||||
}
|
}
|
||||||
|
|
||||||
WMReleaseColor(tb->color);
|
WMReleaseColor(tb->color);
|
||||||
// isn't this going to memleak if nsections==0? if (tb->sections && tb->nsections > 0)
|
/* isn't this going to memleak if nsections==0? if (tb->sections && tb->nsections > 0) */
|
||||||
if (tb->sections)
|
if (tb->sections)
|
||||||
wfree(tb->sections);
|
wfree(tb->sections);
|
||||||
wfree(tb->text);
|
wfree(tb->text);
|
||||||
wfree(tb);
|
wfree(tb);
|
||||||
//tb = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -120,9 +120,9 @@ int main(int argc, char **argv)
|
|||||||
strcat(path, argv[1]);
|
strcat(path, argv[1]);
|
||||||
|
|
||||||
if ((dict = PLGetProplistWithPath(path)) == NULL)
|
if ((dict = PLGetProplistWithPath(path)) == NULL)
|
||||||
return 1; // bad domain
|
return 1; /* bad domain */
|
||||||
if ((value = PLGetDictionaryEntry(dict, key)) == NULL)
|
if ((value = PLGetDictionaryEntry(dict, key)) == NULL)
|
||||||
return 2; // bad key
|
return 2; /* bad key */
|
||||||
|
|
||||||
printf("%s\n", PLGetString(value));
|
printf("%s\n", PLGetString(value));
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user