diff options
author | Jonathan Blandford <jrb@gnome.org> | 2004-03-11 06:08:28 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2004-03-11 06:08:28 +0000 |
commit | 976647fdd4a6f3048aee6f9c055e6397a9095005 (patch) | |
tree | c11d3ed5c6f088662670df85ec5ca93bc84ccbd8 /gtk/gtkfilechooserentry.c | |
parent | f01a9050f4b2861edf6d19347f39282d37c9036b (diff) | |
download | gtk+-976647fdd4a6f3048aee6f9c055e6397a9095005.tar.gz |
up the width of the entry a tad.
Thu Mar 11 01:08:25 2004 Jonathan Blandford <jrb@gnome.org>
* 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.
Diffstat (limited to 'gtk/gtkfilechooserentry.c')
-rw-r--r-- | gtk/gtkfilechooserentry.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); |