[gtranslator: 1/15] utils: Create tmp api to help gtk4 migration
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator: 1/15] utils: Create tmp api to help gtk4 migration
- Date: Mon, 28 Mar 2022 07:36:15 +0000 (UTC)
commit df7870d0acea85e962be0ce613b46c972678e604
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Wed Mar 16 10:32:22 2022 +0100
utils: Create tmp api to help gtk4 migration
This will reduce th number of changes in the gtk4 port.
src/gtr-utils.c | 6 ++++++
src/gtr-utils.h | 2 ++
2 files changed, 8 insertions(+)
---
diff --git a/src/gtr-utils.c b/src/gtr-utils.c
index 13cef40e..8e5d549a 100644
--- a/src/gtr-utils.c
+++ b/src/gtr-utils.c
@@ -800,3 +800,9 @@ pango_font_description_to_css (PangoFontDescription *desc)
return g_string_free (s, FALSE);
}
+
+void
+gtk_box_append (GtkBox *box, GtkWidget *child)
+{
+ gtk_container_add (GTK_CONTAINER (box), child);
+}
diff --git a/src/gtr-utils.h b/src/gtr-utils.h
index 0a411b92..eac14a96 100644
--- a/src/gtr-utils.h
+++ b/src/gtr-utils.h
@@ -80,4 +80,6 @@ void gtr_utils_menu_position_under_tree_view (GtkMenu * menu,
gchar * gtr_utils_get_filename (const gchar * filename);
gchar * pango_font_description_to_css (PangoFontDescription *desc);
+
+ void gtk_box_append (GtkBox *box, GtkWidget *child);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]