-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * util.c: various small utility functions
+ * util.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * 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/>.
*/
#include <config.h>
#include <string.h>
#include <glib.h>
#include <math.h>
-#include <gtk/gtkliststore.h>
-#include <gtk/gtkcellrenderertext.h>
-#include <gtk/gtkcelllayout.h>
-#include <libglabels/str.h>
+#include <gtk/gtk.h>
+
+#include <libglabels/libglabels.h>
#define FRAC_EPSILON 0.00005
-\f
+
/****************************************************************************/
/* Append ".glabels" extension to filename if needed. */
/****************************************************************************/
return new_filename;
}
+
/****************************************************************************/
/* Remove ".glabels" extension from filename if needed. */
/****************************************************************************/
return new_filename;
}
+
/****************************************************************************/
/* Make sure we have an absolute path to filename. */
/****************************************************************************/
return absolute_filename;
}
+
/****************************************************************************/
/* Create fractional representation of number, if possible. */
/****************************************************************************/
}
}
+
/****************************************************************************/
/* Utilities to deal with PangoAlignment types. */
/****************************************************************************/
}
}
+
PangoAlignment
gl_util_string_to_align (const gchar *string)
{
}
+
/****************************************************************************/
/* Utilities to deal with PangoWeight types */
/****************************************************************************/
}
}
+
PangoWeight
gl_util_string_to_weight (const gchar *string)
{
}
+
/****************************************************************************/
/* Convienience function to set strings in a text combo_box from a GList */
/****************************************************************************/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. gl_util_combo_box_set_active_text support. */
/*---------------------------------------------------------------------------*/
return FALSE;
}
+
/****************************************************************************/
/* Convienience function to set active text in a text combo_box from text */
/****************************************************************************/
}
+
/****************************************************************************/
/* Convienience function to add a simple text model to an existing */
/* combo_box. This is needed since combo_boxes created with glade do not */
}
-
/****************************************************************************/
/* Get widgets from GtkBuilder "en masse." */
/****************************************************************************/
va_end (args);
}
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */