Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
tagging_completion.h File Reference
#include <gtk/gtk.h>
+ Include dependency graph for tagging_completion.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void dt_tagging_completion_refresh (GtkListStore *store)
 
gboolean dt_tagging_completion_match_selected (GtkEntryCompletion *completion, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data)
 
void dt_tagging_entry_clear (GtkEntry *entry, GCallback key_handler, gpointer user_data)
 

Function Documentation

◆ dt_tagging_completion_match_selected()

gboolean dt_tagging_completion_match_selected ( GtkEntryCompletion *  completion,
GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  user_data 
)

Replace the active comma-separated token with the selected completion row.

Definition at line 42 of file tagging_completion.c.

References dt_free, FALSE, model, and TRUE.

Referenced by _lib_tagging_tag_show_accel(), _setup_completion(), and gui_init().

◆ dt_tagging_completion_refresh()

◆ dt_tagging_entry_clear()

void dt_tagging_entry_clear ( GtkEntry *  entry,
GCallback  key_handler,
gpointer  user_data 
)

Cancel pending completion work and clear an entry while preserving its completion.

Reattaching the completion connects its key handler after every other handler on the entry. key_handler, when connected on the entry's "key-press-event" with user_data, is reconnected after it, so the completion still answers first the keys its popup owns. NULL when the entry has no key handler of its own.

Definition at line 72 of file tagging_completion.c.

References IS_NULL_PTR.

Referenced by _entry_clear_suppressed(), test_clear_cancels_completion_before_model_refresh(), test_clear_supports_entry_without_completion(), test_completion_keeps_return_priority_after_reattach(), and test_completion_survives_repeated_single_and_hierarchical_clears().