Re: [Geany-Devel] Gaeny-plugins: Some minor changes to silence warnings
Am 17.02.2013 04:09, schrieb Lex Trotman: Attached is a patch containing a few obvious fixes for warnings in the plugins, mostly adding consts, gpointer casts and unsigned int loop counters. The only one that is likely to have been bad (tm) is in treebrowser.c it g_freed a static string. Setting the string const found that. treebrowser.c still has warnings about two unused variables, since in each case some work is done to set them, the treebrowser maintainer should look and see if they are meant to be used somewhere, or remove them and the setting code. I had a short look and think we can apply it. At least I didn't see anything which is likely to fail. Cheers, Frank ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Re: [Geany-Devel] Gaeny-plugins: Some minor changes to silence warnings
Le 19/02/2013 13:22, Frank Lanitz a écrit : Am 17.02.2013 04:09, schrieb Lex Trotman: Attached is a patch containing a few obvious fixes for warnings in the plugins, mostly adding consts, gpointer casts and unsigned int loop counters. The only one that is likely to have been bad (tm) is in treebrowser.c it g_freed a static string. Setting the string const found that. treebrowser.c still has warnings about two unused variables, since in each case some work is done to set them, the treebrowser maintainer should look and see if they are meant to be used somewhere, or remove them and the setting code. I had a short look and think we can apply it. At least I didn't see anything which is likely to fail. I didn't test it, but agree that the diff looks fine. Cheers, Colomban ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Re: [Geany-Devel] Feature: editor tab width
Hope you don't mind my CCing the list. Answers/questions inline below. On 02/17/2013 01:02 AM, Matthew Brush wrote: On 13-02-16 11:50 PM, Matthew Brush wrote: On 13-02-16 07:22 PM, Steven Blatnick wrote: Do I need to change anything this time, or is it okay this once? See my notes :) Sorry, I meant to send to devel list but I guess the reply-to address was wrong or something. I think you should check with list first to see correct way to implement. For example to adding unusual hard-coded keybindings or settings that might be not useful. My opinion (and it's just that) is that the document tab width should be some presets like small default large or stuff like this since sizes under 16px or so and over some large amount aren't useful. This would allow to be adding only one new preference two. Personally, I think it would be better to adjust the spinner to limit the pixel span to a reasonable range. The spinner allows a greater variety of settings, which like with font size, people may disagree on what is small, etc. Also for the message window stuff, how I mentioned is how I think it should be. Message window? I didn't do anything with windows other than adding a preference to the Preferences dialog, so I'm a bit confused. I looked through recent emails and I'm not seeing anything message window related concerning this thread. Sorry if I'm not seeing something in plain sight. Just some notes, I won't block anything if someone else wants to fix up and merge. I've reverted my master branch to match what geany's official master has and made the changes in a new branch in isolation of other features (the keybinding changes I made). I've submitted a new pull request. Let me know if I need to fix anything else in that request. Cheers, Matthew Brush Thanks, Steve ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Re: [Geany-Devel] Feature: editor tab width
Oh, sorry! I forgot the bottom pane is called the Message Window. I thought you were referring to dialogs. Disregard my confusion I just tried on master, and the key-binding fix I made seems to be there since I can now switch tabs on the Message Window. I did note that the key-binding to focus the Message Window still doesn't work if you're on the VTE (I never committed a fix for that, but observed it when using geany). Thanks, Steve On 02/19/2013 01:20 PM, Steven Blatnick wrote: Hope you don't mind my CCing the list. Answers/questions inline below. On 02/17/2013 01:02 AM, Matthew Brush wrote: On 13-02-16 11:50 PM, Matthew Brush wrote: On 13-02-16 07:22 PM, Steven Blatnick wrote: Do I need to change anything this time, or is it okay this once? See my notes :) Sorry, I meant to send to devel list but I guess the reply-to address was wrong or something. I think you should check with list first to see correct way to implement. For example to adding unusual hard-coded keybindings or settings that might be not useful. My opinion (and it's just that) is that the document tab width should be some presets like small default large or stuff like this since sizes under 16px or so and over some large amount aren't useful. This would allow to be adding only one new preference two. Personally, I think it would be better to adjust the spinner to limit the pixel span to a reasonable range. The spinner allows a greater variety of settings, which like with font size, people may disagree on what is small, etc. Also for the message window stuff, how I mentioned is how I think it should be. Message window? I didn't do anything with windows other than adding a preference to the Preferences dialog, so I'm a bit confused. I looked through recent emails and I'm not seeing anything message window related concerning this thread. Sorry if I'm not seeing something in plain sight. Just some notes, I won't block anything if someone else wants to fix up and merge. I've reverted my master branch to match what geany's official master has and made the changes in a new branch in isolation of other features (the keybinding changes I made). I've submitted a new pull request. Let me know if I need to fix anything else in that request. Cheers, Matthew Brush Thanks, Steve ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel
Re: [Geany-Devel] Gaeny-plugins: Some minor changes to silence warnings
Additional patch to treebrowser.c make sure every path leading to a g_free has a g_strdup(), oops. Note I am only using the HACKING approved -Wall -Wextra -O2 -Wno-unused-parameter not the full War and Peace novel of options that Colomban uses :) Cheers Lex On 20 February 2013 00:31, Colomban Wendling lists@herbesfolles.org wrote: Le 19/02/2013 13:22, Frank Lanitz a écrit : Am 17.02.2013 04:09, schrieb Lex Trotman: Attached is a patch containing a few obvious fixes for warnings in the plugins, mostly adding consts, gpointer casts and unsigned int loop counters. The only one that is likely to have been bad (tm) is in treebrowser.c it g_freed a static string. Setting the string const found that. treebrowser.c still has warnings about two unused variables, since in each case some work is done to set them, the treebrowser maintainer should look and see if they are meant to be used somewhere, or remove them and the setting code. I had a short look and think we can apply it. At least I didn't see anything which is likely to fail. I didn't test it, but agree that the diff looks fine. Cheers, Colomban ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel warning2.patch Description: Binary data ___ Devel mailing list Devel@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/devel