[epiphany/wip/dazzle: 7/10] Expand suggestion entry to full width of window



commit 6450da42baff9fdae684f32202fa6498217346f2
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 |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 7142222..d9987c7 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -265,6 +265,16 @@ 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);
+}
+
+static void
 ephy_location_entry_finalize (GObject *object)
 {
   EphyLocationEntry *entry = EPHY_LOCATION_ENTRY (object);
@@ -372,6 +382,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->finalize = ephy_location_entry_finalize;


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