SF.net SVN: geany: [1169] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Mon Jan 8 18:15:07 UTC 2007
Revision: 1169
http://svn.sourceforge.net/geany/?rev=1169&view=rev
Author: eht16
Date: 2007-01-08 10:15:06 -0800 (Mon, 08 Jan 2007)
Log Message:
-----------
Added keyboard shortcut for Save As.
Added missing documentation for some keyboard shortcuts.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.docbook
trunk/src/keybindings.c
trunk/src/keybindings.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-07 18:48:56 UTC (rev 1168)
+++ trunk/ChangeLog 2007-01-08 18:15:06 UTC (rev 1169)
@@ -1,3 +1,10 @@
+2007-01-08 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * doc/geany.docbook, src/keybindings.c, src/keybindings.h:
+ Added keyboard shortcut for Save As.
+ Added missing documentation for some keyboard shortcuts.
+
+
2007-01-07 Nick Treleaven <nick.treleaven at btinternet.com>
* src/utils.c, src/utils.h, src/encodings.c, src/document.c,
Modified: trunk/doc/geany.docbook
===================================================================
--- trunk/doc/geany.docbook 2007-01-07 18:48:56 UTC (rev 1168)
+++ trunk/doc/geany.docbook 2007-01-08 18:15:06 UTC (rev 1169)
@@ -1146,6 +1146,10 @@
<entry>Saves the current file.</entry>
</row>
<row>
+ <entry>Save As</entry>
+ <entry>Saves the current file under a new name.</entry>
+ </row>
+ <row>
<entry>Save all</entry>
<entry>Saves all open files.</entry>
</row>
@@ -1180,6 +1184,10 @@
</entry>
</row>
<row>
+ <entry>Insert date</entry>
+ <entry>Inserts a customisable date.</entry>
+ </row>
+ <row>
<entry>Preferences</entry>
<entry>Opens preferences dialog.</entry>
</row>
@@ -1200,6 +1208,11 @@
<entry>Opens the Find in files dialog.</entry>
</row>
<row>
+ <entry>Next message</entry>
+ <entry>Jumps to the line with the next message from the last call
+ to Find usage.</entry>
+ </row>
+ <row>
<entry>Go to line</entry>
<entry>Opens the Go to line dialog.</entry>
</row>
@@ -1268,6 +1281,12 @@
</entry>
</row>
<row>
+ <entry>Next error</entry>
+ <entry>Jumps to the line with the next error from the last build
+ process.
+ </entry>
+ </row>
+ <row>
<entry>Run</entry>
<entry>Executes the current file in a terminal emulation.</entry>
</row>
@@ -1310,6 +1329,14 @@
<entry align="left" spanname="hspan">Editing operations</entry>
</row>
<row>
+ <entry>Convert selection to lower case</entry>
+ <entry>Converts the current selection to lower case.</entry>
+ </row>
+ <row>
+ <entry>Convert selection to upper case</entry>
+ <entry>Converts the current selection to upper case.</entry>
+ </row>
+ <row>
<entry>Duplicate line or selection</entry>
<entry>Duplicates the current line or selection.</entry>
</row>
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2007-01-07 18:48:56 UTC (rev 1168)
+++ trunk/src/keybindings.c 2007-01-08 18:15:06 UTC (rev 1169)
@@ -52,6 +52,7 @@
static void cb_func_menu_open(guint key_id);
static void cb_func_menu_save(guint key_id);
static void cb_func_menu_saveall(guint key_id);
+static void cb_func_menu_saveas(guint key_id);
static void cb_func_menu_print(guint key_id);
static void cb_func_menu_close(guint key_id);
static void cb_func_menu_closeall(guint key_id);
@@ -110,6 +111,8 @@
GDK_o, GDK_CONTROL_MASK, "menu_open", _("Open"));
keys[GEANY_KEYS_MENU_SAVE] = fill(cb_func_menu_save,
GDK_s, GDK_CONTROL_MASK, "menu_save", _("Save"));
+ keys[GEANY_KEYS_MENU_SAVEAS] = fill(cb_func_menu_saveas,
+ 0, 0, "menu_saveas", _("Save as"));
keys[GEANY_KEYS_MENU_SAVEALL] = fill(cb_func_menu_saveall,
GDK_S, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "menu_saveall", _("Save all"));
keys[GEANY_KEYS_MENU_PRINT] = fill(cb_func_menu_print,
@@ -278,6 +281,7 @@
// apply the settings
GEANY_ADD_ACCEL(GEANY_KEYS_MENU_SAVEALL, menu_save_all1);
+ GEANY_ADD_ACCEL(GEANY_KEYS_MENU_SAVEAS, menu_save_as1);
GEANY_ADD_ACCEL(GEANY_KEYS_MENU_PRINT, print1);
GEANY_ADD_ACCEL(GEANY_KEYS_MENU_CLOSE, menu_close1);
GEANY_ADD_ACCEL(GEANY_KEYS_MENU_CLOSEALL, menu_close_all1);
@@ -471,6 +475,11 @@
on_save_all1_activate(NULL, NULL);
}
+static void cb_func_menu_saveas(G_GNUC_UNUSED guint key_id)
+{
+ on_save_as1_activate(NULL, NULL);
+}
+
static void cb_func_menu_close(G_GNUC_UNUSED guint key_id)
{
on_close1_activate(NULL, NULL);
Modified: trunk/src/keybindings.h
===================================================================
--- trunk/src/keybindings.h 2007-01-07 18:48:56 UTC (rev 1168)
+++ trunk/src/keybindings.h 2007-01-08 18:15:06 UTC (rev 1169)
@@ -46,6 +46,7 @@
GEANY_KEYS_MENU_NEW = 0,
GEANY_KEYS_MENU_OPEN,
GEANY_KEYS_MENU_SAVE,
+ GEANY_KEYS_MENU_SAVEAS,
GEANY_KEYS_MENU_SAVEALL,
GEANY_KEYS_MENU_PRINT,
GEANY_KEYS_MENU_CLOSE,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list