[epiphany/wip/exalm/elementary2] location-entry: Set width-chars to 0



commit 3c5bafd947b258b1289d96d192579d4a9bfdabad
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Sep 30 19:33:11 2019 +0500

    location-entry: Set width-chars to 0
    
    Since the entry is overlaid by icons, if it gets too small, the minimum
    width causes overlapping. Make minimum width as small as possible to
    prevent that.
    
    Fixes https://gitlab.gnome.org/GNOME/epiphany/issues/940

 lib/widgets/ephy-location-entry.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 66ebfabf3..c36581945 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -916,6 +916,7 @@ ephy_location_entry_construct_contents (EphyLocationEntry *entry)
   entry->url_entry = dzl_suggestion_entry_new ();
   dzl_suggestion_entry_set_position_func (DZL_SUGGESTION_ENTRY (entry->url_entry), position_func, NULL, 
NULL);
   gtk_entry_set_icon_tooltip_text (GTK_ENTRY (entry->url_entry), GTK_ENTRY_ICON_PRIMARY, _("Show website 
security status and permissions"));
+  gtk_entry_set_width_chars (GTK_ENTRY (entry->url_entry), 0);
 
   /* Add special widget css provider */
   context = gtk_widget_get_style_context (GTK_WIDGET (entry->url_entry));


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