![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#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) |
| 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().
| void dt_tagging_completion_refresh | ( | GtkListStore * | store | ) |
Replace a completion model's contents with the current tag vocabulary.
Definition at line 26 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, |
| 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().