* WIP: fixes for gtk3.2 (prevent warnings for deprecated widgets)

This commit is contained in:
djcb
2012-03-22 22:37:54 +02:00
parent 9444a3eb0e
commit 3fb7e5d6ff
12 changed files with 177 additions and 64 deletions

View File

@ -23,6 +23,10 @@
#include <gtk/gtk.h>
#include <mu-msg.h>
#if HAVE_CONFIG_H
#include <config.h>
#endif /*HAVE_CONFIG_H*/
G_BEGIN_DECLS
/* convenience macros */
@ -38,16 +42,22 @@ typedef struct _MuMsgViewClass MuMsgViewClass;
typedef struct _MuMsgViewPrivate MuMsgViewPrivate;
struct _MuMsgView {
GtkVBox parent;
/* insert public members, if any */
#ifdef HAVE_GTK3
GtkBox parent;
#else
GtkVBox parent;
#endif /*!HAVE_GTK3*/
/* private */
MuMsgViewPrivate *_priv;
};
struct _MuMsgViewClass {
#ifdef HAVE_GTK3
GtkBoxClass parent_class;
#else
GtkVBoxClass parent_class;
/* insert signal callback declarations, e.g. */
#endif /*!HAVE_GTK3*/
/* void (* my_event) (MuMsgView* obj); */
};
@ -65,4 +75,3 @@ void mu_msg_view_set_message_source (MuMsgView *self, MuMsg *msg);
G_END_DECLS
#endif /* __MU_MSG_VIEW_H__ */