Update to ufraw-0.13

many changes and fixes, including extended EXIF support, and option to
save as png 8 or 16 bits.

originally from sthen@, with tweaks by me
ok merdely@
"if it makes sense, commit it" mbalmer@
This commit is contained in:
phessler 2008-06-07 05:31:41 +00:00
parent 6c1a496b1f
commit e2e139a8a4
12 changed files with 81 additions and 458 deletions

View File

@ -1,9 +1,8 @@
# $OpenBSD: Makefile,v 1.13 2007/12/28 19:00:58 kili Exp $
# $OpenBSD: Makefile,v 1.14 2008/06/07 05:31:41 phessler Exp $
COMMENT= read and manipulate raw images from digital cameras
DISTNAME= ufraw-0.12
PKGNAME= ${DISTNAME}p3
DISTNAME= ufraw-0.13
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ufraw/}
@ -20,7 +19,7 @@ PERMIT_DISTFILES_FTP= Yes
WANTLIB= atk-1.0 c cairo expat fontconfig freetype \
gdk_pixbuf-2.0 gdk-x11-2.0 glib-2.0 glitz \
gmodule-2.0 gobject-2.0 gthread-2.0 gtk-x11-2.0 \
m pango-1.0 pangocairo-1.0 pangoft2-1.0 png \
m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png \
pthread stdc++ X11 Xau Xcursor Xext Xfixes Xi \
Xinerama Xrandr Xcomposite Xdamage Xdmcp Xrender \
z jpeg tiff
@ -34,9 +33,11 @@ MODULES= devel/gettext
USE_X11= Yes
USE_GMAKE= Yes
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
USE_LIBTOOL= Yes
AUTOCONF_VERSION= 2.61
CONFIGURE_STYLE= autoconf
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -pthread"
CONFIGURE_ARGS= --enable-extras
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (ufraw-0.12.tar.gz) = ssEEk4wcPrR+dgVDK70xVw==
RMD160 (ufraw-0.12.tar.gz) = Ml0fiOCD5HtzyRifmPpLjEK5BRs=
SHA1 (ufraw-0.12.tar.gz) = 3ZBnSLNZ6DD91BmAWR52IhhOymc=
SHA256 (ufraw-0.12.tar.gz) = x1DIGABXOF6qCETxFI1vAiO5htoyJ3MZXqtEszuXwZ8=
SIZE (ufraw-0.12.tar.gz) = 582952
MD5 (ufraw-0.13.tar.gz) = ZHD3h6j2L24WQhYePI1Vew==
RMD160 (ufraw-0.13.tar.gz) = MHBTOGrttJuTK13QmPbeuYjWxig=
SHA1 (ufraw-0.13.tar.gz) = iAwh95B0g21rQOQjQ8haFP4Lpl8=
SHA256 (ufraw-0.13.tar.gz) = 4r65DJbkGWMbS32J6l61h6cUzybN58w99C0mH6GjQ7E=
SIZE (ufraw-0.13.tar.gz) = 662029

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile_in,v 1.1 2008/06/07 05:31:41 phessler Exp $
--- Makefile.in.orig Mon Nov 12 21:27:52 2007
+++ Makefile.in Wed Jun 4 12:39:59 2008
@@ -93,7 +93,7 @@ am__nikon_curve_SOURCES_DIST = nikon_curve.c
nikon_curve_OBJECTS = $(am_nikon_curve_OBJECTS)
@MAKE_EXTRAS_TRUE@nikon_curve_DEPENDENCIES = $(am__DEPENDENCIES_1)
nikon_curve_LINK = $(CCLD) $(nikon_curve_CFLAGS) $(CFLAGS) \
- $(nikon_curve_LDFLAGS) $(LDFLAGS) -o $@
+ $(nikon_curve_LDFLAGS) $(LDFLAGS) -lstdc++ -o $@
am_ufraw_OBJECTS = ufraw.$(OBJEXT)
ufraw_OBJECTS = $(am_ufraw_OBJECTS)
@UFRAW_WIN32_TRUE@am__DEPENDENCIES_2 = ufraw_icon.opc

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-configure,v 1.2 2007/10/24 22:44:22 jasper Exp $
--- configure.orig Mon Jul 30 14:09:37 2007
+++ configure Tue Oct 16 12:57:56 2007
@@ -4184,7 +4184,7 @@ done
UFRAW_CFLAGS="-ffast-math -fomit-frame-pointer"
UFRAW_LDADD=""
if test "x$GCC" = "xyes"; then
- UFRAW_CFLAGS="$UFRAW_CFLAGS -W -Wall -O3"
+ UFRAW_CFLAGS="$UFRAW_CFLAGS $CFLAGS"
fi
# windows will require some special attention

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-configure_ac,v 1.1 2008/06/07 05:31:41 phessler Exp $
--- configure.ac.orig Sat Nov 10 16:24:32 2007
+++ configure.ac Fri Jun 6 21:46:05 2008
@@ -161,9 +161,11 @@ AC_CHECK_HEADER(jpeglib.h,
have_jpeg=${ac_cv_lib_jpeg_jpeg_CreateCompress:-no}
# Check for png headers and library.
-AC_CHECK_HEADER(png.h,
- AC_CHECK_LIB(png, png_create_info_struct))
-have_png=${ac_cv_lib_png_png_create_info_struct:-no}
+PKG_CHECK_MODULES(PNG, libpng,
+ [ have_png=yes
+ AC_DEFINE(HAVE_PNG, 1, have png) ],
+ [ have_png=no
+ AC_MSG_RESULT($PNG_PKG_ERRORS) ] )
# Check for tiff headers and library.
AC_CHECK_HEADER(tiffio.h,

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-nikon_curve_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
--- nikon_curve.c.orig Mon Jul 23 14:01:40 2007
+++ nikon_curve.c Tue Oct 16 12:57:56 2007
@@ -76,8 +76,8 @@ static const unsigned char *FileTypeHeaders[NUM_FILE_T
$OpenBSD: patch-nikon_curve_c,v 1.4 2008/06/07 05:31:41 phessler Exp $
--- nikon_curve.c.orig Sun Nov 11 03:10:38 2007
+++ nikon_curve.c Sat Dec 29 12:19:46 2007
@@ -77,8 +77,8 @@ static const unsigned char *FileTypeHeaders[NUM_FILE_T
#ifdef _STAND_ALONE_
//filenames
@ -12,7 +12,7 @@ $OpenBSD: patch-nikon_curve_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
unsigned int standalone_samplingRes = 65536;
unsigned int standalone_outputRes = 256;
@@ -118,8 +118,7 @@ int ProcessArgs(int num_args, char *args[])
@@ -119,8 +119,7 @@ int ProcessArgs(int num_args, char *args[])
else if (strcmp(args[i],"-o") == 0 || strcmp(args[i],"-O") == 0)
{
i++;
@ -22,7 +22,7 @@ $OpenBSD: patch-nikon_curve_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
}
else if (strcmp(args[i],"-sr") == 0)
{
@@ -147,24 +146,21 @@ int ProcessArgs(int num_args, char *args[])
@@ -148,24 +147,21 @@ int ProcessArgs(int num_args, char *args[])
{
i++;
program_mode = NEF_MODE;
@ -51,18 +51,18 @@ $OpenBSD: patch-nikon_curve_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
}
return NC_SUCCESS;
@@ -1722,7 +1718,7 @@ int ConvertNikonCurveData(char *inFileName, char *outF
@@ -1723,7 +1719,7 @@ int ConvertNikonCurveData(char *inFileName, char *outF
{
//Load the curve data from the ncv/ntc file
NikonData data;
- char tmpstr[1024];
+ char tmpstr[FILENAME_MAX];
if ( samplingRes <= 1 || outputRes <= 1 || samplingRes > MAX_RESOLUTION
|| outputRes > MAX_RESOLUTION )
@@ -1752,8 +1748,7 @@ int ConvertNikonCurveData(char *inFileName, char *outF
@@ -1753,8 +1749,7 @@ int ConvertNikonCurveData(char *inFileName, char *outF
}
//rename output files
- strncpy(tmpstr, outFileName, 1023);
- tmpstr[1023] = '\0';
@ -70,7 +70,7 @@ $OpenBSD: patch-nikon_curve_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
//if the name has an extension, attempt to remove it
if (tmpstr[strlen(tmpstr)-4] == '.')
{
@@ -1763,19 +1758,19 @@ int ConvertNikonCurveData(char *inFileName, char *outF
@@ -1764,19 +1759,19 @@ int ConvertNikonCurveData(char *inFileName, char *outF
switch(i)
{
case TONE_CURVE:

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-ufraw-batch_c,v 1.2 2006/10/28 16:48:16 mbalmer Exp $
--- ufraw-batch.c.orig Wed Oct 25 23:35:56 2006
+++ ufraw-batch.c Sat Oct 28 18:39:51 2006
@@ -59,9 +59,9 @@ int main (int argc, char **argv)
$OpenBSD: patch-ufraw-batch_c,v 1.3 2008/06/07 05:31:41 phessler Exp $
--- ufraw-batch.c.orig Sun Nov 11 02:04:01 2007
+++ ufraw-batch.c Sat Dec 29 12:15:06 2007
@@ -62,9 +62,9 @@ int main (int argc, char **argv)
if (strlen(cmd.inputFilename)>0) {
status = conf_load(&conf, cmd.inputFilename);
if (status==UFRAW_SUCCESS) {
@ -12,5 +12,5 @@ $OpenBSD: patch-ufraw-batch_c,v 1.2 2006/10/28 16:48:16 mbalmer Exp $
+ strlcpy(conf.outputFilename, "",sizeof(conf.outputFilename));
+ strlcpy(conf.outputPath, "",sizeof(conf.outputPath));
} else {
ufraw_message(UFRAW_REPORT, NULL);
ufraw_message(UFRAW_REPORT, NULL);
conf.version = 0;

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-ufraw_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
--- ufraw.c.orig Thu Jun 7 13:42:28 2007
+++ ufraw.c Tue Oct 16 12:57:56 2007
@@ -94,9 +94,9 @@ int main (int argc, char **argv)
$OpenBSD: patch-ufraw_c,v 1.4 2008/06/07 05:31:41 phessler Exp $
--- ufraw.c.orig Sun Nov 11 02:04:39 2007
+++ ufraw.c Sat Dec 29 12:15:06 2007
@@ -85,9 +85,9 @@ int main (int argc, char **argv)
if (strlen(cmd.inputFilename)>0) {
status = conf_load(&conf, cmd.inputFilename);
if (status==UFRAW_SUCCESS) {
@ -12,5 +12,5 @@ $OpenBSD: patch-ufraw_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
+ strlcpy(conf.outputFilename, "", sizeof(conf.outputFilename));
+ strlcpy(conf.outputPath, "", sizeof(conf.outputPath));
} else {
ufraw_message(UFRAW_REPORT, NULL);
ufraw_message(UFRAW_REPORT, NULL);
conf.version = 0;

View File

@ -1,21 +1,21 @@
$OpenBSD: patch-ufraw_developer_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
--- ufraw_developer.c.orig Sat Jun 16 16:37:30 2007
+++ ufraw_developer.c Tue Oct 16 12:57:56 2007
@@ -41,7 +41,7 @@ developer_data *developer_init()
$OpenBSD: patch-ufraw_developer_c,v 1.4 2008/06/07 05:31:41 phessler Exp $
--- ufraw_developer.c.orig Sun Nov 11 02:28:56 2007
+++ ufraw_developer.c Sat Dec 29 12:21:29 2007
@@ -42,7 +42,7 @@ developer_data *developer_init()
d->saturation = -1;
for (i=0; i<profile_types; i++) {
d->profile[i] = NULL;
- strcpy(d->profileFile[i],"no such file");
+ strlcpy(d->profileFile[i],"no such file",sizeof(d->profileFile[i]));
d->profile[i] = NULL;
- strcpy(d->profileFile[i],"no such file");
+ strlcpy(d->profileFile[i],"no such file",sizeof(d->profileFile[i]));
}
memset(&d->baseCurveData, 0, sizeof(d->baseCurveData));
d->baseCurveData.m_gamma = -1.0;
@@ -97,7 +97,7 @@ void developer_profile(developer_data *d, int type, pr
g_strlcpy(p->productName, cmsTakeProductName(d->profile[type]),
max_name);
else
- strcpy(p->productName, "");
+ strlcpy(p->productName, "",sizeof(p->productName));
@@ -105,7 +105,7 @@ void developer_profile(developer_data *d, int type, pr
g_strlcpy(p->productName, cmsTakeProductName(d->profile[type]),
max_name);
else
- strcpy(p->productName, "");
+ strlcpy(p->productName, "",sizeof(p->productName));
}
}

View File

@ -1,387 +0,0 @@
$OpenBSD: patch-ufraw_preview_c,v 1.3 2007/10/24 22:44:22 jasper Exp $
--- ufraw_preview.c.orig Tue Oct 16 12:58:11 2007
+++ ufraw_preview.c Tue Oct 16 13:01:02 2007
@@ -100,7 +100,7 @@ typedef struct {
GtkWidget *ResetThresholdButton;
GtkWidget *ResetBlackButton, *ResetBaseCurveButton, *ResetCurveButton;
GtkWidget *UseMatrixButton;
- GtkTooltips *ToolTips;
+ GtkTooltip *ToolTip;
GtkProgressBar *ProgressBar;
GtkSpinButton *CropX1Spin;
GtkSpinButton *CropY1Spin;
@@ -500,10 +500,10 @@ colorLabels *color_labels_new(GtkTable *table, int x,
gtk_table_attach_defaults(table, event_box,
x+i, x+i+1, y, y+1);
if ( c==3 )
- gtk_tooltips_set_tip(data->ToolTips, event_box,
+ gtk_tooltips_set_tip(data->ToolTip, event_box,
_("Luminosity (Y value)"), NULL);
if ( c==4 )
- gtk_tooltips_set_tip(data->ToolTips, event_box,
+ gtk_tooltips_set_tip(data->ToolTip, event_box,
_("Adams' zone"), NULL);
}
return l;
@@ -1694,7 +1694,7 @@ void flip_image(GtkWidget *widget, int flip)
}
GtkWidget *notebook_page_new(GtkNotebook *notebook, char *text, char *icon,
- GtkTooltips *tooltips)
+ GtkTooltip *tooltip)
{
GtkWidget *page = gtk_vbox_new(FALSE, 0);
if ( icon==NULL ) {
@@ -1705,7 +1705,7 @@ GtkWidget *notebook_page_new(GtkNotebook *notebook, ch
GtkWidget *image = gtk_image_new_from_stock(icon,
GTK_ICON_SIZE_SMALL_TOOLBAR);
gtk_container_add(GTK_CONTAINER(event_box), image);
- gtk_tooltips_set_tip(tooltips, event_box, text, NULL);
+ gtk_tooltips_set_tip(tooltip, event_box, text, NULL);
gtk_widget_show_all(event_box);
gtk_notebook_append_page(notebook, GTK_WIDGET(page), event_box);
}
@@ -1859,7 +1859,7 @@ void restore_details_button_set(GtkButton *button, pre
}
char *text = g_strdup_printf(_("Restore details for negative EV\n"
"Current state: %s"), state);
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(button), text, NULL);
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(button), text, NULL);
g_free(text);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE);
}
@@ -1903,7 +1903,7 @@ void clip_highlights_button_set(GtkButton *button, pre
}
char *text = g_strdup_printf(_("Clip highlights for positive EV\n"
"Current state: %s"), state);
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(button), text, NULL);
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(button), text, NULL);
g_free(text);
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), FALSE);
}
@@ -2043,7 +2043,7 @@ GtkAdjustment *adjustment_scale(GtkTable *table,
gtk_misc_set_alignment(GTK_MISC(l), 1, 0.5);
gtk_container_add(GTK_CONTAINER(w), l);
}
- gtk_tooltips_set_tip(data->ToolTips, w, tip, NULL);
+ gtk_tooltips_set_tip(data->ToolTip, w, tip, NULL);
gtk_table_attach(table, w, x, x+1, y, y+1, GTK_SHRINK|GTK_FILL, 0, 0, 0);
adj = GTK_ADJUSTMENT(gtk_adjustment_new(value, min, max, step, jump, 0));
g_object_set_data(G_OBJECT(adj), "Adjustment-Accuracy",(gpointer)accuracy);
@@ -2051,7 +2051,7 @@ GtkAdjustment *adjustment_scale(GtkTable *table,
w = gtk_hscale_new(adj);
g_object_set_data(G_OBJECT(adj), "Parent-Widget", w);
gtk_scale_set_draw_value(GTK_SCALE(w), FALSE);
- gtk_tooltips_set_tip(data->ToolTips, w, tip, NULL);
+ gtk_tooltips_set_tip(data->ToolTip, w, tip, NULL);
gtk_table_attach(table, w, x+1, x+5, y, y+1, GTK_EXPAND|GTK_FILL, 0, 0, 0);
g_signal_connect(G_OBJECT(adj), "value-changed",
G_CALLBACK(adjustment_update), valuep);
@@ -2059,7 +2059,7 @@ GtkAdjustment *adjustment_scale(GtkTable *table,
w = gtk_spin_button_new(adj, step, accuracy);
gtk_spin_button_set_snap_to_ticks(GTK_SPIN_BUTTON(w), FALSE);
gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(w), GTK_UPDATE_IF_VALID);
- gtk_tooltips_set_tip(data->ToolTips, w, tip, NULL);
+ gtk_tooltips_set_tip(data->ToolTip, w, tip, NULL);
gtk_table_attach(table, w, x+5, x+7, y, y+1, GTK_SHRINK|GTK_FILL, 0, 0, 0);
return adj;
}
@@ -2248,7 +2248,7 @@ void options_dialog(GtkWidget *widget, gpointer user_d
label = gtk_label_new(_("Save image defaults "));
event = gtk_event_box_new();
gtk_container_add(GTK_CONTAINER(event), label);
- gtk_tooltips_set_tip(data->ToolTips, event,
+ gtk_tooltips_set_tip(data->ToolTip, event,
_("Save current image manipulation parameters as defaults.\nThe output parameters in this window are always saved."), NULL);
gtk_table_attach(GTK_TABLE(table), event, 0, 2, 0, 1, 0, 0, 0, 0);
confCombo = GTK_COMBO_BOX(gtk_combo_box_new_text());
@@ -2263,7 +2263,7 @@ void options_dialog(GtkWidget *widget, gpointer user_d
label = gtk_label_new(_("Save full configuration "));
event = gtk_event_box_new();
- gtk_tooltips_set_tip(data->ToolTips, event,
+ gtk_tooltips_set_tip(data->ToolTip, event,
_("Save resource file ($HOME/.ufrawrc)"), NULL);
gtk_container_add(GTK_CONTAINER(event), label);
gtk_table_attach(GTK_TABLE(table), event, 0, 2, 1, 2, 0, 0, 0, 0);
@@ -2603,12 +2603,12 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->DrawnCropY1 = 0;
data->DrawnCropY2 = 0;
- data->ToolTips = gtk_tooltips_new();
+ data->ToolTip = gtk_tooltips_new();
#if GTK_CHECK_VERSION(2,10,0)
- g_object_ref_sink(GTK_OBJECT(data->ToolTips));
+ g_object_ref_sink(GTK_OBJECT(data->ToolTip));
#else
- g_object_ref(data->ToolTips);
- gtk_object_sink(GTK_OBJECT(data->ToolTips));
+ g_object_ref(data->ToolTip);
+ gtk_object_sink(GTK_OBJECT(data->ToolTip));
#endif
previewWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
@@ -2767,7 +2767,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->AutoExposureButton = GTK_TOGGLE_BUTTON(gtk_toggle_button_new());
gtk_container_add(GTK_CONTAINER(data->AutoExposureButton),
gtk_image_new_from_stock(GTK_STOCK_EXECUTE, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(data->AutoExposureButton),
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(data->AutoExposureButton),
_("Auto adjust exposure"), NULL);
gtk_table_attach(table, GTK_WIDGET(data->AutoExposureButton), 9, 10, 0, 1,
0, 0, 0, 0);
@@ -2778,7 +2778,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetExposureButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetExposureButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, data->ResetExposureButton,
+ gtk_tooltips_set_tip(data->ToolTip, data->ResetExposureButton,
_("Reset exposure to default"), NULL);
gtk_table_attach(table, data->ResetExposureButton, 10, 11, 0, 1, 0,0,0,0);
g_signal_connect(G_OBJECT(data->ResetExposureButton), "clicked",
@@ -2793,7 +2793,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
/* Start of White Balance setting page */
page = notebook_page_new(notebook, _("White balance"),
- "white-balance", data->ToolTips);
+ "white-balance", data->ToolTip);
/* Set this page to be the opening page. */
int openingPage = gtk_notebook_page_num(notebook, page);
@@ -2846,7 +2846,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
G_CALLBACK(combo_update), CFG->wb);
event_box = gtk_event_box_new();
gtk_container_add(GTK_CONTAINER(event_box), GTK_WIDGET(data->WBCombo));
- gtk_tooltips_set_tip(data->ToolTips, event_box, _("White Balance"), NULL);
+ gtk_tooltips_set_tip(data->ToolTip, event_box, _("White Balance"), NULL);
if ( make_model_fine_tuning || !make_model_match)
gtk_table_attach(subTable, event_box, 0, 6, 0, 1, GTK_FILL, 0, 0, 0);
else
@@ -2870,13 +2870,13 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
GTK_ICON_SIZE_BUTTON);
gtk_container_add(GTK_CONTAINER(event_box), label);
gtk_table_attach(subTable, event_box, 6, 7, 0, 1, GTK_FILL, 0, 0, 0);
- gtk_tooltips_set_tip(data->ToolTips, event_box,
+ gtk_tooltips_set_tip(data->ToolTip, event_box,
_("There are no white balance presets for your camera model.\nCheck UFRaw's webpage for information on how to get your\ncamera supported."), NULL);
}
data->ResetWBButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetWBButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, data->ResetWBButton,
+ gtk_tooltips_set_tip(data->ToolTip, data->ResetWBButton,
_("Reset white balance to initial value"), NULL);
gtk_table_attach(subTable, data->ResetWBButton, 7, 8, 0, 1, 0, 0, 0, 0);
g_signal_connect(G_OBJECT(data->ResetWBButton), "clicked",
@@ -2893,7 +2893,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
button = gtk_button_new();
gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(
GTK_STOCK_COLOR_PICKER, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, button,
+ gtk_tooltips_set_tip(data->ToolTip, button,
_("Select a spot on the preview image to apply spot white balance"),
NULL);
gtk_table_attach(subTable, button, 7, 8, 1, 3, 0, 0, 0, 0);
@@ -2925,7 +2925,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
GtkWidget *icon = gtk_image_new_from_stock("interpolation",
GTK_ICON_SIZE_LARGE_TOOLBAR);
gtk_container_add(GTK_CONTAINER(event_box), icon);
- gtk_tooltips_set_tip(data->ToolTips, event_box,
+ gtk_tooltips_set_tip(data->ToolTip, event_box,
_("Bayer pattern interpolation"), NULL);
gtk_table_attach(table, event_box, 0, 1, 0, 1, 0, 0, 0, 0);
combo = GTK_COMBO_BOX(gtk_combo_box_new_text());
@@ -2980,7 +2980,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetThresholdButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetThresholdButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, data->ResetThresholdButton,
+ gtk_tooltips_set_tip(data->ToolTip, data->ResetThresholdButton,
_("Reset denoise threshold to default"), NULL);
gtk_table_attach(table, data->ResetThresholdButton, 7, 8, 0, 1, 0,0,0,0);
g_signal_connect(G_OBJECT(data->ResetThresholdButton), "clicked",
@@ -3012,7 +3012,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
g_object_set_data(G_OBJECT(data->ZoomAdjustment), "Parent-Widget", button);
g_signal_connect(G_OBJECT(data->ZoomAdjustment), "value-changed",
G_CALLBACK(adjustment_update), &CFG->Zoom);
- gtk_tooltips_set_tip(data->ToolTips, button,
+ gtk_tooltips_set_tip(data->ToolTip, button,
_("Zoom percentage"), NULL);
gtk_table_attach(table, button, 2, 3, 0, 1, 0, 0, 0, 0);
@@ -3029,7 +3029,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
/* Start of Base Curve page */
page = notebook_page_new(notebook, _("Base curve"),
- "base-curve", data->ToolTips);
+ "base-curve", data->ToolTip);
table = GTK_TABLE(table_with_frame(page, NULL, TRUE));
box = GTK_BOX(gtk_hbox_new(FALSE, 0));
@@ -3061,13 +3061,13 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(
GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start(box, button, FALSE, FALSE, 0);
- gtk_tooltips_set_tip(data->ToolTips, button, _("Load base curve"), NULL);
+ gtk_tooltips_set_tip(data->ToolTip, button, _("Load base curve"), NULL);
g_signal_connect(G_OBJECT(button), "clicked",
G_CALLBACK(load_curve), (gpointer)base_curve);
button = gtk_button_new();
gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(
GTK_STOCK_SAVE_AS, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, button, _("Save base curve"), NULL);
+ gtk_tooltips_set_tip(data->ToolTip, button, _("Save base curve"), NULL);
gtk_box_pack_start(box, button, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(button), "clicked",
G_CALLBACK(save_curve), (gpointer)base_curve);
@@ -3086,7 +3086,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetBaseCurveButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetBaseCurveButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(data->ResetBaseCurveButton),
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(data->ResetBaseCurveButton),
_("Reset base curve to default"),NULL);
align = gtk_alignment_new(0, 1, 1, 0);
gtk_container_add(GTK_CONTAINER(align),
@@ -3098,7 +3098,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
/* Start of Color management page */
page = notebook_page_new(notebook, _("Color management"),
- "color-management", data->ToolTips);
+ "color-management", data->ToolTip);
table = GTK_TABLE(table_with_frame(page, NULL, TRUE));
for (j=0; j<profile_types; j++) {
@@ -3109,7 +3109,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
j==display_profile ? "icc-profile-display" : "error",
GTK_ICON_SIZE_LARGE_TOOLBAR);
gtk_container_add(GTK_CONTAINER(event_box), icon);
- gtk_tooltips_set_tip(data->ToolTips, event_box,
+ gtk_tooltips_set_tip(data->ToolTip, event_box,
j==in_profile ? _("Input ICC profile") :
j==out_profile ? _("Output ICC profile") :
j==display_profile ? _("Display ICC profile") : "Error", NULL);
@@ -3154,7 +3154,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetGammaButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetGammaButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, data->ResetGammaButton,
+ gtk_tooltips_set_tip(data->ToolTip, data->ResetGammaButton,
_("Reset gamma to default"), NULL);
gtk_table_attach(table, data->ResetGammaButton, 8, 9, 3, 4, 0, 0, 0, 0);
g_signal_connect(G_OBJECT(data->ResetGammaButton), "clicked",
@@ -3167,7 +3167,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetLinearButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetLinearButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, data->ResetLinearButton,
+ gtk_tooltips_set_tip(data->ToolTip, data->ResetLinearButton,
_("Reset linearity to default"), NULL);
gtk_table_attach(table, data->ResetLinearButton, 8, 9, 4, 5, 0, 0, 0, 0);
g_signal_connect(G_OBJECT(data->ResetLinearButton), "clicked",
@@ -3201,7 +3201,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
/* Start of Corrections page */
page = notebook_page_new(notebook, _("Correct luminosity, saturation"),
- "color-corrections", data->ToolTips);
+ "color-corrections", data->ToolTip);
table = GTK_TABLE(table_with_frame(page, NULL, TRUE));
data->SaturationAdjustment = adjustment_scale(table, 0, 1, _("Saturation"),
@@ -3210,7 +3210,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetSaturationButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetSaturationButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, data->ResetSaturationButton,
+ gtk_tooltips_set_tip(data->ToolTip, data->ResetSaturationButton,
_("Reset saturation to default"), NULL);
gtk_table_attach(table, data->ResetSaturationButton, 9, 10, 1, 2,
0, 0, 0, 0);
@@ -3236,13 +3236,13 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(
GTK_STOCK_OPEN, GTK_ICON_SIZE_BUTTON));
gtk_box_pack_start(box, button, FALSE, FALSE, 0);
- gtk_tooltips_set_tip(data->ToolTips, button, _("Load curve"), NULL);
+ gtk_tooltips_set_tip(data->ToolTip, button, _("Load curve"), NULL);
g_signal_connect(G_OBJECT(button), "clicked",
G_CALLBACK(load_curve), (gpointer)luminosity_curve);
button = gtk_button_new();
gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(
GTK_STOCK_SAVE_AS, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, button, _("Save curve"), NULL);
+ gtk_tooltips_set_tip(data->ToolTip, button, _("Save curve"), NULL);
gtk_box_pack_start(box, button, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(button), "clicked",
G_CALLBACK(save_curve), (gpointer)luminosity_curve);
@@ -3260,7 +3260,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->AutoCurveButton = GTK_BUTTON(gtk_button_new());
gtk_container_add(GTK_CONTAINER(data->AutoCurveButton),
gtk_image_new_from_stock(GTK_STOCK_EXECUTE, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(data->AutoCurveButton),
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(data->AutoCurveButton),
_("Auto adjust curve\n(Flatten histogram)"), NULL);
gtk_table_attach(subTable, GTK_WIDGET(data->AutoCurveButton), 8, 9, 6, 7,
0, 0, 0, 0);
@@ -3270,7 +3270,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetCurveButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetCurveButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(data->ResetCurveButton),
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(data->ResetCurveButton),
_("Reset curve to default"),NULL);
gtk_table_attach(subTable, GTK_WIDGET(data->ResetCurveButton), 8, 9, 7, 8,
0, 0, 0, 0);
@@ -3293,7 +3293,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->ResetBlackButton = gtk_button_new();
gtk_container_add(GTK_CONTAINER(data->ResetBlackButton),
gtk_image_new_from_stock(GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(data->ResetBlackButton),
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(data->ResetBlackButton),
_("Reset black-point to default"),NULL);
gtk_table_attach(subTable, GTK_WIDGET(data->ResetBlackButton), 0, 1, 7, 8,
0, 0, 0, 0);
@@ -3303,7 +3303,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
data->AutoBlackButton = GTK_TOGGLE_BUTTON(gtk_toggle_button_new());
gtk_container_add(GTK_CONTAINER(data->AutoBlackButton),
gtk_image_new_from_stock(GTK_STOCK_EXECUTE, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, GTK_WIDGET(data->AutoBlackButton),
+ gtk_tooltips_set_tip(data->ToolTip, GTK_WIDGET(data->AutoBlackButton),
_("Auto adjust black-point"), NULL);
gtk_table_attach(subTable, GTK_WIDGET(data->AutoBlackButton), 0, 1, 6, 7,
0, GTK_SHRINK, 0, 0);
@@ -3314,7 +3314,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
/* Start of transformations page */
page = notebook_page_new(notebook, _("Crop and rotate"),
- GTK_STOCK_CONVERT, data->ToolTips);
+ GTK_STOCK_CONVERT, data->ToolTip);
table = GTK_TABLE(table_with_frame(page, NULL, TRUE));
@@ -3379,7 +3379,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
button = gtk_button_new();
gtk_container_add(GTK_CONTAINER(button), gtk_image_new_from_stock(
GTK_STOCK_REFRESH, GTK_ICON_SIZE_BUTTON));
- gtk_tooltips_set_tip(data->ToolTips, button,
+ gtk_tooltips_set_tip(data->ToolTip, button,
_("Reset the crop region"),
NULL);
gtk_table_attach(table, button, 4, 5, 1, 2, 0, 0, 0, 0);
@@ -3701,7 +3701,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
g_object_set_data(G_OBJECT(data->ZoomAdjustment), "Parent-Widget", button);
g_signal_connect(G_OBJECT(data->ZoomAdjustment), "value-changed",
G_CALLBACK(adjustment_update), &CFG->Zoom);
- gtk_tooltips_set_tip(data->ToolTips, button,
+ gtk_tooltips_set_tip(data->ToolTip, button,
_("Zoom percentage"), NULL);
gtk_box_pack_start(ZoomBox, button, FALSE, FALSE, 0);
@@ -3764,7 +3764,7 @@ int ufraw_preview(ufraw_data *uf, int plugin, long (*s
/* Get the default save options from ufraw_saver() */
char *text = (char *)ufraw_saver(NULL, uf);
- gtk_tooltips_set_tip(data->ToolTips, saveButton, text, NULL);
+ gtk_tooltips_set_tip(data->ToolTip, saveButton, text, NULL);
g_free(text);
/* All buttons except SAVE_AS are fixed width */

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-ufraw_saver_c,v 1.1 2007/10/24 22:44:22 jasper Exp $
--- ufraw_saver.c.orig Mon Jul 9 14:54:27 2007
+++ ufraw_saver.c Tue Oct 16 12:57:56 2007
@@ -239,7 +239,7 @@ long ufraw_saver(void *widget, gpointer user_data)
gtk_file_chooser_set_current_name(fileChooser, base);
g_free(base);
- GtkTooltips *tips = gtk_tooltips_new();
+ GtkTooltip *tips = gtk_tooltips_new();
#if GTK_CHECK_VERSION(2,10,0)
g_object_ref_sink(GTK_OBJECT(tips));
#else

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2007/04/15 12:44:54 mbalmer Exp $
@comment $OpenBSD: PLIST,v 1.4 2008/06/07 05:31:41 phessler Exp $
@comment bin/dcraw
bin/nikon-curve
bin/ufraw
@ -9,8 +9,11 @@ lib/gimp/2.0/plug-ins/
lib/gimp/2.0/plug-ins/ufraw-gimp
@man man/man1/ufraw.1
share/locale/da/LC_MESSAGES/ufraw.mo
share/locale/es/LC_MESSAGES/ufraw.mo
share/locale/fr/LC_MESSAGES/ufraw.mo
share/locale/ja/LC_MESSAGES/ufraw.mo
share/locale/ko/LC_MESSAGES/ufraw.mo
share/locale/pl/LC_MESSAGES/ufraw.mo
share/locale/pt/LC_MESSAGES/ufraw.mo
share/locale/ru/LC_MESSAGES/ufraw.mo
share/pixmaps/