Mercurial > audlegacy-plugins
comparison src/spectrum/spectrum.c @ 147:51f5b9cc0dc3 trunk
[svn] - some tweaks
author | nenolod |
---|---|
date | Mon, 30 Oct 2006 22:35:55 -0800 |
parents | 03cfb311eafd |
children | 2cf4d0182a86 |
comparison
equal
deleted
inserted
replaced
146:03cfb311eafd | 147:51f5b9cc0dc3 |
---|---|
1 /* Fine Spectrum Analyzer Visualization Plugin for XMMS | 1 /* Spectrum Analyzer Visualization Plugin for Audacious |
2 * | 2 * |
3 * Copyright (C) 2006 William Pitcock | |
3 * Copyright (C) 1998-2001 Vágvölgyi Attila, Peter Alm, Mikael Alm, | 4 * Copyright (C) 1998-2001 Vágvölgyi Attila, Peter Alm, Mikael Alm, |
4 * Olle Hallnas, Thomas Nilsson and 4Front Technologies | 5 * Olle Hallnas, Thomas Nilsson and 4Front Technologies |
5 * | 6 * |
6 * This program is free software; you can redistribute it and/or modify | 7 * This program is free software; you can redistribute it and/or modify |
7 * it under the terms of the GNU General Public License as published by | 8 * it under the terms of the GNU General Public License as published by |
60 | 61 |
61 VisPlugin fsanalyzer_vp = { | 62 VisPlugin fsanalyzer_vp = { |
62 NULL, | 63 NULL, |
63 NULL, | 64 NULL, |
64 0, | 65 0, |
65 "Fine Spectrum Analyzer" VERSION, | 66 "Spectrum Analyzer " VERSION, |
66 0, | 67 0, |
67 1, | 68 1, |
68 fsanalyzer_init, /* init */ | 69 fsanalyzer_init, /* init */ |
69 fsanalyzer_cleanup, /* cleanup */ | 70 fsanalyzer_cleanup, /* cleanup */ |
70 NULL, /* about */ | 71 NULL, /* about */ |
90 | 91 |
91 if(window) | 92 if(window) |
92 return; | 93 return; |
93 | 94 |
94 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 95 window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
95 gtk_window_set_title(GTK_WINDOW(window),"Fine Spectrum Analyzer"); | 96 gtk_window_set_title(GTK_WINDOW(window),"Spectrum Analyzer"); |
96 gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE); | 97 gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE); |
97 gtk_widget_realize(window); | 98 gtk_widget_realize(window); |
98 bg_pixmap = gdk_pixmap_create_from_xpm_d(window->window,NULL,NULL,logo_xpm); | 99 bg_pixmap = gdk_pixmap_create_from_xpm_d(window->window,NULL,NULL,logo_xpm); |
99 gdk_window_set_back_pixmap(window->window,bg_pixmap,0); | 100 gdk_window_set_back_pixmap(window->window,bg_pixmap,0); |
100 g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(fsanalyzer_destroy_cb),NULL); | 101 g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(fsanalyzer_destroy_cb),NULL); |