This commit is contained in:
Nishi 2026-04-18 21:52:02 +09:00
commit 39bee0e5cc
Signed by: nishi
GPG key ID: 27EF69B208EB9343
4 changed files with 10 additions and 3 deletions

3
configure vendored
View file

@ -45,6 +45,7 @@ param_set("vulkan-string-helper", 1);
param_set("shared", 1);
param_set("static", 1);
param_set("examples", 1);
param_set("dbus", 1);
my %features = (
@ -60,6 +61,7 @@ my %features = (
"static" => "build static library",
"wayland" => "enable wayland backend",
"gnustep" => "use gnustep",
"dbus" => "use DBus on supported platform"
);
my @features_keys = (
"1classic-theme", "1stb-image",
@ -68,6 +70,7 @@ my @features_keys = (
"1vulkan", "2vulkan-string-helper",
"1shared", "1static",
"1wayland", "1gnustep",
"1dbus"
);
foreach my $l (@ARGV) {

View file

@ -241,8 +241,8 @@ int main() {
MwNhasHeading, 1,
NULL);
w = child(f);
index = MwListBoxInsert(w, -1, 0, "Epic title...");
index = MwListBoxInsert(w, -1, 0, "Hello");
index = MwListBoxSet(w, -1, 0, "Epic title...");
index = MwListBoxSet(w, -1, 0, "Hello");
add(f);
f = frame("NumberEntry", -PaddingContent, 24, MwNumberEntryClass, NULL);

View file

@ -19,7 +19,7 @@ extern "C" {
MWDECL MwClass MwListBoxClass;
/*!
* @brief Inserts item on the listbox
* @brief Sets item on the listbox
* @param handle Widget
* @param row Row
* @param col Column

View file

@ -60,6 +60,10 @@ if (grep(/^wayland$/, @backends)) {
$gl_libs = "-lGL -lGLU";
}
if (not(param_get("dbus"))) {
$cflags =~ s/( |^)-DUSE_DBUS( |$)/ /;
}
if (grep(/( |^)-DUSE_DBUS( |$)/, $cflags)) {
add_cflags(`pkg-config --cflags dbus-1`);
}