[gthumb] resize tool: activate the undo button after resizing the image



commit 4c0527c927461bcddbd59a6a4f3e3bbefc41647e
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Thu Aug 16 19:28:55 2012 +0200

    resize tool: activate the undo button after resizing the image

 extensions/file_tools/gth-file-tool-resize.c |    6 +++++-
 gthumb/gth-toolbox.c                         |    1 +
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-resize.c b/extensions/file_tools/gth-file-tool-resize.c
index 332ae86..f7bec9c 100644
--- a/extensions/file_tools/gth-file-tool-resize.c
+++ b/extensions/file_tools/gth-file-tool-resize.c
@@ -84,7 +84,11 @@ resize_button_clicked_cb (GtkButton       *button,
 
 	window = gth_file_tool_get_window (GTH_FILE_TOOL (self));
 	viewer_page = gth_browser_get_viewer_page (GTH_BROWSER (window));
-	gth_image_viewer_page_set_image (GTH_IMAGE_VIEWER_PAGE (viewer_page), self->priv->new_image, TRUE);
+	gth_image_history_add_image (gth_image_viewer_page_get_history (GTH_IMAGE_VIEWER_PAGE (viewer_page)),
+				    self->priv->new_image,
+				    TRUE);
+	gth_viewer_page_focus (GTH_VIEWER_PAGE (viewer_page));
+
 	gth_file_tool_hide_options (GTH_FILE_TOOL (self));
 }
 
diff --git a/gthumb/gth-toolbox.c b/gthumb/gth-toolbox.c
index 9d330a6..8777850 100644
--- a/gthumb/gth-toolbox.c
+++ b/gthumb/gth-toolbox.c
@@ -221,6 +221,7 @@ child_hide_options_cb (GtkWidget *tool,
 
 	gth_file_tool_destroy_options (GTH_FILE_TOOL (tool));
 	gtk_notebook_set_current_page (GTK_NOTEBOOK (toolbox), GTH_TOOLBOX_LIST_PAGE);
+	gth_toolbox_update_sensitivity (GTH_TOOLBOX (toolbox));
 
 	toolbox->priv->active_tool = NULL;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]