Revision: 1858
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1858&view=rev
Author: colombanw
Date: 2011-01-19 18:38:35 +0000 (Wed, 19 Jan 2011)
Log Message:
-----------
WebHelper: Better support for keybindings when shift is locked
Also check the original mods state rather than the masked ones to
translate to lowercase the key, so if the modifier that changes the key
was masked out we still translate it.
Modified Paths:
--------------
trunk/geany-plugins/webhelper/src/gwh-keybindings.c
Modified: trunk/geany-plugins/webhelper/src/gwh-keybindings.c
===================================================================
--- trunk/geany-plugins/webhelper/src/gwh-keybindings.c 2011-01-19 18:38:07 UTC (rev 1857)
+++ trunk/geany-plugins/webhelper/src/gwh-keybindings.c 2011-01-19 18:38:35 UTC (rev 1858)
@@ -72,7 +72,7 @@
guint keyval = event->keyval;
guint i;
- if (mods & GDK_SHIFT_MASK) {
+ if ((event->state & GDK_SHIFT_MASK) || (event->state & GDK_LOCK_MASK)) {
keyval = gdk_keyval_to_lower (keyval);
}
for (i = 0; ! handled && i < GWH_KB_COUNT; i++) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1854
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1854&view=rev
Author: wfraser
Date: 2011-01-16 11:27:46 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
gint to gsize for argument on line 577
Modified Paths:
--------------
trunk/geany-plugins/geanycfp/src/geanycfp.c
Modified: trunk/geany-plugins/geanycfp/src/geanycfp.c
===================================================================
--- trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-01-16 11:12:39 UTC (rev 1853)
+++ trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-01-16 11:27:46 UTC (rev 1854)
@@ -561,6 +561,7 @@
guchar* guFoldData=NULL;
FileData* fdTemp;
GSList * gslTemp=foldingToReApply;
+ gsize gs;
/* setting fold states may have been delayed until after folding points were calculated before
* paint so wait for a re-paint and check to see if any folding data needs applying
@@ -574,7 +575,7 @@
if(utils_str_equal(document_get_current()->file_name,fdTemp->pcFileName)==TRUE)
{
/* get fold data */
- guFoldData=g_base64_decode(fdTemp->pcFolding,&i);
+ guFoldData=g_base64_decode(fdTemp->pcFolding,&gs);
/* remove FileData from list needing folds re-applying */
foldingToReApply=g_slist_delete_link(foldingToReApply,gslTemp);
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 1853
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1853&view=rev
Author: wfraser
Date: 2011-01-16 11:12:39 +0000 (Sun, 16 Jan 2011)
Log Message:
-----------
formatting tidying
Modified Paths:
--------------
trunk/geany-plugins/geanycfp/src/geanycfp.c
Modified: trunk/geany-plugins/geanycfp/src/geanycfp.c
===================================================================
--- trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-01-16 10:50:17 UTC (rev 1852)
+++ trunk/geany-plugins/geanycfp/src/geanycfp.c 2011-01-16 11:12:39 UTC (rev 1853)
@@ -329,7 +329,7 @@
/* check to see if it's a message that has string attached, and free it if so */
if(me->message==SCI_REPLACESEL)
g_free((void*)(me->lparam));
-
+
g_free((void*)(gslTemp->data));
gslTemp=g_slist_next(gslTemp);
}
@@ -579,7 +579,7 @@
foldingToReApply=g_slist_delete_link(foldingToReApply,gslTemp);
break;
}
-
+
/* move onto next item in foldingToReApply */
gslTemp=g_slist_next(gslTemp);
}
@@ -588,7 +588,7 @@
if(guFoldData!=NULL)
{
iLineCount=scintilla_send_message(sci,SCI_GETLINECOUNT,0,0);
-
+
/* go through lines setting fold status */
for(i=0,k=0,iBitCounter=0;i<iLineCount;i++)
{
@@ -734,7 +734,7 @@
g_free(cName);
/* return pretified name */
- return cPretyName;
+ return cPretyName;
}
@@ -1176,7 +1176,7 @@
foldingToReApply=g_slist_prepend(foldingToReApply,fd);
break;
/* file has changed since Geany last saved but, try to load bookmarks anyway */
- case GTK_RESPONSE_REJECT:
+ case GTK_RESPONSE_REJECT:
iLineCount=scintilla_send_message(sci,SCI_GETLINECOUNT,0,0);
for(i=0;i<10;i++)
if(fd->iBookmark[i]!=-1 && fd->iBookmark[i]<iLineCount)
@@ -1471,7 +1471,7 @@
{
GeanyDocument *doc;
gint i;
- Macro *m;
+ Macro *m;
m=FindMacroByKey(ev->keyval,ev->state);
@@ -1539,7 +1539,7 @@
/* now check to see if numbered bookmark key is atempted
*
- * control and number pressed
+ * control and number pressed
*/
if(mod==4)
{
@@ -2047,7 +2047,7 @@
if(k==iResults)
{
g_free(gdkkmkResults);
- continue;
+ continue;
}
/* set shift pressed */
@@ -2141,4 +2141,3 @@
/* clean up memory used by macros */
ClearAllMacros();
}
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.