[gtksourceview/gtksourceview-5-4] assistants: don't force measurements
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gtksourceview-5-4] assistants: don't force measurements
- Date: Thu, 21 Apr 2022 20:07:31 +0000 (UTC)
commit db5efed979da77da050943296b65dc0a585f6428
Author: Christian Hergert <chergert redhat com>
Date: Mon Apr 18 13:13:08 2022 -0700
assistants: don't force measurements
This code existed before the simplified gtk_popover_present()
implementation and it shouldn't be necessary anymore. It only breaks
sizing making it grow significantly anyway.
gtksourceview/gtksourceview-assistants.c | 21 ---------------------
1 file changed, 21 deletions(-)
---
diff --git a/gtksourceview/gtksourceview-assistants.c b/gtksourceview/gtksourceview-assistants.c
index d32caa12..4991765e 100644
--- a/gtksourceview/gtksourceview-assistants.c
+++ b/gtksourceview/gtksourceview-assistants.c
@@ -100,30 +100,9 @@ _gtk_source_view_assistants_size_allocate (GtkSourceViewAssistants *assistants,
for (const GList *iter = assistants->queue.head; iter; iter = iter->next)
{
GtkSourceAssistant *assistant = iter->data;
- int assistant_width;
- int assistant_height;
g_assert (GTK_SOURCE_IS_ASSISTANT (assistant));
- gtk_widget_measure (GTK_WIDGET (assistant),
- GTK_ORIENTATION_HORIZONTAL,
- -1,
- NULL,
- &assistant_width,
- NULL,
- NULL);
- gtk_widget_measure (GTK_WIDGET (assistant),
- GTK_ORIENTATION_VERTICAL,
- assistant_width,
- NULL,
- &assistant_height,
- NULL,
- NULL);
-
- gtk_widget_set_size_request (GTK_WIDGET (assistant),
- assistant_width,
- assistant_height);
-
gtk_popover_present (GTK_POPOVER (assistant));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]