aboutsummaryrefslogtreecommitdiff
path: root/src/idoentrymenuitem.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-02-04 12:32:28 -0800
committerCody Russell <crussell@canonical.com>2010-02-04 12:32:28 -0800
commit9f3461cc1e09958f517ca1cbc7208640c79da5fe (patch)
tree82e53ff85c30fceb18a771da21a0d5cafb3a672c /src/idoentrymenuitem.c
parent6b60795c55e28c06ec6c270d29ac95adb711329b (diff)
downloadayatana-ido-9f3461cc1e09958f517ca1cbc7208640c79da5fe.tar.gz
ayatana-ido-9f3461cc1e09958f517ca1cbc7208640c79da5fe.tar.bz2
ayatana-ido-9f3461cc1e09958f517ca1cbc7208640c79da5fe.zip
Spacing fixes
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r--src/idoentrymenuitem.c19
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