[Xfce4-commits] <ristretto:master> Remove new-image signal-handler, it has become obsolete.
Stephan Arts
noreply at xfce.org
Sun Nov 13 23:18:03 CET 2011
Updating branch refs/heads/master
to ec6c315c5b60dbb7ba230d1aeae11c88f6a524e3 (commit)
from e9f758ce3daf3bff9e7c70e3e57edbb72236d948 (commit)
commit ec6c315c5b60dbb7ba230d1aeae11c88f6a524e3
Author: Stephan Arts <stephan at xfce.org>
Date: Fri Nov 11 07:44:00 2011 +0100
Remove new-image signal-handler, it has become obsolete.
src/main_window.c | 46 ----------------------------------------------
1 files changed, 0 insertions(+), 46 deletions(-)
diff --git a/src/main_window.c b/src/main_window.c
index 4dde536..1d4595b 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -157,12 +157,6 @@ static void
cb_rstto_main_window_image_list_iter_changed (RsttoImageListIter *iter, RsttoMainWindow *window);
static void
-cb_rstto_main_window_image_list_new_image (
- RsttoImageList *image_list,
- RsttoFile *file,
- RsttoMainWindow *window );
-
-static void
cb_rstto_main_window_zoom_100 (GtkWidget *widget, RsttoMainWindow *window);
static void
cb_rstto_main_window_zoom_fit (GtkWidget *widget, RsttoMainWindow *window);
@@ -837,11 +831,6 @@ rstto_main_window_new (RsttoImageList *image_list, gboolean fullscreen)
window->priv->image_list = image_list;
g_object_ref (image_list);
- g_signal_connect (
- G_OBJECT (window->priv->image_list),
- "new-image",
- G_CALLBACK (cb_rstto_main_window_image_list_new_image),
- window);
window->priv->iter = rstto_image_list_get_iter (window->priv->image_list);
g_signal_connect (
G_OBJECT (window->priv->iter),
@@ -2259,41 +2248,6 @@ cb_rstto_main_window_quit (GtkWidget *widget, RsttoMainWindow *window)
gtk_widget_destroy (GTK_WIDGET (window));
}
-/**
- * cb_rstto_main_window_image_list_new_image:
- * @image_list:
- * @image:
- * @window:
- *
- */
-static void
-cb_rstto_main_window_image_list_new_image (
- RsttoImageList *image_list,
- RsttoFile *file,
- RsttoMainWindow *window )
-{
- if ( 0 != (gdk_window_get_state (GTK_WIDGET (window)->window) & GDK_WINDOW_STATE_FULLSCREEN ))
- {
- gtk_widget_hide (window->priv->toolbar);
- }
- if (rstto_image_list_iter_get_position (window->priv->iter) == -1)
- rstto_image_list_iter_set_position (window->priv->iter, 0);
- if (window->priv->open_image_timer_id > 0)
- {
- g_source_remove (window->priv->open_image_timer_id);
- }
- else
- {
- rstto_image_list_iter_find_file (window->priv->iter, file);
- rstto_main_window_image_list_iter_changed (window);
- }
-
- rstto_main_window_update_buttons (window);
-
- window->priv->open_image_timer_id = g_timeout_add (
- 1000, rstto_window_open_image_timer, window);
-}
-
static gboolean
cb_rstto_main_window_configure_event (GtkWidget *widget, GdkEventConfigure *event)
{
More information about the Xfce4-commits
mailing list