[gthumb] histogram: show the properties in a single column
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] histogram: show the properties in a single column
- Date: Sun, 22 Aug 2021 05:31:43 +0000 (UTC)
commit d10459678bc9e4d5e43a677e3c074a6bd0c7da04
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Aug 1 11:47:33 2021 +0200
histogram: show the properties in a single column
To save horizontal space.
data/ui/histogram-info.ui | 194 ++++++++++++--------------
extensions/image_viewer/gth-image-histogram.c | 2 +-
2 files changed, 88 insertions(+), 108 deletions(-)
---
diff --git a/data/ui/histogram-info.ui b/data/ui/histogram-info.ui
index cd53270a..8330b3ad 100644
--- a/data/ui/histogram-info.ui
+++ b/data/ui/histogram-info.ui
@@ -1,261 +1,241 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.36.0 -->
+<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkBox" id="histogram_info">
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="border_width">3</property>
+ <property name="can-focus">False</property>
+ <property name="border-width">3</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkTable" id="table1">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="n_rows">3</property>
- <property name="n_columns">2</property>
- <property name="column_spacing">6</property>
- <property name="row_spacing">2</property>
+ <property name="can-focus">False</property>
+ <property name="n-rows">6</property>
+ <property name="n-columns">2</property>
+ <property name="column-spacing">6</property>
+ <property name="row-spacing">2</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label" translatable="yes">Mean:</property>
- <property name="ellipsize">end</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="y_options"/>
+ <property name="y-options"/>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label" translatable="yes" comments="Short for "Standard
deviation". Try to keep it under the 12 characters in the translation or it will be ellipsized at the
end.">Std dev:</property>
- <property name="ellipsize">end</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options"/>
+ <property name="top-attach">1</property>
+ <property name="bottom-attach">2</property>
+ <property name="y-options"/>
</packing>
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label" translatable="yes">Median:</property>
- <property name="ellipsize">end</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="y_options"/>
+ <property name="top-attach">2</property>
+ <property name="bottom-attach">3</property>
+ <property name="y-options"/>
</packing>
</child>
<child>
<object class="GtkLabel" id="mean_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="width_chars">5</property>
+ <property name="can-focus">False</property>
<property name="xalign">0</property>
<attributes>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_EXPAND</property>
+ <property name="left-attach">1</property>
+ <property name="right-attach">2</property>
+ <property name="x-options">GTK_FILL</property>
+ <property name="y-options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="std_dev_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="width_chars">5</property>
+ <property name="can-focus">False</property>
<property name="xalign">0</property>
<attributes>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_EXPAND</property>
+ <property name="left-attach">1</property>
+ <property name="right-attach">2</property>
+ <property name="top-attach">1</property>
+ <property name="bottom-attach">2</property>
+ <property name="x-options">GTK_FILL</property>
+ <property name="y-options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="median_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="width_chars">5</property>
+ <property name="can-focus">False</property>
<property name="xalign">0</property>
<attributes>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_EXPAND</property>
+ <property name="left-attach">1</property>
+ <property name="right-attach">2</property>
+ <property name="top-attach">2</property>
+ <property name="bottom-attach">3</property>
+ <property name="x-options">GTK_FILL</property>
+ <property name="y-options">GTK_EXPAND</property>
</packing>
</child>
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
- <object class="GtkTable" id="table2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="n_rows">3</property>
- <property name="n_columns">2</property>
- <property name="column_spacing">6</property>
- <property name="row_spacing">2</property>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label" translatable="yes" comments="After the colon there is the total
number of pixels">Pixels:</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="y_options"/>
+ <property name="top-attach">3</property>
+ <property name="bottom-attach">4</property>
+ <property name="y-options"/>
</packing>
</child>
<child>
<object class="GtkLabel" id="label5">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label" translatable="yes" context="Pixels" comments="After the colon there
is a percentile.">Max:</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="y_options"/>
+ <property name="top-attach">4</property>
+ <property name="bottom-attach">5</property>
+ <property name="y-options"/>
</packing>
</child>
<child>
<object class="GtkLabel" id="label7">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can-focus">False</property>
<property name="label" translatable="yes" context="Pixels" comments="After the colon there
is the percentile of selected pixels.">Selected:</property>
<property name="xalign">1</property>
<attributes>
<attribute name="weight" value="bold"/>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="y_options"/>
+ <property name="top-attach">5</property>
+ <property name="bottom-attach">6</property>
+ <property name="y-options"/>
</packing>
</child>
<child>
<object class="GtkLabel" id="total_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="width_chars">10</property>
+ <property name="can-focus">False</property>
<property name="xalign">0</property>
<attributes>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_EXPAND</property>
+ <property name="left-attach">1</property>
+ <property name="right-attach">2</property>
+ <property name="top-attach">3</property>
+ <property name="bottom-attach">4</property>
+ <property name="x-options">GTK_FILL</property>
+ <property name="y-options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="max_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="width_chars">10</property>
+ <property name="can-focus">False</property>
<property name="xalign">0</property>
<attributes>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_EXPAND</property>
+ <property name="left-attach">1</property>
+ <property name="right-attach">2</property>
+ <property name="top-attach">4</property>
+ <property name="bottom-attach">5</property>
+ <property name="x-options">GTK_FILL</property>
+ <property name="y-options">GTK_EXPAND</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="selected_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="width_chars">10</property>
+ <property name="can-focus">False</property>
<property name="xalign">0</property>
<attributes>
- <attribute name="absolute-size" value="10000"/>
+ <attribute name="size" value="9216"/>
</attributes>
</object>
<packing>
- <property name="left_attach">1</property>
- <property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
- <property name="x_options">GTK_FILL</property>
- <property name="y_options">GTK_EXPAND</property>
+ <property name="left-attach">1</property>
+ <property name="right-attach">2</property>
+ <property name="top-attach">5</property>
+ <property name="bottom-attach">6</property>
+ <property name="x-options">GTK_FILL</property>
+ <property name="y-options">GTK_EXPAND</property>
</packing>
</child>
</object>
<packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
- <property name="fill">True</property>
+ <property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
diff --git a/extensions/image_viewer/gth-image-histogram.c b/extensions/image_viewer/gth-image-histogram.c
index 08497512..99b0283f 100644
--- a/extensions/image_viewer/gth-image-histogram.c
+++ b/extensions/image_viewer/gth-image-histogram.c
@@ -28,7 +28,7 @@
#include "preferences.h"
-#define MIN_HISTOGRAM_HEIGHT 280
+#define MIN_HISTOGRAM_HEIGHT 350
static void gth_image_histogram_gth_property_view_interface_init (GthPropertyViewInterface *iface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]