blob: 33f5867a2234c419da7390375a42caee6221eee5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
* (GLABELS) Label and Business Card Creation program for GNOME
*
* util.h: various small utility functions
*
* Copyright (C) 2001 Jim Evins <evins@snaught.com>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __UTIL_H__
#define __UTIL_H__
#include <gtk/gtk.h>
#include <libgnomeprint/gnome-font.h>
extern gchar *gl_util_add_extension (const gchar * orig_filename);
extern gchar *gl_util_make_absolute (const gchar * filename);
extern gchar *gl_util_fraction( gdouble x );
extern GtkWidget* gl_util_button_new_with_stock_image (const gchar* text,
const gchar* stock_id);
extern GtkWidget* gl_util_dialog_add_button (GtkDialog *dialog,
const gchar* text,
const gchar* stock_id,
gint response_id);
extern const gchar *gl_util_just_to_string (GtkJustification just);
extern GtkJustification gl_util_string_to_just (const gchar * string);
extern const gchar *gl_util_weight_to_string (GnomeFontWeight weight);
extern GnomeFontWeight gl_util_string_to_weight (const gchar * string);
#endif /* __UTIL_H__ */
|