Revision: 368
Author: ntrel
Date: 2006-05-26 10:11:41 -0700 (Fri, 26 May 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=368&view=rev
Log Message:
-----------
Fix incremental find and replace of back to back matches
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-05-26 17:03:32 UTC (rev 367)
+++ trunk/ChangeLog 2006-05-26 17:11:41 UTC (rev 368)
@@ -4,6 +4,8 @@
Fixed nasty hang when closing a tab and both the next tab and the
first tab files have been externally modified.
* src/dialogs.c: Add mnemonics to Replace dialog buttons, reorder.
+ * src/document.c: Fix incremental find and replace of back to back
+ matches.
2006-05-25 Nick Treleaven <nick.treleaven(a)btinternet.com>
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-05-26 17:03:32 UTC (rev 367)
+++ trunk/src/document.c 2006-05-26 17:11:41 UTC (rev 368)
@@ -671,7 +671,7 @@
selection_end = sci_get_selection_end(doc_list[idx].sci);
if (!inc && sci_can_copy(doc_list[idx].sci))
{ // there's a selection so go to the end
- sci_goto_pos(doc_list[idx].sci, selection_end + 1, TRUE);
+ sci_goto_pos(doc_list[idx].sci, selection_end, TRUE);
}
sci_set_search_anchor(doc_list[idx].sci);
@@ -711,9 +711,9 @@
if ((selection_end - selection_start) > 0)
{ // there's a selection so go to the end
if (search_backwards)
- sci_goto_pos(doc_list[idx].sci, selection_start - 1, TRUE);
+ sci_goto_pos(doc_list[idx].sci, selection_start, TRUE);
else
- sci_goto_pos(doc_list[idx].sci, selection_end + 1, TRUE);
+ sci_goto_pos(doc_list[idx].sci, selection_end, TRUE);
}
sci_set_search_anchor(doc_list[idx].sci);
@@ -749,9 +749,9 @@
if ((selection_end - selection_start) > 0)
{ // there's a selection so go to the end
if (search_backwards)
- sci_goto_pos(doc_list[idx].sci, selection_start - 1, TRUE);
+ sci_goto_pos(doc_list[idx].sci, selection_start, TRUE);
else
- sci_goto_pos(doc_list[idx].sci, selection_end + 1, TRUE);
+ sci_goto_pos(doc_list[idx].sci, selection_end, TRUE);
}
sci_set_search_anchor(doc_list[idx].sci);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 363
Author: ntrel
Date: 2006-05-25 05:57:12 -0700 (Thu, 25 May 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=363&view=rev
Log Message:
-----------
On loading use SCI_SETTEXT instead of SCI_ADDTEXT to avoid Scintilla text changed signal
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/document.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-05-24 16:56:14 UTC (rev 362)
+++ trunk/ChangeLog 2006-05-25 12:57:12 UTC (rev 363)
@@ -1,3 +1,9 @@
+2006-05-25 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * src/document.c: On loading use SCI_SETTEXT instead of SCI_ADDTEXT
+ to avoid Scintilla text changed signal.
+
+
2006-05-24 Nick Treleaven <nick.treleaven(a)btinternet.com>
* src/keybindings.c, src/keybindings.h:
Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c 2006-05-24 16:56:14 UTC (rev 362)
+++ trunk/src/document.c 2006-05-25 12:57:12 UTC (rev 363)
@@ -508,8 +508,8 @@
if (! reload) idx = document_create_new_sci(utf8_filename);
- // sets editor mode and add the text to the ScintillaObject
- sci_add_text_buffer(doc_list[idx].sci, data, size);
+ // set editor mode and add the text to the ScintillaObject
+ sci_set_text(doc_list[idx].sci, data); // NULL terminated data; avoids Unsaved
editor_mode = utils_get_line_endings(data, size);
sci_set_eol_mode(doc_list[idx].sci, editor_mode);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 360
Author: ntrel
Date: 2006-05-23 13:26:23 -0700 (Tue, 23 May 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=360&view=rev
Log Message:
-----------
remove vte middle click override to allow X paste and update popup preferences item for Terminal tab number
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/vte.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-05-23 19:31:09 UTC (rev 359)
+++ trunk/ChangeLog 2006-05-23 20:26:23 UTC (rev 360)
@@ -4,7 +4,9 @@
utils_goto_workspace_tag
* src/interface.c, src/callbacks.c, src/callbacks.h, geany.glade:
created Search menubar item with Find items from Edit menu, added
- Find Previous and Go to line commands.
+ Find Previous and Go to line commands
+ * src/vte.c: remove vte middle click override to allow X paste and
+ update popup preferences item for Terminal tab number
2006-05-22 Nick Treleaven <nick.treleaven(a)btinternet.com>
Modified: trunk/src/vte.c
===================================================================
--- trunk/src/vte.c 2006-05-23 19:31:09 UTC (rev 359)
+++ trunk/src/vte.c 2006-05-23 20:26:23 UTC (rev 360)
@@ -235,16 +235,8 @@
static gboolean vte_button_pressed(GtkWidget *widget, GdkEventButton *event, gpointer user_data)
{
- if (event->button == 2)
+ if (event->button == 3)
{
- /* this behaviour(pasting at mouse button 2) seems to be default, but don't know
- * if it is always the same, so I implement it by myself to be sure and
- * return TRUE to prevent the default behaviour */
- vf->vte_terminal_paste_clipboard(VTE_TERMINAL(widget));
- return TRUE;
- }
- else if (event->button == 3)
- {
gtk_menu_popup(GTK_MENU(vc->menu), NULL, NULL, NULL, NULL, event->button, event->time);
}
@@ -335,7 +327,7 @@
case 2:
{
on_preferences1_activate(menuitem, NULL);
- gtk_notebook_set_current_page(GTK_NOTEBOOK(lookup_widget(app->prefs_dialog, "notebook2")), 4);
+ gtk_notebook_set_current_page(GTK_NOTEBOOK(lookup_widget(app->prefs_dialog, "notebook2")), 5);
break;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.