Revision: 1691
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1691&view=rev
Author:   nadvornik
Date:     2009-05-07 20:24:35 +0000 (Thu, 07 May 2009)

Log Message:
-----------
limit metadata details dialog size

Modified Paths:
--------------
    trunk/src/utilops.c

Modified: trunk/src/utilops.c
===================================================================
--- trunk/src/utilops.c 2009-05-07 19:52:38 UTC (rev 1690)
+++ trunk/src/utilops.c 2009-05-07 20:24:35 UTC (rev 1691)
@@ -34,6 +34,9 @@
 #include "metadata.h"
 #include "exif.h"
 
+#define DIALOG_WIDTH 750
+
+
 static GdkPixbuf *file_util_get_error_icon(FileData *fd, GtkWidget *widget);
 
 /*
@@ -1825,6 +1828,7 @@
        GtkWidget *box;
        GtkWidget *table;
        GtkWidget *frame;
+       GtkWidget *label;
        GList *keys = NULL;
        GList *work;
        gchar *message1;
@@ -1858,7 +1862,7 @@
 
        if (fd->change && fd->change->dest)
                {
-               message2 = g_strdup_printf(_("The following metadata tags will 
be written to '%s'."), fd->change->dest);
+               message2 = g_strdup_printf(_("The following metadata tags will 
be written to\n'%s'."), fd->change->dest);
                }
        else
                {
@@ -1876,7 +1880,6 @@
        i = 0;
        while (work)
                {
-               GtkWidget *label;
                const gchar *key = work->data;
                gchar *title = exif_get_description_by_key(key);
                gchar *title_f = g_strdup_printf("%s:", title);
@@ -1896,6 +1899,7 @@
                label = gtk_label_new(value);
                
                gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+               gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
                gtk_table_attach(GTK_TABLE(table), label,
                                 1, 2, i, i + 1,
                                 GTK_FILL, GTK_FILL,
@@ -1910,6 +1914,7 @@
 
        generic_dialog_add_image(gd, box, fd, NULL, NULL, NULL, FALSE);
 
+       gtk_widget_set_size_request(gd->dialog, DIALOG_WIDTH, -1);
        gtk_widget_show(gd->dialog);
        
        g_list_free(keys);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to