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

gAcc_nyi.c

/*
 * gAcc_nyi.c
 * Thomas Nemeth, le 08.12.1999
 *
 *   Copyright (C) 1999  Thomas Nemeth
 *
 *   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 <config.h>
#include <gtk/gtk.h>
#include "defines.h"
#include "gAcc_nyi.h"

/*** Create the "Not Yet Implemented" dialog box ****************************/

GtkWidget *create_nyi_dialog () {
    GtkWidget *NYI_Dialog;
    GtkWidget *bouton;
    GtkWidget *label;

    NYI_Dialog = gtk_dialog_new ();
    gtk_window_set_title (GTK_WINDOW (NYI_Dialog), _("Sorry...") );
    gtk_signal_connect (GTK_OBJECT (NYI_Dialog), "delete_event",
                        GTK_SIGNAL_FUNC (gtk_widget_destroy),
                        NULL);
    gtk_signal_connect (GTK_OBJECT (NYI_Dialog), "destroy", 
                            GTK_SIGNAL_FUNC (gtk_widget_destroy), 
                            NULL);

    bouton = gtk_button_new_with_label ( _("OK") );
    gtk_signal_connect_object (GTK_OBJECT (bouton), "clicked",
                               GTK_SIGNAL_FUNC (gtk_widget_destroy),
                               GTK_OBJECT (NYI_Dialog));

    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (NYI_Dialog)->action_area), 
                        bouton, TRUE, TRUE, 0);
    GTK_WIDGET_SET_FLAGS (GTK_WIDGET (bouton), GTK_CAN_DEFAULT);
    gtk_widget_grab_default (GTK_WIDGET (bouton) );
    gtk_widget_draw_default (GTK_WIDGET (bouton) );
    gtk_widget_show (bouton);

    label = gtk_label_new (_("\n   This function is not yet implemented !   \n"));
    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (NYI_Dialog)->vbox), label, TRUE,
                        TRUE, 18);
    gtk_widget_show (label);

    return NYI_Dialog;
}

Generated by  Doxygen 1.6.0   Back to index