Revision: 1686
http://svn.sourceforge.net/geany/?rev=1686&view=rev
Author: eht16
Date: 2007-07-09 09:01:23 -0700 (Mon, 09 Jul 2007)
Log Message:
-----------
Focus the editor widget after switching between files with the open files list.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/treeviews.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-07-09 15:35:25 UTC (rev 1685)
+++ trunk/ChangeLog 2007-07-09 16:01:23 UTC (rev 1686)
@@ -11,6 +11,8 @@
* src/symbols.c, tagmanager/php.c:
Use CTags SVN version of PHP parser.
Use only supported symbol types in the symbol view for PHP.
+ * src/treeviews.c: Focus the editor widget after switching between
+ files with the open files list.
2007-07-08 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/src/treeviews.c
===================================================================
--- trunk/src/treeviews.c 2007-07-09 15:35:25 UTC (rev 1685)
+++ trunk/src/treeviews.c 2007-07-09 16:01:23 UTC (rev 1686)
@@ -414,6 +414,13 @@
}
+static gboolean change_focus(GtkWidget *widget)
+{
+ gtk_widget_grab_focus(widget);
+ return FALSE;
+}
+
+
static void on_openfiles_tree_selection_changed(GtkTreeSelection *selection, gpointer data)
{
GtkTreeIter iter;
@@ -427,6 +434,7 @@
gtk_notebook_set_current_page(GTK_NOTEBOOK(app->notebook),
gtk_notebook_page_num(GTK_NOTEBOOK(app->notebook),
(GtkWidget*) doc_list[idx].sci));
+ g_idle_add((GSourceFunc) change_focus, GTK_WIDGET(doc_list[idx].sci));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1681
http://svn.sourceforge.net/geany/?rev=1681&view=rev
Author: eht16
Date: 2007-07-09 06:16:26 -0700 (Mon, 09 Jul 2007)
Log Message:
-----------
Always show calltip for PHP files.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-07-09 12:46:16 UTC (rev 1680)
+++ trunk/ChangeLog 2007-07-09 13:16:26 UTC (rev 1681)
@@ -3,6 +3,7 @@
* src/filetypes.c, src/filetypes.h:
Change name of XML filetype to "XML document".
Add sub menus to "Set Filetype" menu.
+ * src/editor.c: Always show calltip for PHP files.
2007-07-08 Enrico Tröger <enrico.troeger(a)uvena.de>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2007-07-09 12:46:16 UTC (rev 1680)
+++ trunk/src/editor.c 2007-07-09 13:16:26 UTC (rev 1681)
@@ -859,9 +859,6 @@
style = SSM(sci, SCI_GETSTYLEAT, pos, 0);
if (is_comment(lexer, style))
return FALSE;
- // never show a calltip in a PHP file outside of the <? ?> tags
- if (lexer == SCLEX_HTML && ! (style >= SCE_HPHP_DEFAULT && style <= SCE_HPHP_OPERATOR))
- return FALSE;
word[0] = '\0';
editor_find_current_word(sci, pos - 1, word, sizeof word, NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.