Re: Menu Display Problem



Bob Caryl wrote:

Murray Cumming wrote:

On Wed, 2005-04-13 at 10:48 -0500, Bob Caryl wrote:
Hello all:

I recently installed libsigc++-2.0.10 because a vector drawing package (Inkscape) I was trying to install required it. Since having done so, all my applications that have menus have begun displaying the Gtk::Stock::MISSING_ICON icon on menu items for which I designated NO icon in following call:

Gtk::Action::create((gchar *)desg, (gchar *)disp, "")


I'm seeing the same thing in glom recently, in my gnome 2.12 jhbuild
prefix on Ubuntu Hoary. But I'm not convinced that libsigc++-2.0.10 is
to blame. Let's see what other people find.

where desg and disp are both an xmlChar*. desg is the menuitem name and disp is the display string. I am not using tool tips for this menu.

Does anyone know what I need to do to correct this problem?


I am sorry. I failed to mention that I also had to install libxml2-2.6.19 as well.

Prior to these two installations, none of my applications that use menus displayed the "MISSING_ICON" icons.

Thanks to all that have some input.

Bob Caryl
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Hello all again,

I single-stepped my application in the debugger and this is what is happening when the Gtk::Action::create function finally gets called (this code was in a file called "action.cc" ):

Glib::RefPtr<Action> Action::create(const Glib::ustring& name, const Glib::ustring& label, const Glib::ustring& tooltip)
   {
return Glib::RefPtr<Action>( new Action(name, Gtk::StockID(), label, tooltip) );
   }

Note that the formal parameter syntax in my earlier email is matched by the formal parameters shown above. Note in the return statement a call to "Gtk::StockID()" This is what my debugger shows as being called in "stockid.cc":

   StockID::StockID()
   {}

Could this be the source of my MISSING_ICON icons?

Bob Caryl



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