[geany/geany-plugins] 803fc3: geniuspaste: Simplify getting the paste title

Colomban Wendling git-noreply at xxxxx
Sun Feb 21 08:49:42 UTC 2016


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sat, 16 Jan 2016 21:46:54 UTC
Commit:      803fc391653126e37076d42fdfcffd8e4af01afc
             https://github.com/geany/geany-plugins/commit/803fc391653126e37076d42fdfcffd8e4af01afc

Log Message:
-----------
geniuspaste: Simplify getting the paste title


Modified Paths:
--------------
    geniuspaste/src/geniuspaste.c

Modified: geniuspaste/src/geniuspaste.c
7 lines changed, 1 insertions(+), 6 deletions(-)
===================================================================
@@ -371,12 +371,7 @@ static gboolean append_placeholder(GString         *str,
     }
     else if (strcmp("title", placeholder) == 0)
     {
-        gchar *title;
-
-        if (doc->file_name)
-            title = g_path_get_basename(doc->file_name);
-        else
-            title = document_get_basename_for_display(doc, -1);
+        gchar *title = g_path_get_basename(DOC_FILENAME(doc));
 
         g_string_append(str, title);
         g_free(title);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list