static void mail_attachment_bar_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_ACTIVE_VIEW: e_mail_attachment_bar_set_active_view ( E_MAIL_ATTACHMENT_BAR (object), g_value_get_int (value)); return; case PROP_DRAGGING: e_attachment_view_set_dragging ( E_ATTACHMENT_VIEW (object), g_value_get_boolean (value)); return; case PROP_EDITABLE: e_attachment_view_set_editable ( E_ATTACHMENT_VIEW (object), g_value_get_boolean (value)); return; case PROP_EXPANDED: e_mail_attachment_bar_set_expanded ( E_MAIL_ATTACHMENT_BAR (object), g_value_get_boolean (value)); return; } G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); }
static void attachment_icon_view_finalize (GObject *object) { e_attachment_view_finalize (E_ATTACHMENT_VIEW (object)); /* Chain up to parent's finalize() method. */ G_OBJECT_CLASS (e_attachment_icon_view_parent_class)->finalize (object); }
static void attachment_icon_view_item_activated (GtkIconView *icon_view, GtkTreePath *path) { EAttachmentView *view = E_ATTACHMENT_VIEW (icon_view); e_attachment_view_open_path (view, path, NULL); }
static void attachment_paned_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_ACTIVE_VIEW: g_value_set_int ( value, e_attachment_paned_get_active_view ( E_ATTACHMENT_PANED (object))); return; case PROP_DRAGGING: g_value_set_boolean ( value, e_attachment_view_get_dragging ( E_ATTACHMENT_VIEW (object))); return; case PROP_EDITABLE: g_value_set_boolean ( value, e_attachment_view_get_editable ( E_ATTACHMENT_VIEW (object))); return; case PROP_EXPANDED: g_value_set_boolean ( value, e_attachment_paned_get_expanded ( E_ATTACHMENT_PANED (object))); return; case PROP_RESIZE_TOPLEVEL: g_value_set_boolean ( value, e_attachment_paned_get_resize_toplevel ( E_ATTACHMENT_PANED (object))); return; } G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); }
static gboolean attachment_icon_view_popup_menu (GtkWidget *widget) { EAttachmentView *view = E_ATTACHMENT_VIEW (widget); e_attachment_view_show_popup_menu (view, NULL, NULL, NULL); return TRUE; }
static void attachment_paned_update_actions (EAttachmentView *view) { EAttachmentPanedPrivate *priv; priv = E_ATTACHMENT_PANED_GET_PRIVATE (view); view = E_ATTACHMENT_VIEW (priv->icon_view); e_attachment_view_update_actions (view); }
static GList * attachment_paned_get_selected_paths (EAttachmentView *view) { EAttachmentPanedPrivate *priv; priv = E_ATTACHMENT_PANED_GET_PRIVATE (view); view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_get_selected_paths (view); }
static EAttachmentStore * mail_attachment_bar_get_store (EAttachmentView *view) { EMailAttachmentBarPrivate *priv; priv = E_MAIL_ATTACHMENT_BAR (view)->priv; view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_get_store (view); }
static void mail_attachment_bar_update_actions (EAttachmentView *view) { EMailAttachmentBarPrivate *priv; priv = E_MAIL_ATTACHMENT_BAR (view)->priv; view = E_ATTACHMENT_VIEW (priv->icon_view); e_attachment_view_update_actions (view); }
static void attachment_bar_update_actions (EAttachmentView *view) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); e_attachment_view_update_actions (view); }
static GList * attachment_bar_get_selected_paths (EAttachmentView *view) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); return e_attachment_view_get_selected_paths (view); }
static void attachment_bar_unselect_all (EAttachmentView *view) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); e_attachment_view_unselect_all (view); }
static GList * mail_attachment_bar_get_selected_paths (EAttachmentView *view) { EMailAttachmentBarPrivate *priv; priv = E_MAIL_ATTACHMENT_BAR (view)->priv; view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_get_selected_paths (view); }
static EAttachmentViewPrivate * attachment_bar_get_private (EAttachmentView *view) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); return e_attachment_view_get_private (view); }
static EAttachmentStore * attachment_paned_get_store (EAttachmentView *view) { EAttachmentPanedPrivate *priv; priv = E_ATTACHMENT_PANED_GET_PRIVATE (view); view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_get_store (view); }
static void attachment_bar_unselect_path (EAttachmentView *view, GtkTreePath *path) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); e_attachment_view_unselect_path (view, path); }
static void attachment_paned_unselect_path (EAttachmentView *view, GtkTreePath *path) { EAttachmentPanedPrivate *priv; priv = E_ATTACHMENT_PANED_GET_PRIVATE (view); view = E_ATTACHMENT_VIEW (priv->icon_view); e_attachment_view_unselect_path (view, path); }
static void mail_attachment_bar_unselect_path (EAttachmentView *view, GtkTreePath *path) { EMailAttachmentBarPrivate *priv; priv = E_MAIL_ATTACHMENT_BAR (view)->priv; view = E_ATTACHMENT_VIEW (priv->icon_view); e_attachment_view_unselect_path (view, path); }
static gboolean mail_attachment_bar_path_is_selected (EAttachmentView *view, GtkTreePath *path) { EMailAttachmentBarPrivate *priv; priv = E_MAIL_ATTACHMENT_BAR (view)->priv; view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_path_is_selected (view, path); }
static gboolean attachment_paned_path_is_selected (EAttachmentView *view, GtkTreePath *path) { EAttachmentPanedPrivate *priv; priv = E_ATTACHMENT_PANED_GET_PRIVATE (view); view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_path_is_selected (view, path); }
static gboolean attachment_bar_path_is_selected (EAttachmentView *view, GtkTreePath *path) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); return e_attachment_view_path_is_selected (view, path); }
static gboolean attachment_icon_view_drag_motion (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time) { EAttachmentView *view = E_ATTACHMENT_VIEW (widget); return e_attachment_view_drag_motion (view, context, x, y, time); }
static GtkTreePath * mail_attachment_bar_get_path_at_pos (EAttachmentView *view, gint x, gint y) { EMailAttachmentBarPrivate *priv; priv = E_MAIL_ATTACHMENT_BAR (view)->priv; view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_get_path_at_pos (view, x, y); }
static void attachment_icon_view_drag_end (GtkWidget *widget, GdkDragContext *context) { EAttachmentView *view = E_ATTACHMENT_VIEW (widget); /* Chain up to parent's drag_end() method. */ GTK_WIDGET_CLASS (e_attachment_icon_view_parent_class)-> drag_end (widget, context); e_attachment_view_drag_end (view, context); }
static void attachment_icon_view_drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection, guint info, guint time) { EAttachmentView *view = E_ATTACHMENT_VIEW (widget); e_attachment_view_drag_data_get ( view, context, selection, info, time); }
static GtkTreePath * attachment_paned_get_path_at_pos (EAttachmentView *view, gint x, gint y) { EAttachmentPanedPrivate *priv; priv = E_ATTACHMENT_PANED_GET_PRIVATE (view); view = E_ATTACHMENT_VIEW (priv->icon_view); return e_attachment_view_get_path_at_pos (view, x, y); }
static GtkTreePath * attachment_bar_get_path_at_pos (EAttachmentView *view, gint x, gint y) { EAttachmentBar *bar; bar = E_ATTACHMENT_BAR (view); view = E_ATTACHMENT_VIEW (bar->priv->icon_view); return e_attachment_view_get_path_at_pos (view, x, y); }
static gboolean attachment_icon_view_key_press_event (GtkWidget *widget, GdkEventKey *event) { EAttachmentView *view = E_ATTACHMENT_VIEW (widget); if (e_attachment_view_key_press_event (view, event)) return TRUE; /* Chain up to parent's key_press_event() method. */ return GTK_WIDGET_CLASS (e_attachment_icon_view_parent_class)-> key_press_event (widget, event); }
static void attachment_icon_view_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { switch (property_id) { case PROP_DRAGGING: g_value_set_boolean ( value, e_attachment_view_get_dragging ( E_ATTACHMENT_VIEW (object))); return; case PROP_EDITABLE: g_value_set_boolean ( value, e_attachment_view_get_editable ( E_ATTACHMENT_VIEW (object))); return; } G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); }
static gboolean attachment_icon_view_drag_drop (GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time) { EAttachmentView *view = E_ATTACHMENT_VIEW (widget); if (!e_attachment_view_drag_drop (view, context, x, y, time)) return FALSE; /* Chain up to parent's drag_drop() method. */ return GTK_WIDGET_CLASS (e_attachment_icon_view_parent_class)-> drag_drop (widget, context, x, y, time); }