Main Page | Data Structures | File List | Data Fields | Globals

callbacks.c

Go to the documentation of this file.
00001 /*
00002 lkmonitor (Linux Kernel Monitor)
00003 
00004 Application for monitoring and tuning a Linux kernel.
00005 
00006 Copyright (C) 2005,2006  Fernando ApesteguĂ­a
00007 
00008 This program is free software; you can redistribute it and/or
00009 modify it under the terms of the GNU General Public License
00010 as published by the Free Software Foundation; either version 2
00011 of the License, or (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU General Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License
00019 along with this program; if not, write to the Free Software
00020 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00021 */
00022 #ifdef HAVE_CONFIG_H
00023 #  include <config.h>
00024 #endif
00025 
00026 #include <gtk/gtk.h>
00027 
00028 #include "callbacks.h"
00029 #include "interface.h"
00030 #include "support.h"
00031 #include "lininfo.h"
00032 #include "others.h"
00033 
00034 
00035 void
00036 on_fixed1_destroy (GtkObject * object, gpointer user_data)
00037 {
00038    lkmonitor_exit();    
00039    gtk_main_quit ();
00040 }
00041 
00042 
00043 gboolean
00044 on_window1_destroy_event (GtkWidget * widget,
00045                           GdkEvent * event, gpointer user_data)
00046 {
00047 
00048   return FALSE;
00049 }
00050 
00051 
00052 void
00053 on_window1_destroy (GtkObject * object, gpointer user_data)
00054 {
00055   lkmonitor_exit();
00056   gtk_main_quit ();
00057 }
00058 
00059 void
00060 on_about1_activate                     (GtkMenuItem     *menuitem,
00061                                         gpointer         user_data)
00062 {
00063 gtk_widget_show(create_about());
00064 }
00065 
00066 
00067 void
00068 on_quit1_activate                      (GtkMenuItem     *menuitem,
00069                                         gpointer         user_data)
00070 {
00071   lkmonitor_exit();
00072   gtk_main_quit();
00073   
00074 }

Generated on Wed Feb 15 11:24:01 2006 for lkmonitor by  doxygen 1.3.9.1