From: Masao M. <mu...@hi...> - 2004-03-14 16:52:25
|
むとうです。 ありがとうございます。 今日はもう眠いので明日見ます。 それでは。 On Sun, 14 Mar 2004 23:38:46 +0900 Kazuhiro NISHIYAMA <zn...@mb...> wrote: > 西山和広です。 > > In <200...@hi...> > On Sun, 14 Mar 2004 22:01:49 +0900 > Masao Mutoh <mu...@hi...> wrote: > > こちらもリリース後ということで。 > > > > ってかむしろそのまま追いこんでいただけると > > 助かるのですが(^^;)。 > > gconf_value_copyにNULLがわたると落ちるということだったようです。 > > > Index: src/rbgconf-entry.c > =================================================================== > RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gconf/src/rbgconf-entry.c,v > retrieving revision 1.7 > diff -u -p -r1.7 rbgconf-entry.c > --- src/rbgconf-entry.c 8 Aug 2003 19:32:06 -0000 1.7 > +++ src/rbgconf-entry.c 14 Mar 2004 14:06:42 -0000 > @@ -55,12 +55,17 @@ rbgconf_entry_copy(entry) > * chance? > */ > GConfEntry *new_entry; > + GConfValue *value; > > g_return_val_if_fail(entry != NULL, NULL); > > + value = gconf_entry_get_value(entry); > + if (value != NULL) { > + value = gconf_value_copy(value); > + } > new_entry = gconf_entry_new_nocopy( > g_strdup(gconf_entry_get_key(entry)), > - gconf_value_copy(gconf_entry_get_value(entry))); > + value); > > return new_entry; > /* > @@ -100,7 +105,12 @@ static VALUE > entry_get_value(self) > VALUE self; > { > - return GCVAL2RVAL(gconf_value_copy(gconf_entry_get_value(_SELF(self)))); > + GConfValue *value = gconf_entry_get_value(_SELF(self)); > + if (value != NULL) { > + return GCVAL2RVAL(gconf_value_copy(value)); > + } else { > + return Qnil; > + } > } > > static VALUE > > > -- > |ZnZ(ゼット エヌ ゼット) > |西山和広(Kazuhiro NISHIYAMA) > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > ruby-gnome2-devel-ja mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-ja > -- .:% Masao Mutoh<mu...@hi...> |