Bug#417836: cannot word-select in URL bar using double click

Sam Hocevar sam at zoy.org
Wed Apr 4 19:21:58 UTC 2007


Package: epiphany-browser
Version: 2.18.0-2
Severity: normal
Tags: patch

   This is a very old behaviour of Epiphany, but I am just trying to
switch from Galeon so I'm discovering it.

   Most GNOME applications, including Galeon, let you select words
by double-clicking them in a text entry. This cannot be done in the
Epiphany URL location because a double click selects the whole area. My
suggestion is to remove this behaviour, because there is no other way
to do quick word selection, while selecting the URL can be done by many
other means:

  * triple-clicking the text in the URL location (usual GNOME way)
  * clicking the icon in the URL location
  * pressing Ctrl-L

   In case you wonder why one would need that: selecting words in the
location bar allows for quick URL hacking. Double click, change word,
press enter, done.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (50, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages epiphany-browser depends on:
ii  dbus                      1.0.2-1        simple interprocess messaging syst
ii  gconf2                    2.16.1-1       GNOME configuration database syste
ii  gnome-icon-theme          2.14.2-3       GNOME Desktop icon theme
ii  iso-codes                 1.0a-1         ISO language, territory, currency 
ii  libart-2.0-2              2.3.17-1       Library of functions for 2D graphi
ii  libatk1.0-0               1.12.4-3       The ATK accessibility toolkit
ii  libaudiofile0             0.2.6-6        Open-source version of SGI's audio
ii  libavahi-client3          0.6.16-5       Avahi client library
ii  libavahi-common3          0.6.16-5       Avahi common library
ii  libavahi-glib1            0.6.16-5       Avahi glib integration library
ii  libbonobo2-0              2.14.0-4       Bonobo CORBA interfaces library
ii  libbonoboui2-0            2.14.0-6       The Bonobo UI library
ii  libc6                     2.3.6.ds1-13   GNU C Library: Shared libraries
ii  libcairo2                 1.2.4-4        The Cairo 2D vector graphics libra
ii  libdbus-1-3               1.0.2-1        simple interprocess messaging syst
ii  libdbus-glib-1-2          0.71-3         simple interprocess messaging syst
ii  libesd0                   0.2.36-3       Enlightened Sound Daemon - Shared 
ii  libfontconfig1            2.4.2-1.2      generic font configuration library
ii  libfreetype6              2.2.1-5        FreeType 2 font engine, shared lib
ii  libgcc1                   1:4.1.1-21     GCC support library
ii  libgconf2-4               2.16.1-1       GNOME configuration database syste
ii  libgcrypt11               1.2.3-2        LGPL Crypto library - runtime libr
ii  libglade2-0               1:2.6.0-4      library to load .glade files at ru
ii  libglib2.0-0              2.12.6-2       The GLib library of C routines
ii  libgnome-desktop-2        2.14.3-2       Utility library for loading .deskt
ii  libgnome-keyring0         0.6.0-3        GNOME keyring services library
ii  libgnome2-0               2.16.0-2       The GNOME 2 library - runtime file
ii  libgnomecanvas2-0         2.14.0-2       A powerful object-oriented display
ii  libgnomeui-0              2.18.1-1       The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            1:2.14.2-7     GNOME virtual file-system (runtime
ii  libgnutls13               1.4.4-3        the GNU TLS library - runtime libr
ii  libgpg-error0             1.4-2          library for common error values an
ii  libgtk2.0-0               2.10.11-1      The GTK+ graphical user interface 
ii  libice6                   1:1.0.1-2      X11 Inter-Client Exchange library
ii  libmozjs0d                1.8.0.11-2     The Mozilla SpiderMonkey JavaScrip
ii  libnspr4-0d               1.8.0.11-2     NetScape Portable Runtime Library
ii  liborbit2                 1:2.14.4-1     libraries for ORBit2 - a CORBA ORB
ii  libpango1.0-0             1.14.8-5       Layout and rendering of internatio
ii  libpng12-0                1.2.15~beta5-1 PNG library - runtime
ii  libpopt0                  1.10-3         lib for parsing cmdline parameters
ii  libsm6                    1:1.0.1-3      X11 Session Management library
ii  libstartup-notification0  0.9-1          library for program launch feedbac
ii  libstdc++6                4.1.1-21       The GNU Standard C++ Library v3
ii  libtasn1-3                0.3.6-2        Manage ASN.1 structures (runtime)
ii  libx11-6                  2:1.0.3-6      X11 client-side library
ii  libxcursor1               1.1.7-4        X cursor management library
ii  libxext6                  1:1.0.1-2      X11 miscellaneous extension librar
ii  libxfixes3                1:4.0.1-5      X11 miscellaneous 'fixes' extensio
ii  libxi6                    1:1.0.1-4      X11 Input extension library
ii  libxinerama1              1:1.0.1-4.1    X11 Xinerama extension library
ii  libxml2                   2.6.27.dfsg-1  GNOME XML library
ii  libxrandr2                2:1.1.0.2-5    X11 RandR extension library
ii  libxrender1               1:0.9.1-3      X Rendering Extension client libra
ii  libxslt1.1                1.1.19-1       XSLT processing library - runtime 
ii  libxul0d                  1.8.0.11-2     Gecko engine library
ii  python2.4                 2.4.4-2        An interactive high-level object-o
ii  xulrunner-gnome-support   1.8.0.11-2     Support for Gnome in xulrunner app
ii  zlib1g                    1:1.2.3-13     compression library - runtime

Versions of packages epiphany-browser recommends:
ii  epiphany-extensions           2.18.0-3   Extensions for Epiphany web browse
ii  yelp                          2.14.3-2   Help browser for GNOME 2

-- no debconf information
-------------- next part --------------
diff -puriN epiphany-browser-2.18.0.orig/lib/widgets/ephy-location-entry.c epiphany-browser-2.18.0/lib/widgets/ephy-location-entry.c
--- epiphany-browser-2.18.0.orig/lib/widgets/ephy-location-entry.c	2007-03-06 13:31:54 +0100
+++ epiphany-browser-2.18.0/lib/widgets/ephy-location-entry.c	2007-04-04 20:50:45 +0200
@@ -369,18 +369,6 @@ editable_changed_cb (GtkEditable *editab
 }
 
 static gboolean
-entry_button_press_cb (GtkWidget *entry, GdkEventButton *event, EphyLocationEntry *le)
-{
-	if (event->button == 1 && event->type == GDK_2BUTTON_PRESS)
-	{
-		ephy_location_entry_activate (le);
-		return TRUE;
-	}
-
-	return FALSE;
-}
-
-static gboolean
 entry_key_press_cb (GtkEntry *entry,
 		    GdkEventKey *event,
 		    EphyLocationEntry *lentry)
@@ -939,8 +927,6 @@ ephy_location_entry_construct_contents (
 				G_CALLBACK (entry_key_press_after_cb), entry);
 	g_signal_connect_after (priv->icon_entry->entry, "activate",
 				G_CALLBACK (entry_activate_after_cb), entry);
-	g_signal_connect (priv->icon_entry->entry, "button-press-event",
-			  G_CALLBACK (entry_button_press_cb), entry);
 	g_signal_connect (priv->icon_entry->entry, "changed",
 			  G_CALLBACK (editable_changed_cb), entry);
 	g_signal_connect (priv->icon_entry->entry, "drag-motion",


More information about the pkg-gnome-maintainers mailing list