![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "libs/tagging_completion.h"#include "metadata/tags.h"#include "system/macros.h"#include "system/mem_alloc.h"
Include dependency graph for tagging_completion.c: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) |
| 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 41 of file tagging_completion.c.
References dt_free, FALSE, model, and TRUE.
Referenced by _lib_tagging_tag_show_accel(), _setup_completion(), and gui_init().
| void dt_tagging_completion_refresh | ( | GtkListStore * | store | ) |
Replace a completion model's contents with the current tag vocabulary.
Definition at line 25 of file tagging_completion.c.
References dt_tag_free_result(), dt_tag_get_with_usage(), IS_NULL_PTR, and store.
Referenced by _apply_rename_path(), _create_tag_from_entry(), _delete_tagids(), _detach_tagids(), _lib_tagging_tag_key_press(), _lib_tagging_tag_redo_accel(), _lib_tagging_tags_changed_callback(), _pop_menu_dictionary_create_tag(), _pop_menu_dictionary_delete_node(), _pop_menu_dictionary_edit_tag(), _pop_menu_dictionary_set_as_tag(), gui_init(), and test_refresh_exposes_new_hierarchical_tag().
| void dt_tagging_entry_clear | ( | GtkEntry * | entry | ) |
Cancel pending completion work and clear an entry while preserving its completion.
Definition at line 71 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().