From 905128cc6903b37e8672c2945076932fbd6918ec Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Thu, 7 Jul 2022 12:12:57 -0400 Subject: [PATCH] event-editor: Use AdwEntryRow --- meson.build | 2 +- src/gui/event-editor/gcal-summary-section.c | 24 ---------------- src/gui/event-editor/gcal-summary-section.ui | 30 ++++++-------------- 3 files changed, 9 insertions(+), 47 deletions(-) diff --git a/meson.build b/meson.build index 0e9222be..52f1727a 100644 --- a/meson.build +++ b/meson.build @@ -163,7 +163,7 @@ libedataserverui_dep = dependency('libedataserverui4-1.0', version: '>= 3.45.1') libedataserver_dep = dependency('libedataserver-1.2', version: '>= 3.45.1') libecal_dep = dependency('libecal-2.0', version: '>= 3.45.1') libsoup_dep = dependency('libsoup-3.0') -libadwaita_dep = dependency('libadwaita-1', version: '>= 1.0.0') +libadwaita_dep = dependency('libadwaita-1', version: '>= 1.2.alpha') glib_dep = dependency('glib-2.0', version: '>= 2.67.5') gtk_dep = dependency('gtk4', version: '>= 4.6.0') gio_dep = dependency('gio-2.0', version: '>= 2.58.0') diff --git a/src/gui/event-editor/gcal-summary-section.c b/src/gui/event-editor/gcal-summary-section.c index 220669ea..401a8c9b 100644 --- a/src/gui/event-editor/gcal-summary-section.c +++ b/src/gui/event-editor/gcal-summary-section.c @@ -51,27 +51,6 @@ enum N_PROPS }; -/* - * Auxiliary methods - */ - -static void -make_entry_expandable (GtkEditable *entry) -{ - GtkWidget *child; - - for (child = gtk_widget_get_first_child (GTK_WIDGET (entry)); - child; - child = gtk_widget_get_next_sibling (child)) - { - if (!GTK_IS_TEXT (child)) - continue; - - gtk_text_set_propagate_text_width (GTK_TEXT (child), TRUE); - } -} - - /* * GcalEventEditorSection interface */ @@ -204,7 +183,4 @@ static void gcal_summary_section_init (GcalSummarySection *self) { gtk_widget_init_template (GTK_WIDGET (self)); - - make_entry_expandable (self->location_entry); - make_entry_expandable (self->summary_entry); } diff --git a/src/gui/event-editor/gcal-summary-section.ui b/src/gui/event-editor/gcal-summary-section.ui index 33d7b2bf..b427567d 100644 --- a/src/gui/event-editor/gcal-summary-section.ui +++ b/src/gui/event-editor/gcal-summary-section.ui @@ -12,37 +12,23 @@ - + Title - summary_entry - - - - True - end - center - 20 - 30 - - - - + Location - location_entry - - - True - end + + center - 20 - 30 - find-location-symbolic + find-location-symbolic +