Skip to content

Commit b9d797f

Browse files
committed
fix api level code
1 parent a8b64e6 commit b9d797f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/headerbarui.c

+4
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,10 @@ void window_init_hook (void *userdata) {
491491
G_CALLBACK(mainwindow_resize),
492492
NULL);
493493

494+
#if (DDB_API_LEVEL >= 10)
494495
if (deadbeef->vmajor>=1 && deadbeef->vminor >= 10)
495496
deadbeef->log_detailed(&plugin.plugin, DDB_LOG_LAYER_INFO, "GTK3 Headerbar plugin loaded.");
497+
#endif
496498
}
497499

498500

@@ -611,7 +613,9 @@ static DB_misc_t plugin = {
611613
.plugin.type = DB_PLUGIN_MISC,
612614
.plugin.api_vmajor = 1,
613615
.plugin.api_vminor = 9, // using 10 apis if available
616+
#if (DDB_API_LEVEL >= 10)
614617
.plugin.flags = DDB_PLUGIN_FLAG_LOGGING,
618+
#endif
615619
.plugin.version_major = 1,
616620
.plugin.version_minor = 0,
617621
.plugin.id = "headerbarui_gtk3",

0 commit comments

Comments
 (0)