[gtk/wip/carlosg/text-handle-natives: 372/372] gtktextview: Set magnifier popover on top
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/text-handle-natives: 372/372] gtktextview: Set magnifier popover on top
- Date: Fri, 20 Mar 2020 11:32:25 +0000 (UTC)
commit 9f8dfd8aa2cdb6777d1605ec2609c04cb8ecbe39
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Mar 20 12:23:03 2020 +0100
gtktextview: Set magnifier popover on top
At the bottom, it sometimes has to fight for the same position than
text handles, besides might not be ergonomically convenient (eg.
finger/hand partly covering the popover). Move it at the top to fix
both.
gtk/gtktextview.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index c0d4f19136..432fd3a9d3 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1884,6 +1884,7 @@ _gtk_text_view_ensure_magnifier (GtkTextView *text_view)
priv->magnifier = _gtk_magnifier_new (GTK_WIDGET (text_view));
_gtk_magnifier_set_magnification (GTK_MAGNIFIER (priv->magnifier), 2.0);
priv->magnifier_popover = gtk_popover_new ();
+ gtk_popover_set_position (priv->magnifier_popover, GTK_POS_TOP);
gtk_widget_set_parent (priv->magnifier_popover, GTK_WIDGET (text_view));
gtk_widget_add_css_class (priv->magnifier_popover, "magnifier");
gtk_popover_set_autohide (GTK_POPOVER (priv->magnifier_popover), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]