Refactor replicant system a bit
This commit is contained in:
@@ -47,7 +47,11 @@ void handleDestroyFreePixmap (
|
||||
XFreePixmap(XtDisplay(replicant), (Pixmap)(clientData));
|
||||
}
|
||||
|
||||
Widget Launcher_XmdReplicantCreate (Widget parent, XmdReplicantState *state) {
|
||||
Widget Launcher_XmdReplicantCreate (
|
||||
XtAppContext application,
|
||||
Widget parent,
|
||||
XmdReplicantState *state,
|
||||
) {
|
||||
String iconName = XmdReplicantStateQuery(state, "Icon");
|
||||
Pixmap icon;
|
||||
#define iconCase(name) if (strcmp(#name, iconName) == 0) {\
|
||||
@@ -61,6 +65,7 @@ Widget Launcher_XmdReplicantCreate (Widget parent, XmdReplicantState *state) {
|
||||
iconCase(WebBrowser)
|
||||
iconCase(Music)
|
||||
icon = XmdLoadBitmapIcon(parent, unknown);
|
||||
#undef iconCase
|
||||
|
||||
XtFree(iconName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user