[glabels] Minor Cleanup
- From: Jim Evins <jimevins src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glabels] Minor Cleanup
- Date: Thu, 29 Apr 2010 23:54:30 +0000 (UTC)
commit 8fb4c72166b2052b31bc9b5f02e63c6ae5886a82
Author: Jim Evins <evins snaught com>
Date: Thu Apr 29 19:53:01 2010 -0400
Minor Cleanup
libglabels/db.c | 2 +-
src/new-label-dialog.c | 4 ----
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libglabels/db.c b/libglabels/db.c
index ba01850..7f7b9e3 100644
--- a/libglabels/db.c
+++ b/libglabels/db.c
@@ -1534,7 +1534,7 @@ lgl_db_delete_template_by_name (const gchar *name)
filename = g_strdup_printf ("%s_%s.template", template->brand, template->part);
abs_filename = g_build_filename (dir, filename, NULL);
- g_unlink (abs_filename);
+ g_free (abs_filename);
g_free (dir);
g_free (filename);
diff --git a/src/new-label-dialog.c b/src/new-label-dialog.c
index fb9894c..aa0f04b 100644
--- a/src/new-label-dialog.c
+++ b/src/new-label-dialog.c
@@ -110,8 +110,6 @@ static gint forward_page_function (gint curren
static void combo_changed_cb (glNewLabelDialog *this);
static void rotate_toggled_cb (glNewLabelDialog *this);
-static gchar *get_default_name (void);
-
static void set_info (glNewLabelDialog *this,
const gchar *name);
@@ -154,7 +152,6 @@ gl_new_label_dialog_class_init (glNewLabelDialogClass *class)
static void
gl_new_label_dialog_init (glNewLabelDialog *this)
{
- GtkWidget *vbox;
gchar *logo_filename;
GdkPixbuf *logo;
GtkBuilder *builder;
@@ -164,7 +161,6 @@ gl_new_label_dialog_init (glNewLabelDialog *this)
"confirm_page_vbox",
NULL };
GError *error = NULL;
- GtkWidget *new_label_dialog_hbox;
gl_debug (DEBUG_FILE, "START");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]