diff options
author | Julien BLACHE <jblache@debian.org> | 2010-05-29 12:49:57 +0200 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:54 +0000 |
commit | 98aa79889a1cc8be7284b431372dc11b26c65e4e (patch) | |
tree | 00326799a359e1d3504df8b07f4b020255c607c9 /src/xsane-viewer.c | |
parent | 05f0966f64f56ad3348ce8569324ee6c3e692aa8 (diff) | |
parent | ed1d7afab34d41b155ac701ee9db87c3f057b99b (diff) |
Imported Debian patch 0.997-1debian/0.997-1
Diffstat (limited to 'src/xsane-viewer.c')
-rw-r--r-- | src/xsane-viewer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xsane-viewer.c b/src/xsane-viewer.c index 3ca14f6..ac14e71 100644 --- a/src/xsane-viewer.c +++ b/src/xsane-viewer.c @@ -687,6 +687,7 @@ static void xsane_viewer_scale_callback(GtkWidget *window, gpointer data) gtk_box_pack_start(GTK_BOX(hbox), pixmapwidget, FALSE, FALSE, 20); gtk_widget_show(pixmapwidget); gdk_drawable_unref(pixmap); + gdk_drawable_unref(mask); adjustment_size_x = (GtkAdjustment *) gtk_adjustment_new(v->x_scale_factor * image_info.image_width , 0.01 * image_info.image_width, 4.0 * image_info.image_width, 1.0, 5.0, 0.0); spinbutton = gtk_spin_button_new(adjustment_size_x, 0, 0); @@ -703,6 +704,7 @@ static void xsane_viewer_scale_callback(GtkWidget *window, gpointer data) gtk_box_pack_start(GTK_BOX(hbox), pixmapwidget, FALSE, FALSE, 20); gtk_widget_show(pixmapwidget); gdk_drawable_unref(pixmap); + gdk_drawable_unref(mask); adjustment_size_y = (GtkAdjustment *) gtk_adjustment_new(v->x_scale_factor * image_info.image_height , 0.01 * image_info.image_height, 4.0 * image_info.image_height, 1.0, 5.0, 0.0); spinbutton = gtk_spin_button_new(adjustment_size_y, 0, 0); @@ -749,6 +751,7 @@ static void xsane_viewer_scale_callback(GtkWidget *window, gpointer data) gtk_box_pack_start(GTK_BOX(hbox), pixmapwidget, FALSE, FALSE, 20); gtk_widget_show(pixmapwidget); gdk_drawable_unref(pixmap); + gdk_drawable_unref(mask); adjustment_size_x = (GtkAdjustment *) gtk_adjustment_new(v->x_scale_factor * image_info.image_width , 0.01 * image_info.image_width, 4.0 * image_info.image_width, 1.0, 5.0, 0.0); spinbutton = gtk_spin_button_new(adjustment_size_x, 0, 0); @@ -787,6 +790,7 @@ static void xsane_viewer_scale_callback(GtkWidget *window, gpointer data) gtk_box_pack_start(GTK_BOX(hbox), pixmapwidget, FALSE, FALSE, 20); gtk_widget_show(pixmapwidget); gdk_drawable_unref(pixmap); + gdk_drawable_unref(mask); adjustment_size_y = (GtkAdjustment *) gtk_adjustment_new(v->y_scale_factor * image_info.image_height , 0.01 * image_info.image_height, 4.0 * image_info.image_height, 1.0, 5.0, 0.0); spinbutton = gtk_spin_button_new(adjustment_size_y, 0, 0); |