[epiphany] Do not show down arrow in title box in app mode



commit a1350e9286ec77e0397ee341aa20b268254efefc
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Wed Aug 13 11:42:43 2014 -0500

    Do not show down arrow in title box in app mode
    
    In application mode, the title box is not clickable, so it's wrong to
    show a down arrow next to the web address. (The down arrow is used to
    indicate that the user can click on the title box.)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=734732

 src/ephy-title-box.c |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c
index 4cddeae..8ee4a4f 100644
--- a/src/ephy-title-box.c
+++ b/src/ephy-title-box.c
@@ -484,14 +484,20 @@ ephy_title_box_transform_uri_to_label (GBinding     *binding,
                                        GValue       *to_value,
                                        gpointer      user_data)
 {
-  const gchar *label;
-  gboolean     rtl;
-  gchar       *uri;
-
-  rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL;
+  const gchar       *label;
+  gchar             *uri;
+  EphyEmbedShellMode mode;
 
   label = g_value_get_string (from_value);
-  uri = g_strconcat (rtl ? "▾ " : label, rtl ? label : " ▾", NULL);
+  mode = ephy_embed_shell_get_mode (ephy_embed_shell_get_default ());
+
+  if (mode == EPHY_EMBED_SHELL_MODE_APPLICATION) {
+    uri = g_strdup (label);
+  } else {
+    gboolean rtl;
+    rtl = gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL;
+    uri = g_strconcat (rtl ? "▾ " : label, rtl ? label : " ▾", NULL);
+  }
   g_value_take_string (to_value, uri);
 
   return TRUE;


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