Files | |
file | gitkcontext.c |
libgitk context functions | |
file | gitkcontext.h |
libgitk context functions | |
Functions | |
GitkDialogPtr | gitk_context_activate (void) |
if there is just one context at highest priority then select it otherwise return NULL. | |
gint | gitk_context_count_active (void) |
counts the number of active contexts. If there is a modal context or if there is just one context then select it. | |
GitkDialogPtr | gitk_context_get_current (void) |
gets the currently active context | |
gint | gitk_context_get_highest_used_priority (void) |
iterates over context list and returns the highest priority | |
void | gitk_context_set_current (GitkDialogPtr const new_context) |
sets the currently active context | |
Variables | |
GitkDialogPtr | cur_context |
current context, show all contexts of highest priority if NULL or use one if there is only one | |
GitkDialogPtr | cur_context = NULL |
current context, show all contexts of highest priority if NULL or use one if there is only one |
|
if there is just one context at highest priority then select it otherwise return NULL.
Definition at line 68 of file gitkcontext.c. References cur_context, gitk_dialog_list, gitk_log, gitk_log1, GitkDialogPtr, and GitkDialog::priority. Referenced by gitkr_set_context(), and test_gitk_dialog_show_2(). |
|
counts the number of active contexts. If there is a modal context or if there is just one context then select it.
Definition at line 28 of file gitkcontext.c. References cur_context, gitk_dialog_list, gitk_log, and GitkDialogPtr. |
|
gets the currently active context
Definition at line 124 of file gitkcontext.c. References cur_context, and GitkDialogPtr. Referenced by gitkr_event_loop_start(). |
|
iterates over context list and returns the highest priority
Definition at line 100 of file gitkcontext.c. References gitk_dialog_list, gitk_log, gitk_log1, GitkDialogPtr, and GitkDialog::priority. Referenced by gitk_dialog_show(), and test_gitk_dialog_show_1(). |
|
sets the currently active context
Definition at line 132 of file gitkcontext.c. References cur_context, and GitkDialogPtr. Referenced by gitkr_select_context(). |
|
current context, show all contexts of highest priority if NULL or use one if there is only one
Definition at line 45 of file gitkglobal.h. |
|
current context, show all contexts of highest priority if NULL or use one if there is only one
Definition at line 99 of file gitkglobal.c. Referenced by gitk_context_activate(), gitk_context_count_active(), gitk_context_get_current(), gitk_context_set_current(), gitkr_event_loop_start(), gitkr_render(), gitkr_set_context(), handle_dialog_ctrl_widgets(), handle_dialog_main_widgets(), next_page(), next_widget(), prev_page(), prev_widget(), and sighandler_on_sigwinch(). |