Gnome2::AppHelper man page on Mandriva

Man page or keyword search:  
man Server   17060 pages
apropos Keyword Search (all sections)
Output format
Mandriva logo
[printable version]

Gnome2::AppHelper(3)  User Contributed Perl Documentation Gnome2::AppHelper(3)

NAME
       Gnome2::AppHelper

GnomeUIInfo
       In Gnome2 GnomeUIInfo's are often used as a convenient way to create
       GUI's.  In Perl, GnomeUIInfo's are always references to arrays of
       items.  Items can either be references to hashs or references to
       arrays:

       Hash Reference
	   When using hash references, items are specified by giving key-value
	   pairs.  A typical example:

	     { type => "item", label => "Quit", callback => sub { exit(0); } }

	   For the list of valid keys, see below.

       Array References
	   When using array references, items are a list of the following
	   keys, in this order:

	     type,
	     label,
	     hint,
	     moreinfo,
	     pixmap_type,
	     pixmap_info,
	     accelerator_key and
	     modifiers.

	   The example from above would become:

	     [ "item", "Item", undef, sub { exit(0); },
	       undef, undef, undef, undef ]

       To create multi-level structures, you use the "subtree" type and the
       "subtree" key, as in the following example:

	 {
	   type => "subtree",
	   label => "Radio Items",
	   subtree => [
	     {
	       type => "radioitems",
	       moreinfo => [
		 {
		   type => "item",
		   label => "A"
		 },
		 {
		   type => "item",
		   label => "B"
		 },
		 {
		   type => "item",
		   label => "C"
		 },
		 {
		   type => "item",
		   label => "D"
		 },
		 {
		   type => "item",
		   label => "E"
		 }
	       ]
	     }
	   ]
	 }

METHODS
   Gnome2->accelerators_sync
   $menu_shell->fill_menu ($uiinfo, $accel_group, $uline_accels, $pos)
       ·   $uiinfo (Gnome2::UIInfo)

       ·   $accel_group (Gtk2::AccelGroup)

       ·   $uline_accels (boolean)

       ·   $pos (integer)

   $toolbar->fill_toolbar ($uiinfo, $accel_group)
       ·   $uiinfo (Gnome2::UIInfo)

       ·   $accel_group (Gtk2::AccelGroup)

   list = $parent->find_menu_pos ($path)
       ·   $path (string)

       Returns the GtkWidget and the position associated with the path.

   $bar->install_menu_hints ($uiinfo)
       ·   $uiinfo (Gnome2::UIInfo)

SEE ALSO
       Gnome2

COPYRIGHT
       Copyright (C) 2003-2004 by the gtk2-perl team.

       This software is licensed under the LGPL.  See Gnome2 for a full
       notice.

perl v5.10.1			  2010-02-14		  Gnome2::AppHelper(3)
[top]

List of man pages available for Mandriva

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net