Set edit window title to manga name

This commit is contained in:
Tom Willemsen 2012-10-23 01:38:04 +02:00
parent 207fc31204
commit ca2dd74798

View file

@ -217,6 +217,8 @@ set_manga_id(EomEditWindow *self, gint manga_id)
manga = data_get_manga_by_id(manga_id); manga = data_get_manga_by_id(manga_id);
data_get_volumes_for_manga(manga); data_get_volumes_for_manga(manga);
self->manga = manga; self->manga = manga;
gtk_window_set_title(GTK_WINDOW(self), manga->name);
gtk_entry_set_text(GTK_ENTRY(self->name_entry), manga->name); gtk_entry_set_text(GTK_ENTRY(self->name_entry), manga->name);
txt = g_strdup_printf("%d", manga->current_qty); txt = g_strdup_printf("%d", manga->current_qty);