X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtk-contrib%2Fpsppire-sheet.h;h=eccffe84c0bf9237fc21cd8c0f1a2da3df8809ea;hb=d6850d8b37aed424e3d35ca1439243220678b72a;hp=55724cc39046d1475dd0b6ed01412a7bd13921de;hpb=2afd4629165ac5605142cfbe7a1a3607419cb81d;p=pspp-builds.git diff --git a/lib/gtk-contrib/psppire-sheet.h b/lib/gtk-contrib/psppire-sheet.h index 55724cc3..eccffe84 100644 --- a/lib/gtk-contrib/psppire-sheet.h +++ b/lib/gtk-contrib/psppire-sheet.h @@ -65,11 +65,12 @@ enum #define PSPPIRE_TYPE_SHEET_RANGE (psppire_sheet_range_get_type ()) #define PSPPIRE_TYPE_SHEET_CELL (psppire_sheet_cell_get_type ()) -#define PSPPIRE_TYPE_SHEET (psppire_sheet_get_type ()) -#define PSPPIRE_SHEET(obj) GTK_CHECK_CAST (obj, psppire_sheet_get_type (), PsppireSheet) -#define PSPPIRE_SHEET_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, psppire_sheet_get_type (), PsppireSheetClass) -#define PSPPIRE_IS_SHEET(obj) GTK_CHECK_TYPE (obj, psppire_sheet_get_type ()) + +#define PSPPIRE_TYPE_SHEET (psppire_sheet_get_type ()) +#define PSPPIRE_SHEET(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_TYPE_SHEET, PsppireSheet) +#define PSPPIRE_SHEET_CLASS(klass) G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_TYPE_SHEET, PsppireSheetClass) +#define PSPPIRE_IS_SHEET(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_SHEET) typedef struct _PsppireSheetClass PsppireSheetClass; @@ -112,8 +113,6 @@ struct _PsppireSheet PsppireSheetModel *model; - GtkSelectionMode selection_mode; - /* Component colors */ GdkColor color[n_COLORS]; gboolean show_grid; @@ -125,7 +124,7 @@ struct _PsppireSheet GtkWidget *entry_widget; /* The type of entry_widget */ - GtkType entry_type; + GType entry_type; /* global selection button */ GtkWidget *button; @@ -226,7 +225,7 @@ struct _PsppireSheetClass }; GType psppire_sheet_get_type (void); -GtkType psppire_sheet_range_get_type (void); +GType psppire_sheet_range_get_type (void); /* create a new sheet */ @@ -234,10 +233,10 @@ GtkWidget * psppire_sheet_new (PsppireSheetModel *model); /* create a new sheet with custom entry */ GtkWidget * -psppire_sheet_new_with_custom_entry (GtkType entry_type); +psppire_sheet_new_with_custom_entry (GType entry_type); /* Change entry */ -void psppire_sheet_change_entry (PsppireSheet *sheet, GtkType entry_type); +void psppire_sheet_change_entry (PsppireSheet *sheet, GType entry_type); GtkEntry *psppire_sheet_get_entry (PsppireSheet *sheet);