Gtk-WARNING **: GtkItemFactory: entry path



Hi,
Suppose these are the menu items I'm putting in my menu.

static GtkItemFactoryEntry menu_items[] = {
  { "/_File",                    NULL, NULL, 0, "<Branch>" },
  { "/File/FilSep1",             NULL, NULL, 0, "<Separator>" },
  { "/File/_Load VRML",          "<control>L", CAMBIAR_CALLBACK, 0, NULL
},
  { "/File/Image",               NULL, CAMBIAR_CALLBACK, 0, NULL },
  { "/File/_Points",             "<control>P", CAMBIAR_CALLBACK, 0, NULL
},
  { "/File/Save VRML",           "<control>S", NULL, 0, NULL },
  { "/File/FilSep2",             NULL, NULL, 0, "<Separator>" },
  { "/File/Quit",                "<control>Q", gtk_main_quit, 0, NULL },
  { "/_Options",                 NULL, NULL, 0, "<Branch>" },
  { "/Options/OptSep",           NULL, NULL, 0, "<Separator>" },
  { "/Options/GL Mode",          NULL, NULL, 0, "<Branch>"},
  { "/Options/GL Mode/GL__POINT", NULL, NULL, 0, "<RadioItem>"},
  { "/Options/GL Mode/GL__LINE",  NULL, NULL, 0, "/Options/GL
Mode/GL__POINT"},
  { "/Options/GL Mode/GL__FILL",  NULL, NULL, 0, "/Options/GL
Mode/GL__POINT"},
  { "/_Help",                    NULL, NULL, 0, "<LastBranch>" },
  { "/Help/HelpSep",             NULL, NULL, 0, "<Separator>" },
  { "/Help/About",               NULL, NULL, 0, NULL },
};


I want to use RadioItems to establish how to render my OpenGL scene. So
the "/Options/GL Mode" item has to contain 3 RadioItems "/Options/GL
Mode/GL__POINT", "/Options/GL Mode/GL__LINE" and "/Options/GL
Mode/GL__FILL". I had to put two "_" underscores to see "GL_POINT"
instead of "GLPOINT" with the "P" underlined. But then..what i'm suppose
to put in the <path>, 5th argument.

If i put "/Options/GL Mode/GL__POINT", with two underscores i get a
warning of invalid type in the path. Same happens if i put "/Options/GL
Mode/GL_POINT" with only one underscore. Isn't there any way to show
underscores and then use them for the path argument in the
GtkItemFactoryEntry structure?

I'm lost :P

Ignacio Nodal




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