Removed dead files - Federico

This commit is contained in:
Miguel de Icaza 1999-09-13 21:15:32 +00:00
parent 4a3609a4f7
commit 264287e3a1
2 changed files with 0 additions and 108 deletions

View File

@ -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 <stdlib.h>
#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;
}

View File

@ -1,40 +0,0 @@
#ifndef __MC_BLIST_H__
#define __MC_BLIST_H__
#include <gdk/gdk.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkalignment.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkbutton.h>
#include <gtk/gtkhscrollbar.h>
#include <gtk/gtkvscrollbar.h>
#include <gtk/gtkclist.h>
#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__ */