Skip to content

Commit

Permalink
* mu-msg-attach-view.c: don't use gtk_icon_view_set_item_orientation, it
Browse files Browse the repository at this point in the history
  requires gtk 2.22 which is too new
  • Loading branch information
djcb committed Jan 29, 2011
1 parent 4f47bd0 commit c10ef1f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions widgets/mu-msg-attach-view.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion widgets/mu-msg-attach-view.h
Expand Up @@ -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
Expand Down

0 comments on commit c10ef1f

Please sign in to comment.