[Xfce4-commits] <ristretto:master> Show filename before apptitle

Stephan Arts noreply at xfce.org
Sat Aug 4 23:14:01 CEST 2012


Updating branch refs/heads/master
         to c5c474614126b10d973dac68d4fda47cf922720d (commit)
       from 8b138e28fda59489df443268e74293d270ea38a7 (commit)

commit c5c474614126b10d973dac68d4fda47cf922720d
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Aug 4 23:11:59 2012 +0200

    Show filename before apptitle
    
    By showing the filename before the application title, it is
    easier to distinguish between different instances of ristretto
    in a taskbar that shows only a part of the title.

 src/main_window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main_window.c b/src/main_window.c
index 254ef94..7dd02ba 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -1366,11 +1366,11 @@ rstto_main_window_image_list_iter_changed (RsttoMainWindow *window)
 
             if (count > 1)
             {
-                title = g_strdup_printf ("%s - %s [%d/%d]", RISTRETTO_APP_TITLE,  file_basename, position+1, count);
+                title = g_strdup_printf ("%s - %s [%d/%d]", file_basename, RISTRETTO_APP_TITLE,  position+1, count);
             }
             else
             {
-                title = g_strdup_printf ("%s - %s", RISTRETTO_APP_TITLE,  file_basename);
+                title = g_strdup_printf ("%s - %s", file_basename, RISTRETTO_APP_TITLE );
             }
 
         }


More information about the Xfce4-commits mailing list