r27620 - in /desktop/experimental/epiphany-browser/debian: changelog patches/11_https_select_addressbar.patch patches/series

joss at users.alioth.debian.org joss at users.alioth.debian.org
Sat Apr 16 17:46:12 UTC 2011


Author: joss
Date: Sat Apr 16 17:46:10 2011
New Revision: 27620

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=27620
Log:
11_https_select_addressbar.patch: patch from Alexandre Mazari to fix 
text selection in yellow (https) address bars.

Added:
    desktop/experimental/epiphany-browser/debian/patches/11_https_select_addressbar.patch
Modified:
    desktop/experimental/epiphany-browser/debian/changelog
    desktop/experimental/epiphany-browser/debian/patches/series

Modified: desktop/experimental/epiphany-browser/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/epiphany-browser/debian/changelog?rev=27620&op=diff
==============================================================================
--- desktop/experimental/epiphany-browser/debian/changelog [utf-8] (original)
+++ desktop/experimental/epiphany-browser/debian/changelog [utf-8] Sat Apr 16 17:46:10 2011
@@ -9,6 +9,10 @@
   * debian/patches/00_epiphany-browser.patch: updated patch to also set
     WM_CLASS on Epiphany windows, to help GNOME Shell window -> .desktop
     matching.
+
+  [ Josselin Mouette ]
+  * 11_https_select_addressbar.patch: patch from Alexandre Mazari to fix 
+    text selection in yellow (https) address bars.
 
  -- Frederic Peters <fpeters at debian.org>  Mon, 11 Apr 2011 13:48:50 +0200
 

