Can I change how gedit prints its page header?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question


























    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?







    share|improve this question
























      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?







      share|improve this question














      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?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 '17 at 11:10

























      asked Nov 27 '17 at 10:54







      user86969



























          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.






          share|improve this answer



























            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.






            share|improve this answer






















            • 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










            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            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





























            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.






            share|improve this answer
























              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.






              share|improve this answer






















                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 27 '17 at 12:31









                Chris Hill

                3513




                3513






















                    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.






                    share|improve this answer






















                    • 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














                    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.






                    share|improve this answer






















                    • 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












                    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.






                    share|improve this answer














                    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.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    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
















                    • 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

















                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay