Logo Search packages:      
Sourcecode: jackeq version File versions  Download package

help.c

/*
 *  help.c -- Help message dialog for the JAMin (JACK Audio Mastering 
 *            interface) program.
 *
 *  Copyright (C) 2003 Jan C. Depner.
 *  
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/times.h>
#include <errno.h>
#include <math.h>
#include <string.h>
#include <gtk/gtk.h>

#include "main.h"
#include "help.h"


static GtkWidget *help_dialog = NULL;


void help_message (char *string)
{
    help_dialog = gtk_message_dialog_new ((GtkWindow *) main_window,
                                          GTK_DIALOG_DESTROY_WITH_PARENT,
                                          GTK_MESSAGE_INFO,
                                          GTK_BUTTONS_CLOSE,
                                          "%s", string);

    g_signal_connect_swapped (GTK_OBJECT (help_dialog), "response",
                           G_CALLBACK (gtk_widget_destroy),
                           GTK_OBJECT (help_dialog));

    gtk_widget_show (help_dialog);


    gdk_window_set_cursor (main_window->window, 
                           gdk_cursor_new (GDK_LEFT_PTR));
}

Generated by  Doxygen 1.6.0   Back to index