Re: GtkComboBox Text Markup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/03/2011 10:09 PM, Tristan Van Berkom wrote:
On Fri, Mar 4, 2011 at 12:00 PM, Vikram Ambrose<noel.ambrose@xxxxxxxxx>  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 !


Thanks. I'll give it a try.

Seems like massive overkill though. Couldnt this be done using a combobox made from gtk_combo_box_new_text()?

I only need to store two items.


Vik.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux