1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
4 * (GLABELS) Label and Business Card Creation program for GNOME
6 * util.h: various small utility functions
8 * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #include <glib/glist.h>
29 #include <gtk/gtkcombobox.h>
30 #include <pango/pango.h>
34 gchar *gl_util_add_extension (const gchar *orig_filename);
35 gchar *gl_util_remove_extension (const gchar *orig_filename);
37 gchar *gl_util_make_absolute (const gchar *filename);
39 gchar *gl_util_fraction (gdouble x);
41 const gchar *gl_util_align_to_string (PangoAlignment align);
42 PangoAlignment gl_util_string_to_align (const gchar *string);
44 const gchar *gl_util_weight_to_string (PangoWeight weight);
45 PangoWeight gl_util_string_to_weight (const gchar *string);
47 void gl_util_combo_box_set_strings (GtkComboBox *combo,
49 void gl_util_combo_box_set_active_text (GtkComboBox *combo,
51 void gl_util_combo_box_add_text_model (GtkComboBox *combo);
53 GList *gl_util_get_font_family_list (void);
57 #endif /* __UTIL_H__ */