Re: Underscores in Menubar
- From: "Sudrien" <sudrien fusemail com>
- To: "Benjamin Lau Wei Yii" <blwy10 yahoo com sg>, gtkmm-list gnome org
- Cc:
- Subject: Re: Underscores in Menubar
- Date: Sat, 22 Jan 2005 11:20:42 -0600 (CST)
The two underscores worked - Though I had to do a little bit more then a
replace(), because I need the original ustring later.
Thank you.
-Sud.
-----
The Diff
- DaMenu.items().push_back(Gtk::Menu_Helpers::MenuElem(tmp[i],
MenuRay[i]) );
if (tmp[i].find("_") == Glib::ustring::npos){
DaMenu.items().push_back(Gtk::Menu_Helpers::MenuElem(tmp[i],
MenuRay[i]) );
}
else {
Glib::ustring undrescored = tmp[i];
undrescored.replace(tmp[i].find("_"), 1, "__");
DaMenu.items().push_back(Gtk::Menu_Helpers::MenuElem(undrescored,
MenuRay[i]) );
}
----- Original Message -----
> Try putting 2 consecutive underscores. If this doesn't
> work, try and ampersand (&) instead.
>
> Benjamin Lau
>
>
> --- Sudrien <sudrien fusemail com> wrote:
> > The call I'm using is
> >
> Gtk::Menubar.items().push_back(Gtk::Menu_Helpers::MenuElem(Glib::ustring,
> > Gtk::Menu)); - the ustring given may already have
> > an underscore, "_", in
> > it - but I don't want it underlining the next
> > letter - the menus aren't
> > accelerated.
> >
> > How could I do this?
> >
> > -Sud.
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
> >
>
> __________________________________________________
> Do You Yahoo!?
> Log on to Messenger with your mobile phone!
> http://sg.messenger.yahoo.com
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]