[epiphany] ephy-location-entry: Set default size and allow to reduced the entry
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-location-entry: Set default size and allow to reduced the entry
- Date: Fri, 8 Nov 2013 13:55:40 +0000 (UTC)
commit 46b8f9f5a61fbd7cd1f78d4b3987b3dc0d267cc8
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Fri Nov 8 15:53:18 2013 +0200
ephy-location-entry: Set default size and allow to reduced the entry
https://bugzilla.gnome.org/show_bug.cgi?id=708994
lib/widgets/ephy-location-entry.c | 14 ++++++++++++++
src/ephy-toolbar.c | 1 -
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 0fbf9e4..577011c 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -202,13 +202,27 @@ ephy_location_entry_finalize (GObject *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:
diff --git a/src/ephy-toolbar.c b/src/ephy-toolbar.c
index e4a8098..785bea0 100644
--- a/src/ephy-toolbar.c
+++ b/src/ephy-toolbar.c
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]