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-back-gtk.c | |
parent | dc7150ada6000f0c8e6ee61da9598573d3b63b7f (diff) |
Imported Upstream version 0.997upstream/0.997
Diffstat (limited to 'src/xsane-back-gtk.c')
-rw-r--r-- | src/xsane-back-gtk.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xsane-back-gtk.c b/src/xsane-back-gtk.c index d74300e..671b02d 100644 --- a/src/xsane-back-gtk.c +++ b/src/xsane-back-gtk.c @@ -709,6 +709,7 @@ gint xsane_back_gtk_decision(gchar *title, gchar **xpm_d, gchar *message, gchar gtk_box_pack_start(GTK_BOX(hbox), pixmapwidget, FALSE, FALSE, 10); gtk_widget_show(pixmapwidget); gdk_drawable_unref(pixmap); + gdk_drawable_unref(mask); } /* the message */ @@ -2002,7 +2003,8 @@ void xsane_back_gtk_range_new(GtkWidget *parent, const char *name, gfloat val, label = gtk_label_new((char *) name); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 2); - elem->data = gtk_adjustment_new(val, min, max, quant, quant*10, (max-min) * 1e-30); + elem->data = gtk_adjustment_new(val, min, max, quant, quant*10, 0); + //elem->data = gtk_adjustment_new(val, min, max, quant, quant*10, (max-min) * 1e-30); /* 1e-30 => hscrollbar has an unwanted side effect: the maximum is not the maximum */ /* of the given range, it is reduced by the page_size, so it has to be very small */ @@ -2121,7 +2123,8 @@ void xsane_back_gtk_value_new(GtkWidget *parent, const char *name, gfloat val, label = gtk_label_new((char *) name); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 2); - elem->data = gtk_adjustment_new(val, -1e29, 1e29, 1, 10, 1e-30); + elem->data = gtk_adjustment_new(val, -1e29, 1e29, 1, 10, 0); + //elem->data = gtk_adjustment_new(val, -1e29, 1e29, 1, 10, 1e-30); /* spinbutton */ #ifndef HAVE_GTK2 @@ -2612,7 +2615,7 @@ void xsane_back_gtk_set_sensitivity(int sensitive) continue; } - if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE)) + // if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE)) { gtk_widget_set_sensitive(xsane.element[i].widget, sensitive); } |