# HG changeset patch # User John Lindgren # Date 1239339770 14400 # Node ID 62cb85252393601ef50a58441baf059bbbe35959 # Parent a8c464186ec94dae0606eedc9df4883552901376 Only hide, do not destroy, window on delete-event (Debian bug #495427) diff -r a8c464186ec9 -r 62cb85252393 src/audlegacy/ui_fileinfo.c --- a/src/audlegacy/ui_fileinfo.c Thu Apr 09 20:43:01 2009 -0400 +++ b/src/audlegacy/ui_fileinfo.c Fri Apr 10 01:02:50 2009 -0400 @@ -261,7 +261,7 @@ g_object_unref(G_OBJECT(pixbuf)); } -static void +static int fileinfo_hide(gpointer unused) { if(GTK_WIDGET_VISIBLE(fileinfo_win)) gtk_widget_hide(fileinfo_win); @@ -292,6 +292,7 @@ G_FREE_CLEAR(current_file); fileinfo_entry_set_image(image_artwork, DATA_DIR "/images/audio.png"); + return 1; } static void @@ -768,6 +769,8 @@ gtk_container_add(GTK_CONTAINER(bbox_close), btn_close); GTK_WIDGET_SET_FLAGS(btn_close, GTK_CAN_DEFAULT); g_signal_connect(G_OBJECT(btn_close), "clicked", (GCallback) fileinfo_hide, NULL); + g_signal_connect ((GObject *) fileinfo_win, "delete-event", + (GCallback) fileinfo_hide, 0); gtk_widget_show_all (vbox0); }