diff options
-rw-r--r-- | graphics/darktable/Makefile | 1 | ||||
-rw-r--r-- | graphics/darktable/files/patch-tools_generate__prefs.xsl | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/graphics/darktable/Makefile b/graphics/darktable/Makefile index 5bddf6dc2f15..c64d82552532 100644 --- a/graphics/darktable/Makefile +++ b/graphics/darktable/Makefile @@ -3,6 +3,7 @@ PORTNAME= darktable PORTVERSION= 1.6.4 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= https://github.com/darktable-org/${PORTNAME}/releases/download/release-${PORTVERSION}/ diff --git a/graphics/darktable/files/patch-tools_generate__prefs.xsl b/graphics/darktable/files/patch-tools_generate__prefs.xsl new file mode 100644 index 000000000000..5601c3aa35f9 --- /dev/null +++ b/graphics/darktable/files/patch-tools_generate__prefs.xsl @@ -0,0 +1,13 @@ +--- tools/generate_prefs.xsl.orig 2015-04-03 13:59:08 UTC ++++ tools/generate_prefs.xsl +@@ -231,7 +231,9 @@ + <xsl:text> gint min = 0;
 gint max = G_MAXINT;
</xsl:text> + <xsl:apply-templates select="type" mode="range"/> + <xsl:text> </xsl:text><xsl:apply-templates select="type" mode="factor"/> +- <xsl:text> min *= factor; max *= factor; ++ <xsl:text> double tmp; ++ tmp = min * (double)factor; min = tmp; ++ tmp = max * (double)factor; max = tmp; + widget = gtk_spin_button_new_with_range(min, max, 1); + gtk_spin_button_set_digits(GTK_SPIN_BUTTON(widget), 0); + gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget), dt_conf_get_int("</xsl:text><xsl:value-of select="name"/><xsl:text>") * factor); |