[libadwaita] Revert "Revert "main: Make adw_init() call gtk_init()""
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] Revert "Revert "main: Make adw_init() call gtk_init()""
- Date: Tue, 2 Nov 2021 19:32:37 +0000 (UTC)
commit 0cb4b5e760c6548e5b173df1746669a47cb70bda
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 2 19:32:37 2021 +0000
Revert "Revert "main: Make adw_init() call gtk_init()""
This reverts commit 51da3e60c8a154b2f0e07bb086fcaf200a286017
src/adw-main.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/adw-main.c b/src/adw-main.c
index e2d01919..f2147f84 100644
--- a/src/adw-main.c
+++ b/src/adw-main.c
@@ -18,9 +18,8 @@ static int adw_initialized = FALSE;
*
* Initializes Libadwaita.
*
- * 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.
+ * This function can be used instead of [func Gtk init] as it initializes GTK
+ * implicitly.
*
* There's no need to call this function if you're using [class@Adw.Application].
*
@@ -37,6 +36,8 @@ 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]