[epiphany] Revert "Dramatically shrink the location entry"



commit 7ee2b9973cb1dfe55872336c819588ed361d9e7a
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Wed Jan 18 17:15:20 2017 +0100

    Revert "Dramatically shrink the location entry"
    
    This reverts commit cce7462b78b05fbf1a2cf960f8b4ef2d1cc86b07.
    It made the location entry so small that is quite annoying to use now.

 lib/widgets/ephy-location-entry.c |    4 ++--
 src/ephy-header-bar.c             |   10 ++++------
 2 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index ae2d4c0..72b7e12 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -308,10 +308,10 @@ ephy_location_entry_get_preferred_width (GtkWidget *widget,
                                          gint      *natural_width)
 {
   if (minimum_width)
-    *minimum_width = 240;
+    *minimum_width = -1;
 
   if (natural_width)
-    *natural_width = 480;
+    *natural_width = 848;
 }
 
 static void
diff --git a/src/ephy-header-bar.c b/src/ephy-header-bar.c
index 46ca290..d54683d 100644
--- a/src/ephy-header-bar.c
+++ b/src/ephy-header-bar.c
@@ -717,14 +717,12 @@ ephy_header_bar_constructed (GObject *object)
   }
 
   /* Title widget (location entry or title box) */
-  if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION) {
+  if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION)
     header_bar->title_widget = EPHY_TITLE_WIDGET (ephy_title_box_new ());
-  } else {
+  else
     header_bar->title_widget = EPHY_TITLE_WIDGET (ephy_location_entry_new ());
-    gtk_widget_set_margin_start (GTK_WIDGET (header_bar->title_widget), 30);
-    gtk_widget_set_margin_end (GTK_WIDGET (header_bar->title_widget), 30);
-  }
-
+  gtk_widget_set_margin_start (GTK_WIDGET (header_bar->title_widget), 54);
+  gtk_widget_set_margin_end (GTK_WIDGET (header_bar->title_widget), 54);
   gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header_bar), GTK_WIDGET (header_bar->title_widget));
   gtk_widget_show (GTK_WIDGET (header_bar->title_widget));
 


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