Re: [Geany-devel] [Patch] after g_strndup, use g_free instead of free

2010-05-19 Thread Colomban Wendling
Le mercredi 19 mai 2010 à 23:10 +0200, Enrico Tröger a écrit : > On Sun, 16 May 2010 22:40:25 +0200, Colomban wrote: > > it isn't in general. g_free() frees a memory chunk with the > > registered free function in the GLib's memory VTable, which by > > default is libc's free() -- and then g_free() a

Re: [Geany-devel] beginner question - plugins

2010-05-19 Thread Frank Lanitz
On Wed, 19 May 2010 23:16:59 +0200 Enrico Tröger wrote: > On Wed, 19 May 2010 19:28:01 +0200, Frank wrote: > > > On Wed, 19 May 2010 09:15:39 -0700 > > "Daniel Marjamaki" wrote: > > > > > Hello! > > > > > > I have read the howto for plugin developers. It says: > > > If all went OK, put the li

Re: [Geany-devel] beginner question - plugins

2010-05-19 Thread Enrico Tröger
On Wed, 19 May 2010 19:28:01 +0200, Frank wrote: > On Wed, 19 May 2010 09:15:39 -0700 > "Daniel Marjamaki" wrote: > > > Hello! > > > > I have read the howto for plugin developers. It says: > > If all went OK, put the library into one of the paths Geany looks > > for plugins, e.g. $prefix/lib/ge

Re: [Geany-devel] altername session management implementation

2010-05-19 Thread Enrico Tröger
On Wed, 19 May 2010 14:17:52 +0300, Dimitar wrote: > Hi, all, > > This is an alternate implementation of Eugene's X11 session support. > The main difference is that the state each running Geany is saved > into a separate temporary Geany configuration file. > > Each Geany is restored exactly it w

Re: [Geany-devel] [Patch] after g_strndup, use g_free instead of free

2010-05-19 Thread Enrico Tröger
On Sun, 16 May 2010 22:40:25 +0200, Colomban wrote: > Le dimanche 16 mai 2010 à 19:46 +0200, Enrico Tröger a écrit : > > Just for clarity, there is no technical requirement that > > g_strndup() or similar should be followed by a g_free() instead of > > free(). g_free() simply calls free() with the

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Enrico Tröger
On Wed, 19 May 2010 22:13:40 +0400, Eugene wrote: > On Wed, 19 May 2010 14:09:57 +0300% > Dimitar Zhekov wrote: > > > On Wed, 19 May 2010 11:07:09 +0400 > > Eugene Arshinov wrote: > > > > > Now committed, together with "Tools > Save configuration" menu > > > item. > > > > I hope "Save configu

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Eugene Arshinov
On Wed, 19 May 2010 14:09:57 +0300% Dimitar Zhekov wrote: > On Wed, 19 May 2010 11:07:09 +0400 > Eugene Arshinov wrote: > > > Now committed, together with "Tools > Save configuration" menu item. > > I hope "Save configuration" works for all instances, and not for the > "main" instance only, as

Re: [Geany-devel] [Patch]: Fix memory leak in plugins/classbuilder.c

2010-05-19 Thread Frank Lanitz
Hi Daniel, On Wed, 19 May 2010 08:43:42 -0700 "Daniel Marjamaki" wrote: > This patch adds a missing g_free. Good catch! Committed with svn r4934. Thanks very much, Frank -- http://frank.uvena.de/en/ pgpWlaO7bRoUF.pgp Description: PGP signature ___

Re: [Geany-devel] beginner question - plugins

2010-05-19 Thread Frank Lanitz
On Wed, 19 May 2010 09:15:39 -0700 "Daniel Marjamaki" wrote: > Hello! > > I have read the howto for plugin developers. It says: > If all went OK, put the library into one of the paths Geany looks for > plugins, e.g. $prefix/lib/geany. See Installation paths >

Re: [Geany-devel] beginner question - plugins

2010-05-19 Thread Colomban Wendling
Hi! Le mercredi 19 mai 2010 à 09:15 -0700, Daniel Marjamaki a écrit : > Hello! > > I have read the howto for plugin developers. It says: > If all went OK, put the library into one of the paths Geany looks for > plugins, e.g. $prefix/lib/geany. See Installation paths for details. > > Can I tell G

[Geany-devel] beginner question - plugins

2010-05-19 Thread Daniel Marjamaki
Hello! I have read the howto for plugin developers. It says: If all went OK, put the library into one of the paths Geany looks for plugins, e.g. $prefix/lib/geany. See Installation paths for details. Can I tell Geany to look for plugi

[Geany-devel] [Patch]: Fix memory leak in plugins/classbuilder.c

2010-05-19 Thread Daniel Marjamaki
Hello! This patch adds a missing g_free. Original code: tmp_str = g_strdup(gtk_entry_get_text(GTK_ENTRY(cc_dlg->class_namespace_entry))); if (! utils_str_equal(tmp_str, "")) class_info->namespace_decl = g_strdup_printf("namespace %s;", tmp_str);

[Geany-devel] altername session management - ChangeLog

2010-05-19 Thread Dimitar Zhekov
Forgot the changelog. Separate file, since it'll become unappliable after a revision or two. -- E-gards: Jimmy ChangeLog Description: Binary data ___ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-dev

[Geany-devel] altername session management implementation

2010-05-19 Thread Dimitar Zhekov
Hi, all, This is an alternate implementation of Eugene's X11 session support. The main difference is that the state each running Geany is saved into a separate temporary Geany configuration file. Each Geany is restored exactly it was before the session was closed, including open files, options (i

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Dimitar Zhekov
On Wed, 19 May 2010 11:07:09 +0400 Eugene Arshinov wrote: > On Tue, 2 Mar 2010 15:23:31 +0300% > Eugene Arshinov wrote: > > > Lex Trotman wrote: > > > > > > > If so then I assume all Geany commands > > > > without the -i will be the same instance, and this is the one > > > > that should be a

Re: [Geany-devel] SM Client_ + Legacy_

2010-05-19 Thread Dimitar Zhekov
On Wed, 19 May 2010 11:01:35 +0400 Eugene Arshinov wrote: > [...] > Also, could you please tell me how to view the X11 session (you are writing > about "Client_" and "Legacy_")? It's stored somewhere in your home directory. Normally there would be one or more text files listing all session appli

Re: [Geany-devel] multiple instance save-settings - Re: Race condition when saving geany.conf

2010-05-19 Thread Eugene Arshinov
On Tue, 2 Mar 2010 15:23:31 +0300% Eugene Arshinov wrote: > On Mon, 1 Mar 2010 16:08:18 +% > Nick Treleaven wrote: > > > On Sat, 27 Feb 2010 09:05:12 +1100 > > Lex Trotman wrote: > > > > > > To be easy to implement, perhaps maybe only the first/main > > > > instance should save settings.

Re: [Geany-devel] SM Client_ + Legacy_

2010-05-19 Thread Eugene Arshinov
On Wed, 3 Mar 2010 11:32:57 +0300% Dimitar Zhekov wrote: > Hi. > > Now to the point. I went ahead and tested the sm, and ran into a > problem: in the X11 session, the geany instances are stored both > as Client_ (by sm.c) and Legacy_ (by gtk/gdk, as in 0.18). > > Normally a gdk_set_sm_client_id