ekiga r6979 - in trunk: . src/gui
- From: dsandras svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6979 - in trunk: . src/gui
- Date: Sun, 14 Sep 2008 18:05:54 +0000 (UTC)
Author: dsandras
Date: Sun Sep 14 18:05:54 2008
New Revision: 6979
URL: http://svn.gnome.org/viewvc/ekiga?rev=6979&view=rev
Log:
When using the dialpad to enter an URL, insert the digit at the cursor
position and not at the end of the URL, fixes #471805.
Modified:
trunk/ChangeLog
trunk/src/gui/main.cpp
Modified: trunk/src/gui/main.cpp
==============================================================================
--- trunk/src/gui/main.cpp (original)
+++ trunk/src/gui/main.cpp Sun Sep 14 18:05:54 2008
@@ -4338,14 +4338,13 @@
g_return_if_fail (mw != NULL && url != NULL);
- if (gtk_editable_get_selection_bounds (GTK_EDITABLE (mw->entry), NULL, NULL)) {
-
+ if (gtk_editable_get_selection_bounds (GTK_EDITABLE (mw->entry), NULL, NULL))
gtk_editable_delete_selection (GTK_EDITABLE (mw->entry));
- pos = gtk_editable_get_position (GTK_EDITABLE (mw->entry));
- }
+ pos = gtk_editable_get_position (GTK_EDITABLE (mw->entry));
gtk_editable_insert_text (GTK_EDITABLE (mw->entry), url, strlen (url), &pos);
gtk_editable_select_region (GTK_EDITABLE (mw->entry), -1, -1);
+ gtk_editable_set_position (GTK_EDITABLE (mw->entry), pos);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]