[Xfce4-commits] <ristretto:master> Call iter-changed when a folder is opened.
Stephan Arts
noreply at xfce.org
Sat Sep 3 00:34:01 CEST 2011
Updating branch refs/heads/master
to fcb707b507b2a37cb41db93a85a95c78a5b6d3ff (commit)
from cb8b7cf2c8aee871e04029048b4e09909dde3dad (commit)
commit fcb707b507b2a37cb41db93a85a95c78a5b6d3ff
Author: Stephan Arts <stephan at xfce.org>
Date: Sat Sep 3 00:32:29 2011 +0200
Call iter-changed when a folder is opened.
src/main_window.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index bcf0d7a..3f50b74 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -848,7 +848,15 @@ rstto_main_window_image_list_iter_changed (RsttoMainWindow *window)
file_basename = g_file_get_basename (cur_file);
- title = g_strdup_printf ("%s - %s [%d/%d]", RISTRETTO_APP_TITLE, file_basename, position+1, count);
+ if (count > 1)
+ {
+ title = g_strdup_printf ("%s - %s [%d/%d]", RISTRETTO_APP_TITLE, file_basename, position+1, count);
+ }
+ else
+ {
+ title = g_strdup_printf ("%s - %s", RISTRETTO_APP_TITLE, file_basename);
+ }
+
if (width > 0)
{
status = g_strdup_printf ("%d x %d", width, height);
@@ -2180,6 +2188,7 @@ cb_rstto_main_window_open_folder (GtkWidget *widget, RsttoMainWindow *window)
gtk_widget_destroy(dialog);
rstto_main_window_update_buttons (window);
+ rstto_main_window_image_list_iter_changed (window);
if (file)
{
@@ -2234,6 +2243,7 @@ cb_rstto_main_window_open_recent(GtkRecentChooser *chooser, RsttoMainWindow *win
rstto_image_list_iter_set_position (window->priv->iter, 0);
}
+ rstto_main_window_image_list_iter_changed (window);
}
else
{
More information about the Xfce4-commits
mailing list