[gthumb: 52/129] rotate tool: enable zoom in destroy_options()
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb: 52/129] rotate tool: enable zoom in destroy_options()
- Date: Wed, 27 Apr 2011 20:54:45 +0000 (UTC)
commit 12451bfc52f74236feaafa675864876c2c1b8b32
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Apr 20 15:47:47 2011 +0200
rotate tool: enable zoom in destroy_options()
extensions/file_tools/gth-file-tool-rotate.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
---
diff --git a/extensions/file_tools/gth-file-tool-rotate.c b/extensions/file_tools/gth-file-tool-rotate.c
index fc4afd9..d805ac5 100644
--- a/extensions/file_tools/gth-file-tool-rotate.c
+++ b/extensions/file_tools/gth-file-tool-rotate.c
@@ -74,20 +74,12 @@ cancel_button_clicked_cb (GtkButton *button,
gpointer user_data)
{
GthFileToolRotate *self = user_data;
- GtkWidget *window;
- GtkWidget *viewer_page;
- GtkWidget *image_viewer;
if (self->priv->apply_event != 0) {
g_source_remove (self->priv->apply_event);
self->priv->apply_event = 0;
}
- window = gth_file_tool_get_window (GTH_FILE_TOOL (self));
- viewer_page = gth_browser_get_viewer_page (GTH_BROWSER (window));
- image_viewer = gth_image_viewer_page_get_image_viewer (GTH_IMAGE_VIEWER_PAGE (viewer_page));
- gth_image_viewer_set_zoom_enabled (GTH_IMAGE_VIEWER (image_viewer), TRUE);
-
gth_file_tool_hide_options (GTH_FILE_TOOL (self));
}
@@ -97,16 +89,8 @@ ok_button_clicked_cb (GtkButton *button,
gpointer user_data)
{
GthFileToolRotate *self = user_data;
- GtkWidget *window;
- GtkWidget *viewer_page;
- GtkWidget *image_viewer;
cairo_surface_t *new_image;
- window = gth_file_tool_get_window (GTH_FILE_TOOL (self));
- viewer_page = gth_browser_get_viewer_page (GTH_BROWSER (window));
- image_viewer = gth_image_viewer_page_get_image_viewer (GTH_IMAGE_VIEWER_PAGE (viewer_page));
- gth_image_viewer_set_zoom_enabled (GTH_IMAGE_VIEWER (image_viewer), TRUE);
-
new_image = gth_image_rotator_get_result (self->priv->rotator);
if (new_image != NULL) {
GtkWidget *window;
@@ -509,6 +493,7 @@ gth_file_tool_rotate_destroy_options (GthFileTool *base)
viewer_page = gth_browser_get_viewer_page (GTH_BROWSER (window));
viewer = gth_image_viewer_page_get_image_viewer (GTH_IMAGE_VIEWER_PAGE (viewer_page));
gth_image_viewer_set_tool (GTH_IMAGE_VIEWER (viewer), NULL);
+ gth_image_viewer_set_zoom_enabled (GTH_IMAGE_VIEWER (viewer), TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]