diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/eventedit.c | 2 | ||||
-rw-r--r-- | calendar/gui/eventedit.h | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/calendar/gui/eventedit.c b/calendar/gui/eventedit.c index 7846eab86e..f2158b50f4 100644 --- a/calendar/gui/eventedit.c +++ b/calendar/gui/eventedit.c @@ -13,7 +13,6 @@ #include "timeutil.h" static void event_editor_init (EventEditor *ee); -GtkWindow *parent_class; /* Note: do not i18n these strings, they are part of the vCalendar protocol */ char *class_names [] = { "PUBLIC", "PRIVATE", "CONFIDENTIAL" }; @@ -34,7 +33,6 @@ event_editor_get_type (void) (GtkArgGetFunc) NULL, }; event_editor_type = gtk_type_unique (gtk_window_get_type (), &event_editor_info); - parent_class = gtk_type_class (gtk_window_get_type ()); } return event_editor_type; } diff --git a/calendar/gui/eventedit.h b/calendar/gui/eventedit.h index 2396d302f6..45e966d034 100644 --- a/calendar/gui/eventedit.h +++ b/calendar/gui/eventedit.h @@ -12,12 +12,14 @@ BEGIN_GNOME_DECLS + #define EVENT_EDITOR(obj) GTK_CHECK_CAST(obj, event_editor_get_type(), EventEditor) #define EVENT_EDITOR_CLASS(class) GTK_CHECK_CAST_CLASS(class, event_editor_get_type(), EventEditorClass) #define IS_EVENT_EDITOR(obj) GTK_CHECK_TYPE(obj, event_editor_get_type()) + typedef struct { - GtkWindow gtk_window; + GtkWindow window; GtkWidget *notebook; GtkWidget *hbox; GtkWidget *vbox; @@ -41,10 +43,14 @@ typedef struct { } EventEditor; typedef struct { - GnomePropertyBoxClass parent_class; + GtkWindowClass parent_class; } EventEditorClass; -GtkWidget *event_editor_new (GnomeCalendar *owner, iCalObject *); + +guint event_editor_get_type (void); +GtkWidget *event_editor_new (GnomeCalendar *owner, iCalObject *); + END_GNOME_DECLS + #endif |