mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
Added gtk_entry_completion_new_with_area()
This commit is contained in:
parent
96d636a780
commit
623abdedf6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user