Re: A model/buffer for GtkEntry
- From: Stef Walter <stef-list memberwebs com>
- To: Christian Dywan <christian imendio com>
- Cc: gtk-devel-list gnome org
- Subject: Re: A model/buffer for GtkEntry
- Date: Fri, 27 Mar 2009 02:28:28 +0000 (UTC)
Christian Dywan wrote:
> this looks a little bit more complex than it should be, from my first
> impression anyway. Essentially I would think you need this kind of
> 'workflow' in the application code, once you have a buffer implemented:
>
> entry = gtk_entry_new ();
> buffer = gnome_keyring_entry_buffer_new ();
> gtk_entry_set_buffer (GTK_ENTRY (entry), buffer);
> g_object_unref (buffer);
Yes, I agree that's bad. And that's not how it's implemented. See the
patch on the bugzilla bug [1]. A buffer is created automatically, if
none is set during the construction phase. This obviously still works:
entry gtk_entry_new ();
Cheers,
Stef
[1] http://bugzilla.gnome.org/show_bug.cgi?id=576801
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]