[epiphany] Expand suggestion entry to full width of window



commit efd1e7911c580a3f3a5263193d6d15e2a53c9389
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sun Aug 27 19:58:56 2017 -0500

    Expand suggestion entry to full width of window
    
    Razzle dazzle!

 lib/widgets/ephy-location-entry.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index f58c558..bb57dad 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -267,8 +267,12 @@ ephy_location_entry_get_property (GObject    *object,
 static void
 ephy_location_entry_constructed (GObject *object)
 {
+  EphyLocationEntry *entry = EPHY_LOCATION_ENTRY (object);
+
   G_OBJECT_CLASS (ephy_location_entry_parent_class)->constructed (object);
 
+  dzl_suggestion_entry_set_position_func (DZL_SUGGESTION_ENTRY (entry), 
dzl_suggestion_entry_window_position_func, NULL, NULL);
+
 #if GTK_CHECK_VERSION(3, 22, 20)
   gtk_entry_set_input_hints (GTK_ENTRY (object), GTK_INPUT_HINT_NO_EMOJI);
 #endif
@@ -382,6 +386,7 @@ ephy_location_entry_class_init (EphyLocationEntryClass *klass)
   GtkEntryClass *entry_class = GTK_ENTRY_CLASS (klass);
   DzlSuggestionEntryClass *dzl_entry_class = DZL_SUGGESTION_ENTRY_CLASS (klass);
 
+  object_class->constructed = ephy_location_entry_constructed;
   object_class->get_property = ephy_location_entry_get_property;
   object_class->set_property = ephy_location_entry_set_property;
   object_class->constructed = ephy_location_entry_constructed;


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