Added gtk_entry_completion_new_with_area()

This commit is contained in:
Tristan Van Berkom 2010-12-13 15:58:07 +09:00
parent 96d636a780
commit 623abdedf6
4 changed files with 26 additions and 0 deletions

View File

@ -1119,6 +1119,7 @@ gtk_entry_buffer_get_type
GtkEntryCompletion
GtkEntryCompletionMatchFunc
gtk_entry_completion_new
gtk_entry_completion_new_with_area
gtk_entry_completion_get_entry
gtk_entry_completion_set_model
gtk_entry_completion_get_model

View File

@ -798,6 +798,7 @@ gtk_entry_completion_insert_action_markup
gtk_entry_completion_insert_action_text
gtk_entry_completion_insert_prefix
gtk_entry_completion_new
gtk_entry_completion_new_with_area
gtk_entry_completion_set_inline_completion
gtk_entry_completion_set_inline_selection
gtk_entry_completion_set_match_func

View File

@ -995,6 +995,28 @@ gtk_entry_completion_new (void)
return completion;
}
/**
* gtk_entry_completion_new_with_area:
* @area: the #GtkCellArea used to layout cells
*
* Creates a new #GtkEntryCompletion object using the
* specified @area to layout cells in the underlying
* #GtkTreeViewColumn for the drop-down menu.
*
* Return value: A newly created #GtkEntryCompletion object.
*
* Since: 3.0
*/
GtkEntryCompletion *
gtk_entry_completion_new_with_area (GtkCellArea *area)
{
GtkEntryCompletion *completion;
completion = g_object_new (GTK_TYPE_ENTRY_COMPLETION, "cell-area", area, NULL);
return completion;
}
/**
* gtk_entry_completion_get_entry:
* @completion: A #GtkEntryCompletion.

View File

@ -26,6 +26,7 @@
#include <gtk/gtktreemodel.h>
#include <gtk/gtkliststore.h>
#include <gtk/gtkcellarea.h>
#include <gtk/gtktreeviewcolumn.h>
#include <gtk/gtktreemodelfilter.h>
@ -81,6 +82,7 @@ struct _GtkEntryCompletionClass
/* core */
GType gtk_entry_completion_get_type (void) G_GNUC_CONST;
GtkEntryCompletion *gtk_entry_completion_new (void);
GtkEntryCompletion *gtk_entry_completion_new_with_area (GtkCellArea *area);
GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion);