geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

navqueue.h File Reference

Simple code navigation. More...

#include "document.h"
#include <glib.h>
Include dependency graph for navqueue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

gboolean navqueue_goto_line (GeanyDocument *old_doc, GeanyDocument *new_doc, gint line)
 Adds old file position and new file position to the navqueue, then goes to the new position. More...
 

Detailed Description

Simple code navigation.

Definition in file navqueue.h.

Function Documentation

◆ navqueue_goto_line()

gboolean navqueue_goto_line ( GeanyDocument old_doc,
GeanyDocument new_doc,
gint  line 
)

Adds old file position and new file position to the navqueue, then goes to the new position.

Parameters
old_docThe document of the previous position, if set as invalid (NULL) then no old position is set
new_docThe document of the new position, must be valid.
linethe line number of the new position. It is counted with 1 as the first line, not 0.
Returns
TRUE if the cursor has changed the position to line or FALSE otherwise.

Definition at line 151 of file navqueue.c.

References add_new_position(), DOC_VALID, GeanyDocument::editor, editor_goto_pos(), GeanyDocument::file_name, GeanyDocument::is_valid, line, NULL, pos, GeanyEditor::sci, sci_get_current_position(), and sci_get_position_from_line().

Referenced by goto_compiler_file_line(), goto_tag(), msgwin_goto_messages_file_line(), on_goto_popup_item_activate(), and taglist_go_to_selection().