Added: desktop/experimental/epiphany-browser/debian/patches/11_https_select_addressbar.patch
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/epiphany-browser/debian/patches/11_https_select_addressbar.patch?rev=27620&op=file
==============================================================================
--- desktop/experimental/epiphany-browser/debian/patches/11_https_select_addressbar.patch (added)
+++ desktop/experimental/epiphany-browser/debian/patches/11_https_select_addressbar.patch [utf-8] Sat Apr 16 17:46:10 2011
@@ -1,0 +1,106 @@
+From 24e20d01d1b2b1dc01d674e86168ac5960b7ec57 Mon Sep 17 00:00:00 2001
+From: alexandremazari <scaroo at gmail.com>
+Date: Wed, 16 Mar 2011 13:44:05 +0100
+Subject: [PATCH] Fix for bug 642403: Selecting text in URL bar doesn't highlight
+ if page is encrypted
+
+https://bugzilla.gnome.org/show_bug.cgi?id=642403
+---
+ lib/widgets/ephy-location-entry.c |   42 ++++++++++++++++++++++++++++++++++++-
+ 1 files changed, 41 insertions(+), 1 deletions(-)
+
+diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
+index 0ad8277..969d67a 100644
+--- a/lib/widgets/ephy-location-entry.c
++++ b/lib/widgets/ephy-location-entry.c
+@@ -57,6 +57,8 @@ struct _EphyLocationEntryPrivate
+ 	GdkPixbuf *favicon;
+ 	GdkRGBA secure_bg_color;
+ 	GdkRGBA secure_fg_color;
++	GdkRGBA secure_selected_bg_color;
++	GdkRGBA secure_selected_fg_color;
+ 
+ 	GSList *search_terms;
+ 
+@@ -132,6 +134,8 @@ ephy_location_entry_style_updated (GtkWidget *widget)
+ 	GtkStyleContext *style;
+ 	GdkRGBA *bg_color = NULL;
+ 	GdkRGBA *fg_color = NULL;
++	GdkRGBA *selected_bg_color = NULL;
++	GdkRGBA *selected_fg_color = NULL;
+ 
+ 	char *theme;
+ 	gboolean is_a11y_theme;
+@@ -151,6 +155,8 @@ ephy_location_entry_style_updated (GtkWidget *widget)
+ 	gtk_style_context_get_style (style,
+ 				     "secure-fg-color", &fg_color,
+ 				     "secure-bg-color", &bg_color,
++				     "secure-selected-bg-color", &selected_bg_color,
++				     "secure-selected-fg-color", &selected_fg_color,
+ 				     NULL);
+ 
+ 	/* We only use the fallback colors when we don't have an a11y theme */
+@@ -175,6 +181,24 @@ ephy_location_entry_style_updated (GtkWidget *widget)
+ 	{
+ 		priv->secure_bg_color = fallback_bg_color;
+ 	}
++	if (selected_bg_color != NULL)
++	{
++		priv->secure_selected_bg_color = *selected_bg_color;
++		gdk_rgba_free (selected_bg_color);
++	}
++	else
++	{
++		gtk_style_context_lookup_color (style, "selected_bg_color", &priv->secure_selected_bg_color);
++	}
++	if (selected_fg_color != NULL)
++	{
++		priv->secure_selected_fg_color = *selected_fg_color;
++		gdk_rgba_free (selected_fg_color);
++	}
++	else
++	{
++		gtk_style_context_lookup_color (style, "selected_fg_color", &priv->secure_selected_fg_color);
++	}
+ 
+ 	/* Apply the new style */
+ 	ephy_location_entry_set_secure (entry, priv->secure);
+@@ -312,8 +336,20 @@ ephy_location_entry_class_init (EphyLocationEntryClass *klass)
+ 								     "Foreground colour to use for secure sites",
+ 								     GDK_TYPE_RGBA,
+ 								     G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
++	gtk_widget_class_install_style_property (widget_class,
++	                                         g_param_spec_boxed ("secure-selected-bg-color",
++	                                                             "Secure selection background Colour",
++	                                                             "Background colour to use for selected text on secure sites",
++	                                                             GDK_TYPE_RGBA,
++                                                                     G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
++	gtk_widget_class_install_style_property (widget_class,
++	                                         g_param_spec_boxed ("secure-selected-fg-color",
++                                                                     "Secure selection foreground Colour",
++                                                                     "Foreground colour to use for selected text on secure sites",
++                                                                     GDK_TYPE_RGBA,
++                                                                     G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+ 
+-	g_type_class_add_private (object_class, sizeof (EphyLocationEntryPrivate));
++        g_type_class_add_private (object_class, sizeof (EphyLocationEntryPrivate));
+ }
+ 
+ static void
+@@ -1623,10 +1659,14 @@ ephy_location_entry_set_secure (EphyLocationEntry *entry,
+ 	{
+ 		gtk_widget_override_color (gentry, GTK_STATE_FLAG_NORMAL, &priv->secure_fg_color);
+ 		gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_NORMAL, &priv->secure_bg_color);
++		gtk_widget_override_color (gentry, GTK_STATE_FLAG_SELECTED, &priv->secure_selected_fg_color);
++		gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_SELECTED, &priv->secure_selected_bg_color);
+ 	}
+ 	else
+ 	{
+ 		gtk_widget_override_color (gentry, GTK_STATE_FLAG_NORMAL, NULL);
++		gtk_widget_override_color (gentry, GTK_STATE_FLAG_SELECTED, NULL);
++		gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_SELECTED, NULL);
+ 		gtk_widget_override_background_color (gentry, GTK_STATE_FLAG_NORMAL, NULL);
+ 	}
+ 	gtk_widget_queue_draw (widget);
+-- 
+1.7.4.1

Modified: desktop/experimental/epiphany-browser/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/epiphany-browser/debian/patches/series?rev=27620&op=diff
==============================================================================
--- desktop/experimental/epiphany-browser/debian/patches/series [utf-8] (original)
+++ desktop/experimental/epiphany-browser/debian/patches/series [utf-8] Sat Apr 16 17:46:10 2011
@@ -5,5 +5,6 @@
 05_libexecdir.patch
 07_bookmarks.patch
 10_smart_bookmarks.patch
+11_https_select_addressbar.patch
 12_safetypes.patch
 15_fix_tab_reuse_after_session_restore.patch




More information about the pkg-gnome-commits mailing list