diff options
author | Cody Russell <crussell@canonical.com> | 2010-02-04 13:03:56 -0800 |
---|---|---|
committer | Cody Russell <crussell@canonical.com> | 2010-02-04 13:03:56 -0800 |
commit | d9fc8cf4dfc7167dbb599ccbb3949ac5ae0d79ca (patch) | |
tree | 82e53ff85c30fceb18a771da21a0d5cafb3a672c /src/idoentrymenuitem.c | |
parent | 6b60795c55e28c06ec6c270d29ac95adb711329b (diff) | |
parent | 9f3461cc1e09958f517ca1cbc7208640c79da5fe (diff) | |
download | ayatana-ido-d9fc8cf4dfc7167dbb599ccbb3949ac5ae0d79ca.tar.gz ayatana-ido-d9fc8cf4dfc7167dbb599ccbb3949ac5ae0d79ca.tar.bz2 ayatana-ido-d9fc8cf4dfc7167dbb599ccbb3949ac5ae0d79ca.zip |
Merge spacing-fixes branch
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r-- | src/idoentrymenuitem.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c index 1d5bd54..fdcc7d0 100644 --- a/src/idoentrymenuitem.c +++ b/src/idoentrymenuitem.c @@ -41,6 +41,7 @@ static void entry_move_focus_cb (GtkWidget *widget, struct _IdoEntryMenuItemPrivate { + GtkWidget *box; GtkWidget *entry; gboolean selected; }; @@ -77,10 +78,19 @@ static void ido_entry_menu_item_init (IdoEntryMenuItem *item) { IdoEntryMenuItemPrivate *priv; + GtkBorder border; + + border.left = 4; + border.right = 4; + border.top = 2; + border.bottom = 2; priv = item->priv = IDO_ENTRY_MENU_ITEM_GET_PRIVATE (item); - priv->entry = gtk_entry_new (); + priv->entry = g_object_new (gtk_entry_get_type (), + "inner-border", &border, + NULL); + g_signal_connect (priv->entry, "realize", G_CALLBACK (entry_realized_cb), @@ -90,11 +100,12 @@ ido_entry_menu_item_init (IdoEntryMenuItem *item) G_CALLBACK (entry_move_focus_cb), item); - gtk_widget_set_size_request (priv->entry, 100, -1); + priv->box = gtk_hbox_new (FALSE, 0); + gtk_box_pack_start (GTK_BOX (priv->box), priv->entry, FALSE, FALSE, 0); - gtk_container_add (GTK_CONTAINER (item), priv->entry); + gtk_container_add (GTK_CONTAINER (item), priv->box); - gtk_widget_show (priv->entry); + gtk_widget_show_all (priv->box); } static gboolean |