1 /*
2  * Copyright (C) 2007 Carlos Garcia Campos  <carlosgc@gnome.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17  */
18 
19 #include <gtk/gtk.h>
20 #include <poppler.h>
21 
22 #ifndef _UTILS_H_
23 #    define _UTILS_H_
24 
25 G_BEGIN_DECLS
26 
27 void pgd_table_add_property(GtkGrid *table, const gchar *markup, const gchar *value, gint *row);
28 void pgd_table_add_property_with_value_widget(GtkGrid *table, const gchar *markup, GtkWidget **value_widget, const gchar *value, gint *row);
29 void pgd_table_add_property_with_custom_widget(GtkGrid *table, const gchar *markup, GtkWidget *widget, gint *row);
30 GtkWidget *pgd_action_view_new(PopplerDocument *document);
31 void pgd_action_view_set_action(GtkWidget *action_view, PopplerAction *action);
32 gchar *pgd_format_date(time_t utime);
33 GtkWidget *pgd_movie_view_new(void);
34 void pgd_movie_view_set_movie(GtkWidget *movie_view, PopplerMovie *movie);
35 GdkPixbuf *pgd_pixbuf_new_for_color(PopplerColor *poppler_color);
36 
37 G_END_DECLS
38 
39 #endif /* _UTILS_H_ */
40