Commit 46b8f9f5 authored by Yosef Or Boczko's avatar Yosef Or Boczko
Browse files

ephy-location-entry: Set default size and allow to reduced the entry

https://bugzilla.gnome.org/show_bug.cgi?id=708994
parent 24b9335b
......@@ -201,14 +201,28 @@ ephy_location_entry_finalize (GObject *object)
G_OBJECT_CLASS (ephy_location_entry_parent_class)->finalize (object);
}
static void
ephy_location_entry_get_preferred_width (GtkWidget *widget,
gint *minimum_width,
gint *natural_width)
{
if (minimum_width)
*minimum_width = -1;
if (natural_width)
*natural_width = 518;
}
static void
ephy_location_entry_class_init (EphyLocationEntryClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
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;
widget_class->get_preferred_width = ephy_location_entry_get_preferred_width;
/**
* EphyLocationEntry:location:
......
......@@ -145,7 +145,6 @@ ephy_toolbar_constructed (GObject *object)
/* Location and Reload/Stop */
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_set_size_request (box, 530, -1);
gtk_widget_set_halign (box, GTK_ALIGN_CENTER);
/* Location */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment