~cairo-dock-team/ubuntu/oneiric/cairo-dock/2.3.0-3

« back to all changes in this revision

Viewing changes to src/cairo-dock-menu.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-09 23:26:12 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20100809232612-pocdxliaxjdetm37
Tags: upstream-2.2.0~0beta4
ImportĀ upstreamĀ versionĀ 2.2.0~0beta4

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include "cairo-dock-struct.h"
27
27
G_BEGIN_DECLS
28
28
 
29
 
/**
30
 
*@file cairo-dock-menu.h This class manages the menu of Cairo-Dock.
31
 
* It is called on a left click on a Container, builds a main menu, and notifies everybody about it, so that the menu is completed.
32
 
*/
33
 
 
34
 
 
35
 
gboolean cairo_dock_notification_build_container_menu (gpointer *pUserData, CairoContainer *pContainer, GtkWidget *menu);
 
29
 
 
30
gboolean cairo_dock_notification_build_container_menu (gpointer *pUserData, Icon *icon, CairoContainer *pContainer, GtkWidget *menu, gboolean *bDiscardMenu);
36
31
 
37
32
gboolean cairo_dock_notification_build_icon_menu (gpointer *pUserData, Icon *icon, CairoContainer *pContainer, GtkWidget *menu);
38
33
 
39
34
 
40
 
/** Pop-up a menu on a container. In the case of a dock, it prevents this one from shrinking down.
41
 
*@param menu the menu.
42
 
*@param pContainer the container that was clicked.
43
 
*/
44
 
void cairo_dock_popup_menu_on_container (GtkWidget *menu, CairoContainer *pContainer);
45
 
 
46
 
/** Add an entry to a given menu.
47
 
*@param cLabel label of the entry
48
 
*@param gtkStock a GTK stock or a path to an image
49
 
*@param pFunction callback
50
 
*@param pMenu the menu to insert the entry in
51
 
*@param pData data to feed the callback with
52
 
*/
53
 
GtkWidget *cairo_dock_add_in_menu_with_stock_and_data (const gchar *cLabel, const gchar *gtkStock, GFunc pFunction, GtkWidget *pMenu, gpointer pData);
54
 
 
55
 
 
56
 
/** Build the main menu of a Container.
57
 
*@param icon the icon that was left-clicked, or NULL if none.
58
 
*@param pContainer the container that was left-clicked.
59
 
*/
60
 
GtkWidget *cairo_dock_build_menu (Icon *icon, CairoContainer *pContainer);
61
 
 
62
 
 
63
35
G_END_DECLS
64
36
#endif