Re: GtkComboBox Text Markup
- From: Tristan Van Berkom <tvb gnome org>
- To: Vikram Ambrose <noel ambrose gmail com>
- Cc: gtk-list gnome org
- Subject: Re: GtkComboBox Text Markup
- Date: Fri, 4 Mar 2011 12:09:53 +0900
On Fri, Mar 4, 2011 at 12:00 PM, Vikram Ambrose <noel ambrose gmail com> wrote:
> Hello List,
>
> How do you do pango markup for text in a GtkComboBox?
 - You create your combo box
 - Create a GtkListStore with a G_TYPE_STRING column where you store
    the markup for each row
 - Give the list store to the combo
 - Add a GtkCellRendererText to the combo
 - Assign the "markup" attribute of the cell renderer to the column
   in the store that holds the markup.
Tada !
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]