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

« back to all changes in this revision

Viewing changes to GMenu-old/src/applet-util.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:
 
1
/**
 
2
* This file is a part of the Cairo-Dock project
 
3
*
 
4
* Copyright : (C) see the 'copyright' file.
 
5
* E-mail    : see the 'copyright' file.
 
6
*
 
7
* This program is free software; you can redistribute it and/or
 
8
* modify it under the terms of the GNU General Public License
 
9
* as published by the Free Software Foundation; either version 3
 
10
* of the License, or (at your option) any later version.
 
11
*
 
12
* This program is distributed in the hope that it will be useful,
 
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
* GNU General Public License for more details.
 
16
* You should have received a copy of the GNU General Public License
 
17
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
 
 
21
#ifndef __APPLET_UTIL__
 
22
#define  __APPLET_UTIL__
 
23
 
 
24
#include <cairo-dock.h>
 
25
#define GMENU_I_KNOW_THIS_IS_UNSTABLE
 
26
#include <gmenu-tree.h>
 
27
#include "applet-struct.h"
 
28
 
 
29
#define         string_empty(s)         ((s)==NULL||((char *)(s))[0]=='\0')
 
30
 
 
31
#ifdef HAVE_GIO
 
32
char * panel_util_get_icon_name_from_g_icon (GIcon *gicon);
 
33
 
 
34
GdkPixbuf * panel_util_get_pixbuf_from_g_loadable_icon (GIcon *gicon,
 
35
                                            int    size);
 
36
#endif
 
37
 
 
38
void panel_menu_item_activate_desktop_file (GtkWidget  *menuitem,
 
39
                                       const char *path);
 
40
 
 
41
char * panel_util_icon_remove_extension (const char *icon);
 
42
 
 
43
void panel_util_set_tooltip_text (GtkWidget  *widget,
 
44
                             const char *text);
 
45
 
 
46
char * menu_escape_underscores_and_prepend (const char *text);
 
47
 
 
48
char * panel_find_icon (GtkIconTheme  *icon_theme,
 
49
                 const char    *icon_name,
 
50
                 gint           size);
 
51
 
 
52
/**#ifdef HAVE_GIO
 
53
GdkPixbuf * panel_util_gdk_pixbuf_load_from_stream (GInputStream  *stream);
 
54
#endif*/
 
55
 
 
56
#endif