Revision: 4800 http://geany.svn.sourceforge.net/geany/?rev=4800&view=rev Author: ntrel Date: 2010-04-05 11:44:56 +0000 (Mon, 05 Apr 2010)
Log Message: ----------- Make Ctrl-click on any notebook tab switch to the last used document.
Modified Paths: -------------- trunk/ChangeLog trunk/doc/geany.html trunk/doc/geany.txt trunk/src/notebook.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-04-05 11:42:31 UTC (rev 4799) +++ trunk/ChangeLog 2010-04-05 11:44:56 UTC (rev 4800) @@ -2,6 +2,9 @@
* src/keybindings.c, src/keybindings.h, doc/plugins.dox: Add API docs for keybinding enums. + * src/notebook.c, doc/geany.txt, doc/geany.html: + Make Ctrl-click on any notebook tab switch to the last used + document.
2010-04-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/doc/geany.html =================================================================== --- trunk/doc/geany.html 2010-04-05 11:42:31 UTC (rev 4799) +++ trunk/doc/geany.html 2010-04-05 11:44:56 UTC (rev 4800) @@ -6,7 +6,7 @@ <meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" /> <title>Geany</title> <meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" /> -<meta name="date" content="2010-03-09" /> +<meta name="date" content="2010-03-10" /> <style type="text/css">
/* @@ -139,7 +139,7 @@ <br />Nick Treleaven <br />Frank Lanitz</td></tr> <tr><th class="docinfo-name">Date:</th> -<td>2010-03-09</td></tr> +<td>2010-03-10</td></tr> <tr><th class="docinfo-name">Version:</th> <td>0.19</td></tr> </tbody> @@ -3257,7 +3257,7 @@ </tr> <tr><td>Show calltip</td> <td>Ctrl-Shift-Space</td> -<td>Shows call tips for the current function or +<td>Shows a calltip for the current function or method.</td> </tr> <tr><td>Show macro list</td> @@ -5290,10 +5290,12 @@ <ul class="simple"> <li>Double-click on empty space in the notebook tab bar to open a new document.</li> +<li>Middle-click on a document's notebook tab to close the document.</li> +<li>Hold <cite>Ctrl</cite> and click on any notebook tab to switch to the last used +document.</li> <li>Double-click on a document's notebook tab to toggle all additional widgets (to show them again use the View menu or the keyboard shortcut). The interface pref must be enabled for this to work.</li> -<li>Middle-click on a document's notebook tab to close the document.</li> </ul> </div> <div class="section"> @@ -5955,7 +5957,7 @@ <div class="footer"> <hr class="footer" /> <a class="reference" href="geany.txt">View document source</a>. -Generated on: 2010-03-10 13:48 UTC. +Generated on: 2010-04-01 16:25 UTC. Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: trunk/doc/geany.txt =================================================================== --- trunk/doc/geany.txt 2010-04-05 11:42:31 UTC (rev 4799) +++ trunk/doc/geany.txt 2010-04-05 11:44:56 UTC (rev 4800) @@ -2944,7 +2944,7 @@ completion. Likewise if no tag suggestions are available, it shows document word completion.
-Show calltip Ctrl-Shift-Space Shows call tips for the current function or +Show calltip Ctrl-Shift-Space Shows a calltip for the current function or method.
Show macro list Ctrl-Return Shows a list of available macros and variables in @@ -4511,10 +4511,12 @@
* Double-click on empty space in the notebook tab bar to open a new document. +* Middle-click on a document's notebook tab to close the document. +* Hold `Ctrl` and click on any notebook tab to switch to the last used + document. * Double-click on a document's notebook tab to toggle all additional widgets (to show them again use the View menu or the keyboard shortcut). The interface pref must be enabled for this to work. -* Middle-click on a document's notebook tab to close the document.
Editor ------
Modified: trunk/src/notebook.c =================================================================== --- trunk/src/notebook.c 2010-04-05 11:42:31 UTC (rev 4799) +++ trunk/src/notebook.c 2010-04-05 11:44:56 UTC (rev 4800) @@ -35,6 +35,7 @@ #include "support.h" #include "callbacks.h" #include "utils.h" +#include "keybindings.h"
#define GEANY_DND_NOTEBOOK_TAB_TYPE "geany_dnd_notebook_tab"
@@ -435,7 +436,13 @@ GTK_WIDGET(data))); return TRUE; /* stop other handlers like notebook_tab_bar_click_cb() */ } - + /* switch last used tab on ctrl-click */ + if (event->button == 1 && event->state == GDK_CONTROL_MASK) + { + keybindings_send_command(GEANY_KEY_GROUP_NOTEBOOK, + GEANY_KEYS_NOTEBOOK_SWITCHTABLASTUSED); + return TRUE; + } return FALSE; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.