Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gtkcolumnchooser.h

Go to the documentation of this file.
00001 /*
00002  * $Id: gtkcolumnchooser.h,v 1.2 2004/12/09 06:34:47 cbiere Exp $
00003  *
00004  * Copyright (c) 2001-2003, Richard Eckart
00005  *
00006  *----------------------------------------------------------------------
00007  * This file is part of gtk-gnutella.
00008  *
00009  *  gtk-gnutella is free software; you can redistribute it and/or modify
00010  *  it under the terms of the GNU General Public License as published by
00011  *  the Free Software Foundation; either version 2 of the License, or
00012  *  (at your option) any later version.
00013  *
00014  *  gtk-gnutella is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with gtk-gnutella; if not, write to the Free Software
00021  *  Foundation, Inc.:
00022  *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023  *----------------------------------------------------------------------
00024  */
00025 
00026 #ifndef _gtk_gtk_column_chooser_h_
00027 #define _gtk_gtk_column_chooser_h_
00028 
00029 #include <gtk/gtk.h>
00030 #include <gtk/gtkmenu.h>
00031 #if (GTK_MAJOR_VERSION >= 2)
00032 #include <gtk/gtktreeview.h>
00033 #else
00034 #include <gtk/gtkclist.h>
00035 #endif
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif /* __cplusplus */
00040 
00041 #define GTK_COLUMN_CHOOSER(obj)\
00042      GTK_CHECK_CAST (obj, gtk_column_chooser_get_type (), GtkColumnChooser)
00043 #define GTK_COLUMN_CHOOSER_CLASS(klass)\
00044      GTK_CHECK_CLASS_CAST (klass, gtk_column_chooser_get_type (), GtkColumnChooserClass)
00045 #define GTK_IS_COLUMN_CHOOSER(obj)\
00046      GTK_CHECK_TYPE (obj, gtk_column_chooser_get_type ())
00047 #define GTK_TYPE_COLUMN_CHOOSER (gtk_column_chooser_get_type())
00048 
00049 typedef struct _GtkColumnChooser GtkColumnChooser;
00050 
00051 typedef struct _GtkColumnChooserClass  GtkColumnChooserClass;
00052 
00053 struct _GtkColumnChooser {
00054     GtkMenu menu;
00055 
00056     GtkWidget * widget;
00057     GHashTable * col_map;
00058     gboolean closed;
00059 };
00060 
00061 struct _GtkColumnChooserClass {
00062     GtkMenuClass parent_class;
00063 };
00064 
00065 GtkType gtk_column_chooser_get_type(void);
00066 GtkWidget* gtk_column_chooser_new(GtkWidget *widget);
00067 
00068 #ifdef __cplusplus
00069 }
00070 #endif /* __cplusplus */
00071 
00072 #endif /* _gtk_gtk_column_chooser_h_ */

Generated on Sun Feb 12 10:49:56 2006 for Gtk-Gnutella by doxygen 1.3.6