Re: A model/buffer for GtkEntry



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]