comparison src/vorbis/vorbis.c @ 2191:329267b09658

get rid of talking with GDK directly
author Eugene Zagidullin <e.asphyx@gmail.com>
date Wed, 28 Nov 2007 02:50:15 +0300
parents fd0d5615f674
children 201a47338baf
comparison
equal deleted inserted replaced
2190:36b9f3e6cbcf 2191:329267b09658
124 static volatile int seekneeded = -1; 124 static volatile int seekneeded = -1;
125 static int samplerate, channels; 125 static int samplerate, channels;
126 GMutex *vf_mutex; 126 GMutex *vf_mutex;
127 127
128 gchar **vorbis_tag_encoding_list = NULL; 128 gchar **vorbis_tag_encoding_list = NULL;
129 static GtkWidget *about_window;
129 130
130 static int 131 static int
131 vorbis_check_fd(char *filename, VFSFile *stream) 132 vorbis_check_fd(char *filename, VFSFile *stream)
132 { 133 {
133 OggVorbis_File vfile; /* avoid thread interaction */ 134 OggVorbis_File vfile; /* avoid thread interaction */
723 } 724 }
724 725
725 static void 726 static void
726 vorbis_aboutbox(void) 727 vorbis_aboutbox(void)
727 { 728 {
728 static GtkWidget *about_window;
729
730 if (about_window) 729 if (about_window)
731 gdk_window_raise(about_window->window); 730 gtk_window_present(GTK_WINDOW(about_window));
732 else 731 else
733 { 732 {
734 about_window = audacious_info_dialog(_("About Ogg Vorbis Audio Plugin"), 733 about_window = audacious_info_dialog(_("About Ogg Vorbis Audio Plugin"),
735 /* 734 /*
736 * I18N: UTF-8 Translation: "Haavard Kvaalen" -> 735 * I18N: UTF-8 Translation: "Haavard Kvaalen" ->