/*
- * (GLABELS) Label and Business Card Creation program for GNOME
+ * util.h
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * util.h: various small utility functions
+ * This file is part of gLabels.
*
- * Copyright (C) 2001-2003 Jim Evins <evins@snaught.com>.
- *
- * This program is free software; you can redistribute it and/or modify
+ * gLabels 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
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels 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
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __UTIL_H__
#define __UTIL_H__
+#include <glib.h>
#include <gtk/gtk.h>
-#include <libgnomeprint/gnome-font.h>
+#include <pango/pango.h>
G_BEGIN_DECLS
gchar *gl_util_fraction (gdouble x);
-const gchar *gl_util_just_to_string (GtkJustification just);
-GtkJustification gl_util_string_to_just (const gchar *string);
+const gchar *gl_util_align_to_string (PangoAlignment align);
+PangoAlignment gl_util_string_to_align (const gchar *string);
-const gchar *gl_util_weight_to_string (GnomeFontWeight weight);
-GnomeFontWeight gl_util_string_to_weight (const gchar *string);
+const gchar *gl_util_weight_to_string (PangoWeight weight);
+PangoWeight gl_util_string_to_weight (const gchar *string);
void gl_util_combo_box_set_strings (GtkComboBox *combo,
GList *list);
const gchar *text);
void gl_util_combo_box_add_text_model (GtkComboBox *combo);
+GdkPixbuf *gl_util_cairo_convert_to_pixbuf (cairo_surface_t *surface);
+
+void gl_util_get_builder_widgets (GtkBuilder *builder,
+ gchar *first_name,
+ ...);
+
G_END_DECLS
#endif /* __UTIL_H__ */
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */