Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
yad
Commits
ce491748
Commit
ce491748
authored
Apr 21, 2021
by
Victor Ananjevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
place cursor at the beggining of a buffer when file is loaded in text-info dialog
parent
de7bee2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
text.c
src/text.c
+7
-0
No files found.
src/text.c
View file @
ce491748
...
...
@@ -579,6 +579,13 @@ fill_buffer_from_file ()
lang
=
gtk_source_language_manager_guess_language
(
gtk_source_language_manager_get_default
(),
options
.
common_data
.
uri
,
NULL
);
gtk_source_buffer_set_language
(
GTK_SOURCE_BUFFER
(
text_buffer
),
lang
);
#endif
if
(
options
.
common_data
.
editable
)
{
/* move cursor at the beginnging of a buffer */
gtk_text_buffer_get_iter_at_offset
(
GTK_TEXT_BUFFER
(
text_buffer
),
&
iter
,
0
);
gtk_text_buffer_place_cursor
(
GTK_TEXT_BUFFER
(
text_buffer
),
&
iter
);
}
}
static
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment