[gnumeric] GUI: Adjustments, most of for vertical toolbars.



commit f575631926b74cb31e55a3b0f5ba1462c1b4fb00
Author: Morten Welinder <terra gnome org>
Date:   Fri Jan 21 19:27:46 2022 -0500

    GUI: Adjustments, most of for vertical toolbars.

 src/gnumeric.css      | 22 +++++++++++++++++-----
 src/wbc-gtk-actions.c |  6 +++++-
 2 files changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/src/gnumeric.css b/src/gnumeric.css
index 4d718060d..68aa6015c 100644
--- a/src/gnumeric.css
+++ b/src/gnumeric.css
@@ -259,33 +259,45 @@ button > *.auto-filter:active {
   color: #ff6000;
 }
 
-toolbar gocombobox {
+toolbar.horizontal gocombobox {
     /* Some spacing to make the arrow appear closer to the (correct) button */
     padding-left: 3px;
     padding-right: 3px;
     margin: 0;
 }
 
-toolbar gocombobox button.toggle {
+toolbar.horizontal gocombobox button.toggle {
     padding: 0;
 }
 
-toolbar combobox button.combo {
+toolbar.horizontal combobox button.combo {
     padding: 0;
 }
 
-toolbar combobox button.combo box {
+toolbar.horizontal combobox button.combo box {
     padding: 0;
     /* Unsure why something isn't symmetric.  */
     padding-right: 2px;
 }
 
 /* The zoom entry box shows digits only so no need for padding.  */
-toolbar combobox entry.combo {
+toolbar.horizontal combobox entry.combo {
     padding-top: 0;
     padding-bottom: 0;
 }
 
+/* The font button should not be so tall.  */
+toolbar.horizontal button#font {
+    padding-top: 0;
+    padding-bottom: 0;
+}
+
+/* Squeeze hard -- vertical space is at a premium.  */
+toolbar.vertical button {
+    padding-top: 1pt;
+    padding-bottom: 1pt;
+}
+
 #else
 
 /* Extra space around multiple toolbars adds up quickly so avoid it. */
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index 1b1d6d8a9..14b1bebb9 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -3499,12 +3499,14 @@ static GnmActionEntry const actions[] = {
        /* Gtk marks these accelerators as invalid because they use Tab
         * enable them manually in gnm-pane.c */
        { .name = "FormatDecreaseIndent",
+         .label = N_("Decrease Indentation"),
          .icon = "format-indent-less",
          .accelerator = "<control><alt><shift>Tab",
          .tooltip = N_("Decrease the indent, and align the contents to the left"),
          .callback = G_CALLBACK (cb_format_dec_indent)
        },
        { .name = "FormatIncreaseIndent",
+         .label = N_("Increase Indentation"),
          .icon = "format-indent-more",
          .accelerator = "<control><alt>Tab",
          .tooltip = N_("Increase the indent, and align the contents to the left"),
@@ -3757,7 +3759,7 @@ wbc_gtk_init_alignments (WBCGtk *wbcg)
        gnm_action_group_add_action (wbcg->actions, GTK_ACTION (wbcg->halignment));
 
        wbcg->valignment = go_action_combo_pixmaps_new ("VAlignmentSelector",
-                                                      valignment_combo_info, 1, 3);
+                                                      valignment_combo_info, 5, 1);
        g_object_set (G_OBJECT (wbcg->valignment),
                      "label", _("Vertical Alignment"),
                      "tooltip", _("Vertical Alignment"),
@@ -4281,6 +4283,7 @@ gnm_font_action_create_tool_item (GtkAction *action)
                 NULL);
        GtkWidget *but = g_object_new
                (gnm_font_button_get_type(),
+                "name", "font",
                 "dialog-type", GO_TYPE_FONT_SEL_DIALOG,
                 "show-preview-entry", TRUE,
                 "show-style", FALSE,
@@ -4399,6 +4402,7 @@ wbc_gtk_init_font_name (WBCGtk *gtk, gboolean horiz)
 {
        GtkAction *act = g_object_new
                (horiz ? gnm_font_action_get_type () : GTK_TYPE_ACTION,
+                "label", _("Font"),
                 "visible-vertical", !horiz,
                 "visible-horizontal", horiz,
                 "name", (horiz ? "FontName" : "VFontName"),


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