2
* This file is a part of the Cairo-Dock project
4
* Copyright : (C) see the 'copyright' file.
5
* E-mail : see the 'copyright' file.
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.
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/>.
21
#ifndef __APPLET_UTIL__
22
#define __APPLET_UTIL__
24
#include <cairo-dock.h>
25
#define GMENU_I_KNOW_THIS_IS_UNSTABLE
26
#include <gmenu-tree.h>
27
#include "applet-struct.h"
29
#define string_empty(s) ((s)==NULL||((char *)(s))[0]=='\0')
32
char * panel_util_get_icon_name_from_g_icon (GIcon *gicon);
34
GdkPixbuf * panel_util_get_pixbuf_from_g_loadable_icon (GIcon *gicon,
38
void panel_menu_item_activate_desktop_file (GtkWidget *menuitem,
41
char * panel_util_icon_remove_extension (const char *icon);
43
void panel_util_set_tooltip_text (GtkWidget *widget,
46
char * menu_escape_underscores_and_prepend (const char *text);
48
char * panel_find_icon (GtkIconTheme *icon_theme,
49
const char *icon_name,
53
GdkPixbuf * panel_util_gdk_pixbuf_load_from_stream (GInputStream *stream);