From 264287e3a1064ec02ff6af157b8da93c2d1cd13a Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 13 Sep 1999 21:15:32 +0000 Subject: [PATCH] Removed dead files - Federico --- gnome/gblist.c | 68 -------------------------------------------------- gnome/gblist.h | 40 ----------------------------- 2 files changed, 108 deletions(-) delete mode 100644 gnome/gblist.c delete mode 100644 gnome/gblist.h diff --git a/gnome/gblist.c b/gnome/gblist.c deleted file mode 100644 index 4a9e36c29..000000000 --- a/gnome/gblist.c +++ /dev/null @@ -1,68 +0,0 @@ -/* - * gblist: Implements a GtkCList derived widget that does not take any action - * on select and unselect calls. - * - * Author: Miguel de Icaza (miguel@kernel.org) - * (C) 1998 the Free Software Foundation. - */ -#include -#include "config.h" -#include "gblist.h" - -static void -blist_select_row (GtkCList *clist, gint row, gint column, GdkEvent *event) -{ - /* nothing */ -} - -static void -blist_unselect_row (GtkCList *clist, gint row, gint column, GdkEvent *event) -{ - /* nothing */ -} - -static void -gtk_blist_class_init (GtkBListClass *klass) -{ - GtkCListClass *clist_class = (GtkCListClass *) klass; - - clist_class->select_row = blist_select_row; - clist_class->unselect_row = blist_unselect_row; -} - -GtkType -gtk_blist_get_type (void) -{ - static GtkType blist_type = 0; - - if (!blist_type){ - GtkTypeInfo blist_info = - { - "GtkBList", - sizeof (GtkBList), - sizeof (GtkBListClass), - (GtkClassInitFunc) gtk_blist_class_init, - (GtkObjectInitFunc) NULL, - (GtkArgSetFunc) NULL, - (GtkArgGetFunc) NULL, - }; - - blist_type = gtk_type_unique (gtk_clist_get_type (), &blist_info); - } - - return blist_type; -} - -GtkWidget * -gtk_blist_new_with_titles (gint columns, gchar * titles[]) -{ - GtkWidget *widget; - - g_return_val_if_fail (titles != NULL, NULL); - - widget = gtk_type_new (gtk_blist_get_type ()); - - gtk_clist_construct (GTK_CLIST (widget), columns, titles); - - return widget; -} diff --git a/gnome/gblist.h b/gnome/gblist.h deleted file mode 100644 index 09f98b8b2..000000000 --- a/gnome/gblist.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef __MC_BLIST_H__ -#define __MC_BLIST_H__ - -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ - -#define GTK_BLIST(obj) (GTK_CHECK_CAST ((obj), gtk_blist_get_type (), GtkBList)) -#define GTK_BLIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), gtk_blist_get_type (), GtkBListClass)) -#define GTK_IS_BLIST(obj) (GTK_CHECK_TYPE ((obj), gtk_blist_get_type ())) - -typedef struct -{ - GtkCList clist; -} GtkBList; - -typedef struct -{ - GtkCListClass parent_class; -} GtkBListClass; - -GtkType gtk_blist_get_type (void); -GtkWidget *gtk_blist_new_with_titles (gint columns, gchar * titles[]); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - - -#endif /* __GTK_CLIST_H__ */