* mug: fix header clearing + code reindentation

This commit is contained in:
Dirk-Jan C. Binnema
2010-11-27 13:31:26 +02:00
parent 2fabf5b564
commit ac1b942dd8
9 changed files with 664 additions and 756 deletions

View File

@ -24,7 +24,6 @@
#include <mu-result.h>
G_BEGIN_DECLS
/* convenience macros */
#define MUG_TYPE_MSG_LIST_VIEW (mug_msg_list_view_get_type())
#define MUG_MSG_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MUG_TYPE_MSG_LIST_VIEW,MugMsgListView))
@ -32,12 +31,11 @@ G_BEGIN_DECLS
#define MUG_IS_MSG_LIST_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MUG_TYPE_MSG_LIST_VIEW))
#define MUG_IS_MSG_LIST_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MUG_TYPE_MSG_LIST_VIEW))
#define MUG_MSG_LIST_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MUG_TYPE_MSG_LIST_VIEW,MugMsgListViewClass))
typedef struct _MugMsgListView MugMsgListView;
typedef struct _MugMsgListView MugMsgListView;
typedef struct _MugMsgListViewClass MugMsgListViewClass;
struct _MugMsgListView {
GtkTreeView parent;
GtkTreeView parent;
/* insert public members, if any */
};
@ -49,32 +47,28 @@ enum _MugError {
};
typedef enum _MugError MugError;
struct _MugMsgListViewClass {
GtkTreeViewClass parent_class;
/* insert signal callback declarations, e.g. */
void (* msg_selected) (MugMsgListView* obj, const char* msgpath);
void (* error_occured) (MugMsgListView* obj, MugError err);
void (*msg_selected) (MugMsgListView * obj, const char *msgpath);
void (*error_occured) (MugMsgListView * obj, MugError err);
};
/* member functions */
GType mug_msg_list_view_get_type (void) G_GNUC_CONST;
GType mug_msg_list_view_get_type(void) G_GNUC_CONST;
/* parameter-less _new function (constructor) */
/* if this is a kind of GtkWidget, it should probably return at GtkWidget* */
GtkWidget* mug_msg_list_view_new (const char *xpath);
GtkWidget *mug_msg_list_view_new(const char *xpath);
int mug_msg_list_view_query (MugMsgListView *self, const char *query);
int mug_msg_list_view_query(MugMsgListView * self, const char *query);
void mug_msg_list_view_move_first(MugMsgListView * self);
void mug_msg_list_view_move_first (MugMsgListView *self);
gboolean mug_msg_list_view_move_prev(MugMsgListView * self);
gboolean mug_msg_list_view_move_next(MugMsgListView * self);
gboolean mug_msg_list_view_move_prev (MugMsgListView *self);
gboolean mug_msg_list_view_move_next (MugMsgListView *self);
const gchar* mug_msg_list_view_get_query (MugMsgListView *self);
const gchar *mug_msg_list_view_get_query(MugMsgListView * self);
G_END_DECLS
#endif /* __MUG_MSG_LIST_VIEW_H__ */
#endif /* __MUG_MSG_LIST_VIEW_H__ */