Problem creating custom menus



We're trying to generate a custom menu for a Debian/GNOME-based local distro, and are having a big problem when trying to get it shown correctly in nautilus/gnome-panel.

We have followed the four steps described in this mail:

http://mail.gnome.org/archives/gconf-list/2003-December/msg00012.html

<quote>
So, if I was looking to set this up I'd do something along the lines
of:

	1) Create a /etc/gconf/gconf.xml.mandatory.local
	2) Add that to /etc/gconf/2/path
	3) Copy /etc/gconf/schemas/panel-default-setup.entries and
	   modify it to taste.
	4) Install it into the mandatory database using a command
	   along the lines of:

gconftool-2 --direct --config-source=xml:readwrite:/etc/gconf/gconf.xml.mandatory.local --load my-default-panel-setup.entries
</quote>

and we have created a new menu_object with a subset of the applications shown in the stock GNOME menu. To do this, we've created a lliurex-applications:/// vfolder, defined in /var/lib/lliurex/applications/, directory which contains symbolic links to the real .desktop files in /usr/share/applications we want to use.

If we type lliurex-applications:/// in the nautilus location bar, the menu appears as expected. The problem is when we try to get it shown in the panel object.

In /etc/gconf/schemas/lliurex-panel-default.entries we have the following:

  <!-- Lliurex Bar -->

    <entry>
      <key>objects/lliurex_bar/object_type</key>
      <schema_key>/schemas/apps/panel/objects/object_type</schema_key>
      <value>
        <string>menu-object</string>
      </value>
    </entry>
    <entry>
      <key>objects/lliurex_bar/toplevel_id</key>
      <schema_key>/schemas/apps/panel/objects/toplevel_id</schema_key>
      <value>
        <string>bottom_panel</string>
      </value>
    </entry>
    <entry>
      <key>objects/lliurex_bar/position</key>
      <schema_key>/schemas/apps/panel/objects/position</schema_key>
      <value>
        <int>-1</int>
      </value>
    </entry>
    <entry>
      <key>objects/lliurex_bar/panel_right_stick</key>

<schema_key>/schemas/apps/panel/objects/panel_right_stick</schema_key>
      <value>
        <bool>false</bool>
      </value>
    </entry>
    <entry>
      <key>objects/lliurex_bar/locked</key>
      <schema_key>/schemas/apps/panel/objects/locked</schema_key>
      <value>
        <bool>true</bool>
      </value>
    </entry>


<entry><key>objects/lliurex_bar/bonobo_iid</key><schema_key>/schemas/apps/panel/objects/bonobo_iid</schema_key></entry>

<entry><key>objects/lliurex_bar/attached_toplevel_id</key><schema_key>/schemas/apps/panel/objects/attached_toplevel_id</schema_key> </entry>

<entry><key>objects/lliurex_bar/tooltip</key><schema_key>/schemas/apps/panel/objects/tooltip</schema_key></entry>

<entry><key>objects/lliurex_bar/use_custom_icon</key><schema_key>/schemas/apps/panel/objects/use_custom_icon</schema_key></entry>
    <entry>
        <key>objects/lliurex_bar/custom_icon</key>
        <schema_key>/schemas/apps/panel/objects/custom_icon</schema_key>
        <value>
                <string>gnome-mouse.png</string>
        </value>
        </entry>

<entry><key>objects/lliurex_bar/use_menu_path</key><schema_key>/schemas/apps/panel/objects/use_menu_path</schema_key></entry>

<entry><key>objects/lliurex_bar/menu_path</key><schema_key>/schemas/apps/panel/objects/menu_path</schema_key>
        <value>
                <string>lliurex-applications:///</string>
        </value>
        </entry>

<entry><key>objects/lliurex_bar/launcher_location</key><schema_key>/schemas/apps/panel/objects/launcher_location</schema_key></entry>

<entry><key>objects/lliurex_bar/action_type</key><schema_key>/schemas/apps/panel/objects/action_type</schema_key></entry>


This configuration has two visible items that are not working. The key custom_icon appears to be completely ignored, and we don't get the gnome-mouse.png icon in our panel object. More importantly, the menu_path key is also ignored, and instead of getting lliurex-applications:/// shown inside the menu_object. Instead, we get the default menu_object icon, and the default menu contents.

Why is this happening? Any help appreciated...

Thanks,
Raül.



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