~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to doc/reference/panel-applet/html/getting-started.context-menu.html

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Bicha
  • Date: 2011-08-17 21:57:14 UTC
  • mto: This revision was merged to the branch mainline in revision 210.
  • Revision ID: james.westby@ubuntu.com-20110817215714-ltlj6jsdd2b0hadj
Tags: upstream-3.1.5
Import upstream version 3.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>Using a Context Menu</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
7
<link rel="home" href="index.html" title="Panel Applet Library Reference Manual">
8
8
<link rel="up" href="getting-started.html" title="Part II. Getting Started with the Panel Applet library">
9
9
<link rel="prev" href="getting-started.example.html" title="Hello World Example">
56
56
      To setup the context menu of the applet, the <a class="link" href="panel-applet-Panel-Applet.html#panel-applet-setup-menu-from-file" title="panel_applet_setup_menu_from_file ()"><code class="function">panel_applet_setup_menu_from_file()</code></a> function should be used, with a path to a <a class="link" href="getting-started.context-menu.html#getting-started.context-menu.xml-file" title="Menu XML File">menu XML file</a> and a <span class="type">GtkActionGroup</span> object containing all actions that are used in the menu XML file. The example below shows how to achieve this:
57
57
     </p>
58
58
<div class="example">
59
 
<a name="id2526474"></a><p class="title"><b>Example 3. Hello World applet, with a context menu</b></p>
 
59
<a name="id2531786"></a><p class="title"><b>Example 3. Hello World applet, with a context menu</b></p>
60
60
<div class="example-contents">
61
61
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
62
62
    <tbody>