Revision: 963
http://svn.sourceforge.net/geany/?rev=963&view=rev
Author: ntrel
Date: 2006-11-03 07:03:57 -0800 (Fri, 03 Nov 2006)
Log Message:
-----------
Focus the current document after clicking on a tab.
Modified Paths:
--------------
trunk/src/notebook.c
Modified: trunk/src/notebook.c
===================================================================
--- trunk/src/notebook.c 2006-11-03 12:21:12 UTC (rev 962)
+++ trunk/src/notebook.c 2006-11-03 15:03:57 UTC (rev 963)
@@ -58,8 +58,22 @@
static void setup_tab_dnd();
+static void focus_sci(GtkWidget *widget, gpointer user_data)
+{
+ gint idx = document_get_cur_idx();
+
+ if (! DOC_IDX_VALID(idx)) return;
+
+ gtk_widget_grab_focus(GTK_WIDGET(doc_list[idx].sci));
+}
+
+
void notebook_init()
{
+ // focus the current document after clicking on a tab
+ g_signal_connect_after(G_OBJECT(app->notebook), "button-release-event",
+ G_CALLBACK(focus_sci), NULL);
+
setup_tab_dnd();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 962
http://svn.sourceforge.net/geany/?rev=962&view=rev
Author: ntrel
Date: 2006-11-03 04:21:12 -0800 (Fri, 03 Nov 2006)
Log Message:
-----------
Don't set error indicators when clicking on an error message if the
document has been modified.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/msgwindow.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-11-02 23:22:34 UTC (rev 961)
+++ trunk/ChangeLog 2006-11-03 12:21:12 UTC (rev 962)
@@ -1,3 +1,10 @@
+2006-11-03 Nick Treleaven <nick.treleaven(a)btinternet.com>
+
+ * src/msgwindow.c:
+ Don't set error indicators when clicking on an error message if the
+ document has been modified.
+
+
2006-11-02 Enrico Tröger <enrico.troeger(a)uvena.de>
* src/callbacks.c, src/dialogs:
Modified: trunk/src/msgwindow.c
===================================================================
--- trunk/src/msgwindow.c 2006-11-02 23:22:34 UTC (rev 961)
+++ trunk/src/msgwindow.c 2006-11-03 12:21:12 UTC (rev 962)
@@ -317,7 +317,8 @@
if (idx >= 0 && doc_list[idx].is_valid)
{
- document_set_indicator(idx, line - 1);
+ if (! doc_list[idx].changed) // if modified, line may be wrong
+ document_set_indicator(idx, line - 1);
ret = utils_goto_line(idx, line);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 959
http://svn.sourceforge.net/geany/?rev=959&view=rev
Author: eht16
Date: 2006-11-01 09:53:54 -0800 (Wed, 01 Nov 2006)
Log Message:
-----------
Fixed typo.
Modified Paths:
--------------
trunk/ChangeLog
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2006-11-01 16:52:16 UTC (rev 958)
+++ trunk/ChangeLog 2006-11-01 17:53:54 UTC (rev 959)
@@ -2,7 +2,7 @@
* src/search.c: Changed tooltip of checkbox "Close dialog" to be more
descriptive.
- * src/keybindings.c: Changed keybinding for Print to Ctrl+C.
+ * src/keybindings.c: Changed keybinding for Print to Ctrl+P.
* scintilla/LexBash.cxx: Fixed wrong detection of some words.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.