[the-board] [ui] Select all page title when editing starts



commit b56072d7bca1245a6d8ad8792e4ef878074f95db
Author: Lucas Rocha <lucasr gnome org>
Date:   Tue Jan 18 23:33:03 2011 +0000

    [ui] Select all page title when editing starts

 src/js/ui/toolBoxPages.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/toolBoxPages.js b/src/js/ui/toolBoxPages.js
index 40f4c0f..57a2638 100644
--- a/src/js/ui/toolBoxPages.js
+++ b/src/js/ui/toolBoxPages.js
@@ -273,6 +273,8 @@ ToolBoxPages.prototype = {
         this._pageEntry.grab_key_focus();
         this._pageEntry.clutterText.set_cursor_position(-1);
 
+        this._pageEntry.clutterText.set_selection(-1, 0);
+
         this._buttonBox.set_name(_BUTTON_BOX_NAME_EDITING);
 
         this._updateActionButton();



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