After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 523787 - GtkEntryCompletion does not implement GtkCellLayout::get_cells()
GtkEntryCompletion does not implement GtkCellLayout::get_cells()
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-03-22 03:00 UTC by Matthew Barnes
Modified: 2008-03-22 17:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.59 KB, patch)
2008-03-22 03:13 UTC, Matthew Barnes
committed Details | Review

Description Matthew Barnes 2008-03-22 03:00:39 UTC
I had a case where I wanted to ellipsize the default text renderer in a GtkEntryCompletion so I could add a second text column, but found that

   gtk_cell_layout_get_cells(GTK_CELL_LAYOUT (completion))

always returns NULL because the get_cells() method is not implemented.
Comment 1 Matthew Barnes 2008-03-22 03:02:06 UTC
I should add: There doesn't seem to be any other way to get access to the default text renderer in a GtkEntryCompletion.
Comment 2 Matthew Barnes 2008-03-22 03:13:00 UTC
Created attachment 107780 [details] [review]
Proposed patch
Comment 3 Matthias Clasen 2008-03-22 03:22:41 UTC
Looks ok to me
Comment 4 Matthew Barnes 2008-03-22 17:54:21 UTC
2008-03-22  Matthew Barnes  <mbarnes@redhat.com>

        * gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
        New function implements GtkCellLayoutClass::get_cells.  (#523787)

Revision 19923.