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.
Revision: 356
Author: eht16
Date: 2006-05-22 06:43:56 -0700 (Mon, 22 May 2006)
ViewCVS: http://svn.sourceforge.net/geany/?rev=356&view=rev
Log Message:
-----------
improved toggle visibility of sidebar when toggled by keyboard
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/keybindings.c
trunk/src/utils.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-05-22 11:55:07 UTC (rev 355)
+++ trunk/ChangeLog 2006-05-22 13:43:56 UTC (rev 356)
@@ -1,3 +1,9 @@
+2006-05-22 Enrico Troeger <enrico.troeger(a)uvena.de>
+
+ * src/keybindings.c, src/utils.c: improved toggle visibility of
+ sidebar when toggled by keyboard
+
+
2006-05-21 Enrico Troeger <enrico.troeger(a)uvena.de>
* src/keybindings.c: added menu_messagewindow and toggle_sidebar
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2006-05-22 11:55:07 UTC (rev 355)
+++ trunk/src/keybindings.c 2006-05-22 13:43:56 UTC (rev 356)
@@ -484,10 +484,28 @@
static void cb_func_toggle_sidebar(void)
{
- app->treeview_symbol_visible = ! app->treeview_symbol_visible;
- app->treeview_openfiles_visible = ! app->treeview_openfiles_visible;
+ static gboolean symbol = FALSE;
+ static gboolean openfiles = FALSE;
+ static gboolean is_visible = FALSE;
- utils_treeviews_showhide();;
+ /* this code is a bit confusing, but I want to keep the settings in the preferences dialog
+ * synchronous with the real status of the sidebar, so we have to store the previous state when
+ * hiding the sidebar to restore it correctly */
+ is_visible = (app->treeview_symbol_visible || app->treeview_openfiles_visible) ? TRUE : FALSE;
+ if (is_visible)
+ {
+ symbol = app->treeview_symbol_visible;
+ openfiles = app->treeview_openfiles_visible;
+ app->treeview_symbol_visible = FALSE;
+ app->treeview_openfiles_visible = FALSE;
+ }
+ else
+ {
+ app->treeview_symbol_visible = symbol;
+ app->treeview_openfiles_visible = openfiles;
+ }
+
+ utils_treeviews_showhide();
}
static void cb_func_edit_duplicateline(void)
Modified: trunk/src/utils.c
===================================================================
--- trunk/src/utils.c 2006-05-22 11:55:07 UTC (rev 355)
+++ trunk/src/utils.c 2006-05-22 13:43:56 UTC (rev 356)
@@ -649,7 +649,7 @@
}
// make all inactive, because there is no more tab left, or something strange occured
- if (idx == -1 || ! app->treeview_symbol_visible || ! doc_list[idx].file_type->has_tags)
+ if (idx == -1 || ! doc_list[idx].file_type->has_tags)
{
gtk_widget_set_sensitive(app->tagbar, FALSE);
gtk_container_add(GTK_CONTAINER(app->tagbar), app->default_tag_tree);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.