[libadwaita] Revert "main: Make adw_init() call gtk_init()"
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] Revert "main: Make adw_init() call gtk_init()"
- Date: Tue, 2 Nov 2021 19:21:48 +0000 (UTC)
commit 51da3e60c8a154b2f0e07bb086fcaf200a286017
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 2 19:21:48 2021 +0000
Revert "main: Make adw_init() call gtk_init()"
This reverts commit 56fac87f0679a3e262499df5a91be2e7f17e8418
src/adw-main.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/adw-main.c b/src/adw-main.c
index f2147f84..e2d01919 100644
--- a/src/adw-main.c
+++ b/src/adw-main.c
@@ -18,8 +18,9 @@ static int adw_initialized = FALSE;
*
* Initializes Libadwaita.
*
- * This function can be used instead of [func Gtk init] as it initializes GTK
- * implicitly.
+ * Call this function just after initializing GTK, if you are using
+ * [class@Gtk.Application] it means it must be called when the
+ * [signal@Gio.Application::startup] signal is emitted.
*
* There's no need to call this function if you're using [class@Adw.Application].
*
@@ -36,8 +37,6 @@ adw_init (void)
if (adw_initialized)
return;
- gtk_init ();
-
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
adw_init_public_types ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]