emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dark mode on Windows


From: Po Lu
Subject: Re: Dark mode on Windows
Date: Tue, 26 Oct 2021 10:04:52 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Btw, what about D-bus: doesn't it already allow us to act upon such
> events?

D-Bus is useless here, but GtkSettings provides several signals that can
be used as follows:

  GtkSettings *gs = /* get a GtkSettings object */.
  g_signal_connect (G_OBJECT (gs), "notify::gtk-theme-name",
                    G_CALLBACK (style_change_cb), userdata);
  g_signal_connect (G_OBJECT (gs), "notify::gtk-application-prefer-dark-theme",
                    G_CALLBACK (style_change_cb), userdata);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]