Mercurial > audlegacy
changeset 4679:da0a9ed4f0ab
create fileinfo_win when needed
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Wed, 02 Jul 2008 21:27:01 +0200 |
parents | 66dea2610f1c |
children | 8becf76f2906 |
files | src/audacious/ui_fileinfo.c src/audacious/ui_legacy.c |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_fileinfo.c Sun Jun 29 13:01:51 2008 -0500 +++ b/src/audacious/ui_fileinfo.c Wed Jul 02 21:27:01 2008 +0200 @@ -64,7 +64,7 @@ #define G_FREE_CLEAR(a) if(a != NULL) { g_free(a); a = NULL; } #define STATUS_TIMEOUT 3*1000 -GtkWidget *fileinfo_win; +GtkWidget *fileinfo_win = NULL; GtkWidget *entry_location; GtkWidget *entry_title; @@ -788,7 +788,7 @@ if (tuple == NULL) return; - + if(!updating_enabled) { current_ip = NULL; G_FREE_CLEAR(current_file); @@ -796,6 +796,9 @@ something_changed = FALSE; + if (fileinfo_win == NULL) + create_fileinfo_window(); + if (!GTK_WIDGET_REALIZED(fileinfo_win)) gtk_widget_realize(fileinfo_win);
--- a/src/audacious/ui_legacy.c Sun Jun 29 13:01:51 2008 -0500 +++ b/src/audacious/ui_legacy.c Wed Jul 02 21:27:01 2008 +0200 @@ -210,9 +210,6 @@ * interface to set menu items */ create_prefs_window(); - create_fileinfo_window(); - - if (cfg.player_visible) mainwin_show(TRUE); else if (!cfg.playlist_visible && !cfg.equalizer_visible)