GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

bold menu item

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
roeiki
Familiar Face


Joined: 18 Sep 2008
Posts: 33

PostPosted: Thu Oct 02, 2008 11:50 am    Post subject: bold menu item Reply with quote

Hi,
Is there a way of making a menu item bold?
if so, can you give me a c code example?
Thanks
Back to top
roeiki
Familiar Face


Joined: 18 Sep 2008
Posts: 33

PostPosted: Thu Oct 02, 2008 12:56 pm    Post subject: Reply with quote

ok, i did it, here is the examle if anyone need it:
/* <b> </b> tags for bold */
item = gtk_menu_item_new_with_label("<b>Open Window</b>");
/* following 2 lines to set the "use_markup" flage of menu item label */
item_label = GTK_LABEL(gtk_bin_get_child(GTK_BIN(item)));
gtk_label_set_use_markup(GTK_LABEL(item_label), 1);
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP