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

2009-02-04 Thread Maciej Piechotka
Yu Feng 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 > > svn ch

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 kno

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

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

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: g_malloc overhead

2009-01-26 Thread Maciej Piechotka
Martín Vales writes: > Colin Walters escribió: >> On Mon, Jan 26, 2009 at 9:12 AM, Behdad Esfahbod 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 >> .NET To be honest -

Re: g_malloc overhead

2009-01-22 Thread Maciej Piechotka
Martín Vales 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)) >g_mem_init_nome

Re: Problem with GValue

2006-02-17 Thread Maciej Piechotka
On 2/17/06, Fernando Apesteguía <[EMAIL PROTECTED]> wrote: > Sorry if this is so trivial... > > Did you try to g_free it? > > Best regards! > Sorry. I didn't understand g_value_init function. Sorry. Thanks ___ gtk-app-devel-list mailing list gtk-app-dev

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 t

TreeView menu

2006-01-16 Thread Maciej Piechotka
Is it possible in gtk(I use Gtk#)? User click left mouse to some item and it shows menu (I don't know how this menu is calling in English) with some function (Add/Delete). How should I do it? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.or

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

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; i

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 ma

Re: Gtk+ Version compatibilty?

2005-12-19 Thread Maciej Piechotka
2005/12/19, Matt Hull <[EMAIL PROTECTED]>: > On Sun, 18 Dec 2005, Daniel Pekelharing wrote: > > On Sun, 2005-12-18 at 15:29 +0100, David Necas (Yeti) wrote: > > > I'd recommend to simply compile and *test* the app > > > successively with Gtk+ 2.4, 2.2, 2.0 till it stops to > > > build/work. Althou

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 05:54:27PM +0100, Maciej Piechotka wrote: > > > > % glib-mkenums --template gwyddiontypes.h.template > > Where is the list of headers containing enum declarations? > > Yeti > In this

Re: Problem with glib-mkenums

2005-12-19 Thread Maciej Piechotka
I'm so sorry. It's my bug or glib bug: % ls gwyddiontypes.c.template gwyddiontypes.h.template % cat gwyddiontypes.h.template /*** BEGIN file-header ***/ #ifndef __GWYDDION_TYPES_H__ #define __GWYDDION_TYPES_H__ #include G_BEGIN_DECLS /*** END file-header ***/ /*** BEGIN value-header ***/ GTyp

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

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

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 i