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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2009-08-26 21:07:39 UTC
  • Revision ID: james.westby@ubuntu.com-20090826210739-gyjuuqezrzuluao4
Tags: upstream-2.0.8.1
ImportĀ upstreamĀ versionĀ 2.0.8.1

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