* mu-msg-attach-view.c: don't use gtk_icon_view_set_item_orientation, it

requires gtk 2.22 which is too new
This commit is contained in:
Dirk-Jan C. Binnema 2011-01-29 12:43:36 +02:00
parent 4f47bd0dd9
commit c10ef1f384
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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