Can I change how gedit prints its page header?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I'm often using gedit
to print text documents. One thing I don't like is that it prints the full path to the document inside the page header, which sometimes overlaps what's in the top right corner; I'd like it to print the file name only.
Can that be done?
linux printing gedit
add a comment |Â
up vote
2
down vote
favorite
I'm often using gedit
to print text documents. One thing I don't like is that it prints the full path to the document inside the page header, which sometimes overlaps what's in the top right corner; I'd like it to print the file name only.
Can that be done?
linux printing gedit
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I'm often using gedit
to print text documents. One thing I don't like is that it prints the full path to the document inside the page header, which sometimes overlaps what's in the top right corner; I'd like it to print the file name only.
Can that be done?
linux printing gedit
I'm often using gedit
to print text documents. One thing I don't like is that it prints the full path to the document inside the page header, which sometimes overlaps what's in the top right corner; I'd like it to print the file name only.
Can that be done?
linux printing gedit
edited Nov 27 '17 at 11:10
asked Nov 27 '17 at 10:54
user86969
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
0
down vote
accepted
The code for this is
return g_file_get_parse_name (location);
in a function
gedit_document_get_uri_for_display:
that would need to be changed and gedit rebuilt or a PR created.
add a comment |Â
up vote
0
down vote
No. This seems to be hardcoded in the source code here.
You can, however, omit the entire page header by deselecting the checkbox Print page headers in the tab Text Editor under section Page header of the printing dialogue.
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
The code for this is
return g_file_get_parse_name (location);
in a function
gedit_document_get_uri_for_display:
that would need to be changed and gedit rebuilt or a PR created.
add a comment |Â
up vote
0
down vote
accepted
The code for this is
return g_file_get_parse_name (location);
in a function
gedit_document_get_uri_for_display:
that would need to be changed and gedit rebuilt or a PR created.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The code for this is
return g_file_get_parse_name (location);
in a function
gedit_document_get_uri_for_display:
that would need to be changed and gedit rebuilt or a PR created.
The code for this is
return g_file_get_parse_name (location);
in a function
gedit_document_get_uri_for_display:
that would need to be changed and gedit rebuilt or a PR created.
answered Nov 27 '17 at 12:31
Chris Hill
3513
3513
add a comment |Â
add a comment |Â
up vote
0
down vote
No. This seems to be hardcoded in the source code here.
You can, however, omit the entire page header by deselecting the checkbox Print page headers in the tab Text Editor under section Page header of the printing dialogue.
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
add a comment |Â
up vote
0
down vote
No. This seems to be hardcoded in the source code here.
You can, however, omit the entire page header by deselecting the checkbox Print page headers in the tab Text Editor under section Page header of the printing dialogue.
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
add a comment |Â
up vote
0
down vote
up vote
0
down vote
No. This seems to be hardcoded in the source code here.
You can, however, omit the entire page header by deselecting the checkbox Print page headers in the tab Text Editor under section Page header of the printing dialogue.
No. This seems to be hardcoded in the source code here.
You can, however, omit the entire page header by deselecting the checkbox Print page headers in the tab Text Editor under section Page header of the printing dialogue.
edited Nov 27 '17 at 12:26
answered Nov 27 '17 at 12:19
Richard Neumann
489211
489211
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
add a comment |Â
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
I'm torn. I'd like to accept both answers because they fit different valid contexts for my question, only one of which I had considered, aka the user standpoint to which there's only configuration files to change applications behaviour. @chris-hill gives a perfectly valid answer for a developer or more-advanced-user. Would you guys mind merging your answers?
â user86969
Nov 28 '17 at 12:24
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Chris Hill copied the content from the link to the source code I provided and explained the usual procedure of a feature request in FLOSS development. If this anwers your question, go ahead and accept it. I don't mind.
â Richard Neumann
Nov 28 '17 at 12:40
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
Call it a deal :-) .
â user86969
Nov 28 '17 at 13:39
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407259%2fcan-i-change-how-gedit-prints-its-page-header%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password