1 /*
2  *
3  *  Copyright (C) 2010-2011  Colomban Wendling <ban@herbesfolles.org>
4  *
5  *  This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation, either version 3 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef H_GWH_UTILS
21 #define H_GWH_UTILS
22 
23 #include <glib.h>
24 #include <gdk-pixbuf/gdk-pixbuf.h>
25 #include <gtk/gtk.h>
26 
27 G_BEGIN_DECLS
28 
29 
30 /* emulates some values of GdkWindowTypeHint */
31 typedef enum _GwhWindowType
32 {
33   GWH_WINDOW_TYPE_NORMAL  = GDK_WINDOW_TYPE_HINT_NORMAL,
34   GWH_WINDOW_TYPE_UTILITY = GDK_WINDOW_TYPE_HINT_UTILITY
35 } GwhWindowType;
36 
37 
38 G_GNUC_INTERNAL
39 GdkPixbuf      *gwh_pixbuf_new_from_uri       (const gchar *uri,
40                                                GError     **error);
41 G_GNUC_INTERNAL
42 gchar          *gwh_get_window_geometry       (GtkWindow *window,
43                                                gint       default_x,
44                                                gint       default_y);
45 G_GNUC_INTERNAL
46 void            gwh_set_window_geometry       (GtkWindow   *window,
47                                                const gchar *geometry,
48                                                gint        *x_,
49                                                gint        *y_);
50 
51 
52 G_END_DECLS
53 
54 #endif /* guard */
55