]> git.sur5r.net Git - glabels/commitdiff
Minor Cleanup
authorJim Evins <evins@snaught.com>
Thu, 29 Apr 2010 23:53:01 +0000 (19:53 -0400)
committerJim Evins <evins@snaught.com>
Thu, 29 Apr 2010 23:53:01 +0000 (19:53 -0400)
libglabels/db.c
src/new-label-dialog.c

index ba01850d56ace241ff032caf587ace6355b6298d..7f7b9e3625bd3833f15780a77be697d2ea561de1 100644 (file)
@@ -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);
index fb9894c514b979945806c5f56d3f49fe39ded752..aa0f04b4a2f76c14f57c00994c7e8f0ee1ce71d4 100644 (file)
@@ -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");