diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:51 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2014-10-03 14:05:51 +0000 |
commit | ed1d7afab34d41b155ac701ee9db87c3f057b99b (patch) | |
tree | da1f7a34e4eabf92200a567910f9470d10b78e0c /src/xsane-viewer.c | |
parent | dc7150ada6000f0c8e6ee61da9598573d3b63b7f (diff) |
Imported Upstream version 0.997upstream/0.997
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); |