mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-20 04:30:18 +00:00
Made GTK3 AppIndicator dependencies optional and only define AppIndicator macros when the dependency is found.
Added compile-time selection to use AppIndicator when available and fall back to GtkStatusIcon otherwise, keeping the status-icon backend available for non-AppIndicator builds (including GTK3 fallback).
This commit is contained in:
@@ -45,9 +45,11 @@ if get_option('gtk3')
|
|||||||
zoitechat_gtk_deps += appindicator_dep
|
zoitechat_gtk_deps += appindicator_dep
|
||||||
zoitechat_gtk_cflags += '-DHAVE_AYATANA_APPINDICATOR'
|
zoitechat_gtk_cflags += '-DHAVE_AYATANA_APPINDICATOR'
|
||||||
else
|
else
|
||||||
appindicator_dep = dependency('appindicator3-0.1', required: true)
|
appindicator_dep = dependency('appindicator3-0.1', required: false)
|
||||||
zoitechat_gtk_deps += appindicator_dep
|
if appindicator_dep.found()
|
||||||
zoitechat_gtk_cflags += '-DHAVE_APPINDICATOR'
|
zoitechat_gtk_deps += appindicator_dep
|
||||||
|
zoitechat_gtk_cflags += '-DHAVE_APPINDICATOR'
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user