Revision: 1440
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1440&view=rev
Author:   nadvornik
Date:     2009-02-28 20:13:11 +0000 (Sat, 28 Feb 2009)

Log Message:
-----------
show histogram label in the title
adjusted label texts

Modified Paths:
--------------
    trunk/src/bar_histogram.c
    trunk/src/histogram.c

Modified: trunk/src/bar_histogram.c
===================================================================
--- trunk/src/bar_histogram.c   2009-02-28 19:44:58 UTC (rev 1439)
+++ trunk/src/bar_histogram.c   2009-02-28 20:13:11 UTC (rev 1440)
@@ -54,6 +54,8 @@
        if (phd->pixbuf) g_object_unref(phd->pixbuf);
        phd->pixbuf = NULL;
 
+       gtk_label_set_text(GTK_LABEL(phd->pane.title), 
histogram_label(phd->histogram));
+
        if (!phd->histogram_width || !phd->histogram_height || !phd->fd) return;
 
        /* histmap_get is relatively expensive, run it only when we really need 
it
@@ -87,9 +89,6 @@
        gdk_pixbuf_fill(phd->pixbuf, 0xffffffff);
        histogram_draw(phd->histogram, histmap, phd->pixbuf, 0, 0, 
phd->histogram_width, phd->histogram_height);
 
-#if GTK_CHECK_VERSION(2,12,0)
-       gtk_widget_set_tooltip_text(phd->drawing_area, 
histogram_label(phd->histogram));
-#endif
        return FALSE;
 }
 
@@ -365,9 +364,6 @@
 
        g_signal_connect(G_OBJECT(phd->drawing_area), "button_press_event", 
G_CALLBACK(bar_pane_histogram_press_cb), phd);
 
-#if GTK_CHECK_VERSION(2,12,0)
-       gtk_widget_set_tooltip_text(phd->drawing_area, 
histogram_label(phd->histogram));
-#endif
        gtk_widget_show(phd->widget);
 
        file_data_register_notify_func(bar_pane_histogram_notify_cb, phd, 
NOTIFY_PRIORITY_LOW);

Modified: trunk/src/histogram.c
===================================================================
--- trunk/src/histogram.c       2009-02-28 19:44:58 UTC (rev 1439)
+++ trunk/src/histogram.c       2009-02-28 20:13:11 UTC (rev 1440)
@@ -105,20 +105,20 @@
        if (histogram->histogram_mode)
                switch (histogram->histogram_channel)
                        {
-                       case HCHAN_R:   t1 = _("logarithmical histogram on 
red"); break;
-                       case HCHAN_G:   t1 = _("logarithmical histogram on 
green"); break;
-                       case HCHAN_B:   t1 = _("logarithmical histogram on 
blue"); break;
-                       case HCHAN_RGB: t1 = _("logarithmical histogram on 
RGB"); break;
-                       case HCHAN_MAX: t1 = _("logarithmical histogram on max 
value"); break;
+                       case HCHAN_R:   t1 = _("Log Histogram on Red"); break;
+                       case HCHAN_G:   t1 = _("Log Histogram on Green"); break;
+                       case HCHAN_B:   t1 = _("Log Histogram on Blue"); break;
+                       case HCHAN_RGB: t1 = _("Log Histogram on RGB"); break;
+                       case HCHAN_MAX: t1 = _("Log Histogram on max value"); 
break;
                        }
        else
                switch (histogram->histogram_channel)
                        {
-                       case HCHAN_R:   t1 = _("linear histogram on red"); 
break;
-                       case HCHAN_G:   t1 = _("linear histogram on green"); 
break;
-                       case HCHAN_B:   t1 = _("linear histogram on blue"); 
break;
-                       case HCHAN_RGB: t1 = _("linear histogram on RGB"); 
break;
-                       case HCHAN_MAX: t1 = _("linear histogram on max 
value"); break;
+                       case HCHAN_R:   t1 = _("Linear Histogram on Red"); 
break;
+                       case HCHAN_G:   t1 = _("Linear Histogram on Green"); 
break;
+                       case HCHAN_B:   t1 = _("Linear Histogram on Blue"); 
break;
+                       case HCHAN_RGB: t1 = _("Linear Histogram on RGB"); 
break;
+                       case HCHAN_MAX: t1 = _("Linear Histogram on max 
value"); break;
                        }
        return t1;
 }


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

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to