diff options
Diffstat (limited to 'libslab/mate-utils.h')
-rw-r--r-- | libslab/mate-utils.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libslab/mate-utils.h b/libslab/mate-utils.h new file mode 100644 index 00000000..fcc7e586 --- /dev/null +++ b/libslab/mate-utils.h @@ -0,0 +1,44 @@ +/* + * This file is part of libslab. + * + * Copyright (c) 2006 Novell, Inc. + * + * Libslab is free software; you can redistribute it and/or modify it under the + * terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * Libslab is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for + * more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with libslab; if not, write to the Free Software Foundation, Inc., 51 + * Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __MATE_UTILS_H__ +#define __MATE_UTILS_H__ + +#include <gtk/gtk.h> +#include <mateconf/mateconf-client.h> +#include <libmate/mate-desktop-item.h> + +#ifdef __cplusplus +extern "C" { +#endif + +gboolean load_image_by_id (GtkImage * image, GtkIconSize size, + const gchar * image_id); +MateDesktopItem *load_desktop_item_by_unknown_id (const gchar * id); +gpointer get_mateconf_value (const gchar * key); +void set_mateconf_value (const gchar * key, gconstpointer data); +guint connect_mateconf_notify (const gchar * key, MateConfClientNotifyFunc cb, gpointer user_data); +void handle_g_error (GError ** error, const gchar * user_format, ...); +GtkWidget *get_main_menu_section_header (const gchar * markup); + +#ifdef __cplusplus +} +#endif +#endif /* __MATE_UTILS_H__ */ |