comparison Plugins/Input/amidi-plug/i_utils.c @ 1671:daabad781796 trunk

[svn] - amidi-plug 0.6 imported; among other improvements, multiple soundfont loading for fluidsynth backend and option to extract/display lyrics and comments contained in midi files
author giacomo
date Tue, 12 Sep 2006 10:59:59 -0700
parents 705d4c089fce
children
comparison
equal deleted inserted replaced
1670:0abfd27b3849 1671:daabad781796
105 gtk_widget_show_all( aboutwin ); 105 gtk_widget_show_all( aboutwin );
106 } 106 }
107 107
108 108
109 gpointer i_message_gui( gchar * title , gchar * message , 109 gpointer i_message_gui( gchar * title , gchar * message ,
110 gint type , gpointer parent_win ) 110 gint type , gpointer parent_win , gboolean show_win )
111 { 111 {
112 GtkWidget *win; 112 GtkWidget *win;
113 GtkMessageType mtype = GTK_MESSAGE_INFO; 113 GtkMessageType mtype = GTK_MESSAGE_INFO;
114 114
115 switch ( type ) 115 switch ( type )
128 else 128 else
129 win = gtk_message_dialog_new( NULL , 0 , mtype , GTK_BUTTONS_OK , message ); 129 win = gtk_message_dialog_new( NULL , 0 , mtype , GTK_BUTTONS_OK , message );
130 130
131 gtk_window_set_title( GTK_WINDOW(win) , title ); 131 gtk_window_set_title( GTK_WINDOW(win) , title );
132 g_signal_connect_swapped( G_OBJECT(win) , "response" , G_CALLBACK(gtk_widget_destroy) , win ); 132 g_signal_connect_swapped( G_OBJECT(win) , "response" , G_CALLBACK(gtk_widget_destroy) , win );
133
134 if ( show_win == TRUE )
135 gtk_widget_show_all( win );
133 136
134 return win; 137 return win;
135 } 138 }