Yattm - unified GTK instant-messaging client logo
   [Generated for version 0.2-17 - Mon Jan 6 19:01:23 GMT+1 2003]

Home - Main Page - Data Structures - File List - Data Fields - Globals

input_list.h

Go to the documentation of this file.
00001 /*
00002  * Yattm 
00003  *
00004  * Copyright (C) 1999, Torrey Searle <tsearle@uci.edu>
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00022 #include <gtk/gtk.h>
00023 #include <stdio.h>
00024 #ifndef __EB_INPUT_LIST_H__
00025 #define __EB_INPUT_LIST_H__
00026 
00027 enum
00028 {
00029     EB_INPUT_CHECKBOX,
00030     EB_INPUT_ENTRY
00031 };
00032 
00033 
00034 typedef struct _chekbox_input
00035 {
00036     char * name;
00037     char * label;
00038     int * value;
00039     int saved_value;
00040 } checkbox_input;
00041 
00042 typedef struct _entry_input
00043 {
00044     char * name;
00045     char * label;
00046     char * value;
00047     GtkWidget * entry;
00048 } entry_input;
00049 
00050 typedef struct _input_list
00051 {
00052     int type;
00053     union
00054     {
00055         checkbox_input checkbox;
00056         entry_input entry;
00057     } widget;
00058     struct _input_list * next;
00059 } input_list;
00060         
00061 
00062 void eb_input_render(input_list * il, GtkWidget * box);
00063 void eb_input_cancel(input_list * il);
00064 void eb_input_accept(input_list * il);
00065 GList *eb_input_to_value_pair(input_list * il);
00066 #if defined(__MINGW32__) && defined(__IN_PLUGIN__)
00067 __declspec(dllimport) void eb_update_from_value_pair(input_list *il, GList *vp);
00068 #else
00069 extern void eb_update_from_value_pair(input_list *il, GList *vp);
00070 #endif
00071 
00072 #endif

Contact: Andy Maloney     [Documentation generated by doxygen]