summaryrefslogtreecommitdiff
path: root/plugins/gtkui/trkproperties.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-18 14:00:11 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-18 14:00:11 +0200
commitad3af05b3b56f78f5446727e568c874b54ec4d40 (patch)
tree402e11cbef0b1b34fc278bc25bdee81f907cb4d5 /plugins/gtkui/trkproperties.c
parent9aa9637cb7879b3ad9b0295495220be00dc4eab2 (diff)
destroy trkproperties window before quit (fixes memleak)
Diffstat (limited to 'plugins/gtkui/trkproperties.c')
-rw-r--r--plugins/gtkui/trkproperties.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c
index 633ffe65..d86e3316 100644
--- a/plugins/gtkui/trkproperties.c
+++ b/plugins/gtkui/trkproperties.c
@@ -59,9 +59,7 @@ on_trackproperties_key_press_event (GtkWidget *widget,
}
void
-on_closebtn_clicked (GtkButton *button,
- gpointer user_data)
-{
+trkproperties_destroy (void) {
if (trackproperties) {
GtkWidget *w = trackproperties;
on_trackproperties_delete_event (NULL, NULL, NULL);
@@ -70,6 +68,13 @@ on_closebtn_clicked (GtkButton *button,
}
void
+on_closebtn_clicked (GtkButton *button,
+ gpointer user_data)
+{
+ trkproperties_destroy ();
+}
+
+void
on_metadata_edited (GtkCellRendererText *renderer, gchar *path, gchar *new_text, gpointer user_data) {
GtkListStore *store = GTK_LIST_STORE (user_data);
GtkTreePath *treepath = gtk_tree_path_new_from_string (path);