From c10ef1f3849882016566348a22a5adca998ddbb9 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 29 Jan 2011 12:43:36 +0200 Subject: [PATCH] * mu-msg-attach-view.c: don't use gtk_icon_view_set_item_orientation, it requires gtk 2.22 which is too new --- widgets/mu-msg-attach-view.c | 7 +++++-- widgets/mu-msg-attach-view.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/widgets/mu-msg-attach-view.c b/widgets/mu-msg-attach-view.c index e8502eec..1981b8b3 100644 --- a/widgets/mu-msg-attach-view.c +++ b/widgets/mu-msg-attach-view.c @@ -189,8 +189,11 @@ mu_msg_attach_view_init (MuMsgAttachView *obj) gtk_icon_view_set_margin (GTK_ICON_VIEW(obj), 0); gtk_icon_view_set_spacing (GTK_ICON_VIEW(obj), 0); gtk_icon_view_set_item_padding (GTK_ICON_VIEW(obj), 0); - gtk_icon_view_set_item_orientation (GTK_ICON_VIEW(obj), - GTK_ORIENTATION_HORIZONTAL); + + /* note: only since GTK+ 2.22 */ + /* gtk_icon_view_set_item_orientation (GTK_ICON_VIEW(obj), */ + /* GTK_ORIENTATION_HORIZONTAL); */ + gtk_icon_view_set_selection_mode (GTK_ICON_VIEW(obj), GTK_SELECTION_MULTIPLE); init_drag_and_drop (obj); diff --git a/widgets/mu-msg-attach-view.h b/widgets/mu-msg-attach-view.h index c379990f..55efd6cf 100644 --- a/widgets/mu-msg-attach-view.h +++ b/widgets/mu-msg-attach-view.h @@ -59,7 +59,7 @@ GType mu_msg_attach_view_get_type (void) G_GNUC_CONST; /* if this is a kind of GtkWidget, it should probably return at GtkWidget* */ GtkWidget* mu_msg_attach_view_new (void); - +/* returns # of attachments */ int mu_msg_attach_view_set_message (MuMsgAttachView *self, MuMsg *msg); G_END_DECLS