[tepl] InfoBar: more explanations about why making the action area vertical



commit 642c3b27764fe8e1df78d6c89754915a80cb56cc
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sun Jul 23 11:20:01 2017 +0200

    InfoBar: more explanations about why making the action area vertical

 tepl/tepl-info-bar.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tepl/tepl-info-bar.c b/tepl/tepl-info-bar.c
index cc732f4..e936f4d 100644
--- a/tepl/tepl-info-bar.c
+++ b/tepl/tepl-info-bar.c
@@ -86,11 +86,17 @@ tepl_info_bar_init (TeplInfoBar *info_bar)
        _tepl_info_bar_set_size_request (GTK_INFO_BAR (info_bar));
 
        /* Change the buttons orientation to be vertical.
+        *
         * With a small window, if 3 or more buttons are shown horizontally,
         * there is a ridiculous amount of space for the text. And it can get
         * worse since the button labels are translatable, in other languages it
         * can take even more place. If the buttons are packed vertically, there
         * is no problem.
+        *
+        * The GtkInfoBar implementation comes originally from gedit, and the
+        * action area was vertical. Then IIRC a GNOME designer decided that the
+        * action area must be horizontal, making the gedit info bars look
+        * weird... So, come back to the original design.
         */
        action_area = gtk_info_bar_get_action_area (GTK_INFO_BAR (info_bar));
        if (GTK_IS_ORIENTABLE (action_area))


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