[gnome-latex: 79/205] Symbols tables: the categories take less place



commit 8770dd8de4e64a981592c2a7d71b0238564f6be0
Author: Sébastien Wilmet <sebastien wilmet gmail com>
Date:   Wed Sep 23 15:48:14 2009 +0200

    Symbols tables: the categories take less place

 TODO                               |   4 ++--
 images/icons/symbol_arrows.png     | Bin 0 -> 316 bytes
 images/icons/symbol_delimiters.png | Bin 0 -> 373 bytes
 images/icons/symbol_greek.png      | Bin 0 -> 296 bytes
 images/icons/symbol_misc_math.png  | Bin 0 -> 346 bytes
 images/icons/symbol_misc_text.png  | Bin 0 -> 394 bytes
 images/icons/symbol_operators.png  | Bin 0 -> 297 bytes
 images/icons/symbol_relations.png  | Bin 0 -> 275 bytes
 src/symbols.c                      |  14 +-------------
 9 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/TODO b/TODO
index 39fbf75..8a8f07d 100644
--- a/TODO
+++ b/TODO
@@ -10,8 +10,8 @@ Fri Sep 18, 2009 to Fri Sep 25, 2009
        x list environments: itemize, enumerate, description
        x various: label, ref, pageref, cite, footnote, index
 
-[-] symbol tables
-       - the categories must take the minimum place but the presentation must be nice
+[x] symbol tables
+       x the categories must take the minimum place but the presentation must be nice
                * homogeneous icons
                * text under or to the right of the icons?
 
diff --git a/images/icons/symbol_arrows.png b/images/icons/symbol_arrows.png
new file mode 100644
index 0000000..aac78be
Binary files /dev/null and b/images/icons/symbol_arrows.png differ
diff --git a/images/icons/symbol_delimiters.png b/images/icons/symbol_delimiters.png
new file mode 100644
index 0000000..3a47f23
Binary files /dev/null and b/images/icons/symbol_delimiters.png differ
diff --git a/images/icons/symbol_greek.png b/images/icons/symbol_greek.png
new file mode 100644
index 0000000..2c678db
Binary files /dev/null and b/images/icons/symbol_greek.png differ
diff --git a/images/icons/symbol_misc_math.png b/images/icons/symbol_misc_math.png
new file mode 100644
index 0000000..2711114
Binary files /dev/null and b/images/icons/symbol_misc_math.png differ
diff --git a/images/icons/symbol_misc_text.png b/images/icons/symbol_misc_text.png
new file mode 100644
index 0000000..0d1bce7
Binary files /dev/null and b/images/icons/symbol_misc_text.png differ
diff --git a/images/icons/symbol_operators.png b/images/icons/symbol_operators.png
new file mode 100644
index 0000000..ecc9656
Binary files /dev/null and b/images/icons/symbol_operators.png differ
diff --git a/images/icons/symbol_relations.png b/images/icons/symbol_relations.png
new file mode 100644
index 0000000..d9fa14d
Binary files /dev/null and b/images/icons/symbol_relations.png differ
diff --git a/src/symbols.c b/src/symbols.c
index 00eb281..0edfd79 100644
--- a/src/symbols.c
+++ b/src/symbols.c
@@ -38,17 +38,6 @@ static struct {
        gchar *name;
        gchar *icon;
 } categories[] = {
-       {N_("Greek"), DATA_DIR "/images/greek/18.png"},
-       // when we drink too much tequila we walk like this arrow...
-       {N_("Arrows"), DATA_DIR "/images/arrows/58.png"},
-       {N_("Relations"), DATA_DIR "/images/relations/100.png"},
-       {N_("Operators"), DATA_DIR "/images/operators/070.png"},
-       {N_("Delimiters"), DATA_DIR "/images/delimiters/19.png"},
-       {N_("Misc math"), DATA_DIR "/images/misc-math/63.png"},
-       {N_("Misc text"), DATA_DIR "/images/misc-text/057.png"}
-
-       /*
-       // TODO scale the icons to 20x15
        {N_("Greek"), DATA_DIR "/images/icons/symbol_greek.png"},
        // when we drink too much tequila we walk like this arrow...
        {N_("Arrows"), DATA_DIR "/images/icons/symbol_arrows.png"},
@@ -57,7 +46,6 @@ static struct {
        {N_("Delimiters"), DATA_DIR "/images/icons/symbol_delimiters.png"},
        {N_("Misc math"), DATA_DIR "/images/icons/symbol_misc_math.png"},
        {N_("Misc text"), DATA_DIR "/images/icons/symbol_misc_text.png"}
-       */
 };
 
 static struct symbol symbols_greek[] = {
@@ -840,7 +828,7 @@ init_symbols (void)
                        GTK_ORIENTATION_HORIZONTAL);
        //gtk_icon_view_set_columns (GTK_ICON_VIEW (categories_view), -1);
 
-       gtk_icon_view_set_spacing (GTK_ICON_VIEW (categories_view), 0);
+       gtk_icon_view_set_spacing (GTK_ICON_VIEW (categories_view), 5);
        gtk_icon_view_set_row_spacing (GTK_ICON_VIEW (categories_view), 0);
        gtk_icon_view_set_column_spacing (GTK_ICON_VIEW (categories_view), 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]