From 976647fdd4a6f3048aee6f9c055e6397a9095005 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Thu, 11 Mar 2004 06:08:28 +0000 Subject: up the width of the entry a tad. Thu Mar 11 01:08:25 2004 Jonathan Blandford * gtk/gtkfilechooserdefault.c (location_entry_create): up the width of the entry a tad. * gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_init): use gtk_entry_completion_selection_changed. Also, unref the completion as we were leaking a reference to it. --- gtk/gtkfilechooserentry.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gtk/gtkfilechooserentry.c') diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c index 72df4a5043..6235e0d82b 100644 --- a/gtk/gtkfilechooserentry.c +++ b/gtk/gtkfilechooserentry.c @@ -153,12 +153,10 @@ gtk_file_chooser_entry_init (GtkFileChooserEntry *chooser_entry) completion_match_func, chooser_entry, NULL); - - renderer = gtk_cell_renderer_text_new (); - gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (comp), renderer, TRUE); - gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (comp), renderer, "text", 0); + gtk_entry_completion_set_text_column (comp, 0); gtk_entry_set_completion (GTK_ENTRY (chooser_entry), comp); + g_object_unref (comp); g_signal_connect (chooser_entry, "notify::cursor-position", G_CALLBACK (clear_completion_callback), NULL); -- cgit v1.2.1