Re: [Announce] GNOME Global Menu 0.7.3 is released.

2009-02-04 Thread Maciej Piechotka
Yu Feng rainwood...@gmail.com writes: Dear friends, We are glad to announce the release of GNOME Global Menu 0.7.3. Global Menu is the globally-shared menu bar of all applications launched in your desktop session. In this release, we bring you the further polished gnome-globalmenu 0.7.3

Re: g_malloc overhead

2009-01-29 Thread Maciej Piechotka
On Mon, 2009-01-26 at 22:30 +0100, Martin (OPENGeoMap) wrote: hi: Well - what do you mean? Having 2 functions - one reciving utf-16 and one utf-8? To be honest - it doesn't make any sense to me (it would create much mess, double the code, make programming errors easier...).

Re: utf-16 and glib (was: g_malloc overhead)

2009-01-29 Thread Maciej Piechotka
On Mon, 2009-01-26 at 22:49 +0100, Martin (OPENGeoMap) wrote: Maciej Piechotka escribió: On Mon, 2009-01-26 at 22:30 +0100, Martin (OPENGeoMap) wrote: hi: Well - what do you mean? Having 2 functions - one reciving utf-16 and one utf-8? To be honest

Re: utf-16 and glib

2009-01-29 Thread Maciej Piechotka
On Mon, 2009-01-26 at 23:01 +0100, Martin (OPENGeoMap) wrote: Maciej Piechotka escribió: On Mon, 2009-01-26 at 22:49 +0100, Martin (OPENGeoMap) wrote: Maciej Piechotka escribió: On Mon, 2009-01-26 at 22:30 +0100, Martin (OPENGeoMap) wrote: hi

Re: utf-16 and glib

2009-01-29 Thread Maciej Piechotka
On Mon, 2009-01-26 at 23:48 +0100, Martin (OPENGeoMap) wrote: Dominic Lachowicz escribió: What is wrong with: gchar* g_utf8_strncpy (gchar *dest,const gchar *src,gsize n); That's one not needed as strncpy should work. hehe i know but that function it really

Re: g_malloc overhead

2009-01-26 Thread Maciej Piechotka
Martín Vales mar...@opengeomap.org writes: Colin Walters escribió: On Mon, Jan 26, 2009 at 9:12 AM, Behdad Esfahbod beh...@behdad.org wrote: Lets just say that UTF-16 is at best implementation details of Firefox. Well, JavaScript is notably UTF-16. Given that the Web, Java and

Re: g_malloc overhead

2009-01-22 Thread Maciej Piechotka
Martín Vales mar...@opengeomap.org writes: hi: I working with visual c++ in Windows and i find glib very useful for many C task, but i am worry about the g_malloc overhead. We really need a new malloc?? gpointer g_malloc (gsize n_bytes) { if (G_UNLIKELY (!g_mem_initialized))

Problem with GValue

2006-02-17 Thread Maciej Piechotka
I'd like to destroy GValue. How should I do it? I cannot find any information about it. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Differences beetwen ref and weak ref

2006-01-18 Thread Maciej Piechotka
2006/1/18, Stefan Kost [EMAIL PROTECTED]: Hi, Uzytkownik wrote: I'm so sorry - when should I use weak reference? I use waek references in the class collaboration hierarchy. Imagine classes GGroup and GItem, where GGroup has GItems. GItem instances need access to GGroup, thus they have a

Unicode, dirs and problem.

2005-12-20 Thread Maciej Piechotka
1. I don't know how should be this function(Function is more complicated, bun not so much to use regexs): static gunichar *package_rel_path(const gunichar *package) G_GNU_MALLOC { gunichar *ret; gsize iter; ret = /* what here? */; if(!package) return NULL;

Re: How I can add some properties to object without touching it

2005-12-20 Thread Maciej Piechotka
05-12-20, Przemysław Staniszewski [EMAIL PROTECTED] napisał(a): Hello. I wonder about something like in topic. I have dia-canvas-box.c, but I want to add one more properties like gchar *name. I want to make gobject child of dia-canvas-box but i don't know how :( . My konwledge is poor so i

Re: Problem with glib-mkenums

2005-12-19 Thread Maciej Piechotka
2005/12/19, David Necas (Yeti) [EMAIL PROTECTED]: On Mon, Dec 19, 2005 at 08:59:26AM +0100, Maciej Piechotka wrote: Ok. In makefile it's more clear. But what's $(enum_headers)? Headers that contain the enum declarations you want to process with glib-mkenums. Yeti Thanks a lot

G_GNUC_... - MALLOC, PURE or both

2005-12-19 Thread Maciej Piechotka
I've an function which takes one argument(object) and return some string(gchar *). Becouse it's getting read-only propertis[1]) it shouldn't be the same as in object. Should I: - Always allocate new gchar * and mark it as gchar *object_get(const Object *) G_GNUC_MALLOC; - Keep gchar * inside and

Problem with glib-mkenums

2005-12-18 Thread Maciej Piechotka
I'd like to use glib-mkenums. I've tried to use it, but I have no idea how to use it. Could somebody give me an example of file and what should by in command line. If some example is in GNOME CVS please give me in which project(but I'll be happy if you give me an information which file) I'll find

Re: Problem with glib-mkenums

2005-12-18 Thread Maciej Piechotka
2005/12/18, David Necas (Yeti) [EMAIL PROTECTED]: On Sun, Dec 18, 2005 at 12:40:46PM +0100, Maciej Piechotka wrote: I'd like to use glib-mkenums. I've tried to use it, but I have no idea how to use it. Could somebody give me an example of file and what should by in command line