[epiphany/wip/bookmarks: 283/315] bookmarks-popover: Fix tooltip positioning



commit e8af76716d303a6d90c1781ea64ab8c3f6a622fb
Author: Iulian Radu <iulian radu67 gmail com>
Date:   Mon Aug 22 19:50:06 2016 +0300

    bookmarks-popover: Fix tooltip positioning

 src/ephy-header-bar.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index f2f6c15..4ca39a7 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -621,6 +621,12 @@ add_bookmark_button_clicked_cb (EphyLocationEntry *entry,
   gtk_entry_get_icon_area (GTK_ENTRY (entry),
                            GTK_ENTRY_ICON_SECONDARY,
                            &rectangle);
+
+  /* FIXME: GTK+ sets "margin-left: 6px" for the icon. Add 3px to the
+   * rectangle so the popover is centered on the star.
+   */
+  rectangle.x = rectangle.x + 3;
+
   gtk_popover_set_pointing_to (GTK_POPOVER (popover), &rectangle);
   grid = ephy_bookmark_properties_grid_new (bookmark,
                                             EPHY_BOOKMARK_PROPERTIES_GRID_TYPE_POPOVER,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]