Re: ItemFactory and Slash !



Am Don, 2002-08-08 um 11.23 schrieb Anita Dixit:
> Hi,
> 
> I created a Menu for my application  with GtkItemFactory. (Gtk 1.2)
> Now , for a menu item a slash ("/") character needs to be  used .
> Being the path separator , I cannot use it while creating the menu.
> However ,one can set the text of the menu item later once the entire
> menu is created .
> 
> Just to give you an example -
> 
> GtkWidget *widget;
> widget = gtk_item_factory_get_widget("/Maths/Divide (A upon B)");
> gtk_label_set_text(GTK_LABEL(GTK_BIN(widget)->child), "Divide (A/B)");
> 
> 
Hi,
you must escape the slash like "/Maths/Divide A\\/B"

Bernd
	
-- 
Bernd Demian <bdemian csc-dd de>
CSC Ploenzke




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