~ubuntu-branches/ubuntu/utopic/cairo-dock-plug-ins/utopic

« back to all changes in this revision

Viewing changes to GMenu/src/applet-menu.h

  • Committer: Package Import Robot
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2013-03-26 00:17:44 UTC
  • mfrom: (36.1.3 cairo-dock-plug-ins)
  • Revision ID: package-import@ubuntu.com-20130326001744-10z2kb7sa66c6c6q
Tags: 3.2.0-0ubuntu1
* New upstream release.
* Upstream ChangeLog:
  - Clock: iCal: don't add a new task if the uid is NULL
  - DBus interfaces: install python interfaces for both python2 and 3
  - Dock rendering: fixed the drawing of the 3D and Curve views when the
    alignment  is not centered
  - Fixed a few compilation errors and warning for FreeBSD
  - GMenu: init: load all menus and submenus in a separated thread and
    not in the mainloop to avoid tiny freezes at startup
  - GMenu: split the applet in two directories: one if libgnome-menu-3 is
    available and another one (GMenu-old) if libgnome-menu is available.
  - GMenu: if the user wants to show the menu before it's loaded, set a
    pending event
  - gvfs integration: hidden files were not correctly handled
  - po: Imported translations from Launchpad
  - Shortcuts: Disk usage: some sentenses was not translatable
  - Shortcuts: for a bookmark that points to a volume mount it before
  - Shortcuts: if the user wants to show the menu before it's loaded, set
    a pending event
  - ShowDesktop: Gnome-Shell workaround: add a small delay before
    triggering the desktop Exposé or Gnome-Shell will not respond
  - Sound-control: ignore alsa callbacks that are not 'value changed'
  - Status-Notifier: don't reset the icon if not in compact mode
* debian/control:
  - Used the newer version of libgnome-menu (libgnome-menu-3-dev)
  - Bumped Cairo-Dock versions
  - Build-Depends: Added python3 in order to install both python 2 and 3
    interfaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
18
*/
19
19
 
20
 
 
21
20
#ifndef __APPLET_MENU__
22
21
#define  __APPLET_MENU__
23
22
 
24
 
#include <cairo-dock.h>
25
 
#define GMENU_I_KNOW_THIS_IS_UNSTABLE
26
 
#include <gmenu-tree.h>
27
 
 
28
 
#define PANEL_ICON_FOLDER "folder"
29
 
// #define PANEL_DEFAULT_MENU_ICON_SIZE 24
30
 
 
31
 
 
32
 
GtkWidget * add_menu_separator (GtkWidget *menu);
33
 
 
34
 
GtkWidget * create_fake_menu (GMenuTreeDirectory *directory);
35
 
 
36
 
GdkPixbuf * panel_make_menu_icon (GtkIconTheme *icon_theme,
37
 
                      const char   *icon,
38
 
                      const char   *fallback,
39
 
                      int           size,
40
 
                      gboolean     *long_operation);
41
 
 
42
 
void setup_menuitem (GtkWidget   *menuitem,
43
 
                GtkIconSize  icon_size,
44
 
                ///GtkWidget   *image,
45
 
                const char  *title);
46
 
 
47
 
GtkWidget * populate_menu_from_directory (GtkWidget          *menu,
48
 
                              GMenuTreeDirectory *directory);
49
 
 
50
 
void image_menu_destroy (GtkWidget *image, gpointer *data);
51
 
 
52
 
void reload_image_menu_items (void);
53
 
 
54
 
GtkWidget * create_empty_menu (void);
55
 
 
56
 
GtkWidget * create_applications_menu (const char *menu_file,
57
 
                          const char *menu_path, GtkWidget *parent_menu);
58
 
 
59
 
gchar ** cd_gmenu_get_xdg_menu_dirs (void);
60
 
 
61
 
GtkWidget * create_main_menu (CairoDockModuleInstance *myApplet);
 
23
 
 
24
void cd_menu_start (void);
 
25
 
 
26
 
 
27
void cd_menu_stop (void);
 
28
 
 
29
 
 
30
void cd_menu_show_menu (void);
62
31
 
63
32
 
64
33
#endif