aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r--widgets/misc/e-attachment-bar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index 2f57a7f339..3fc4753055 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -126,9 +126,11 @@ attachment_bar_set_store (EAttachmentBar *bar,
bar->priv->model = g_object_ref (store);
- gtk_icon_view_set_model (GTK_ICON_VIEW (bar->priv->icon_view),
+ gtk_icon_view_set_model (
+ GTK_ICON_VIEW (bar->priv->icon_view),
bar->priv->model);
- gtk_tree_view_set_model (GTK_TREE_VIEW (bar->priv->tree_view),
+ gtk_tree_view_set_model (
+ GTK_TREE_VIEW (bar->priv->tree_view),
bar->priv->model);
g_signal_connect_object (
@@ -759,7 +761,7 @@ e_attachment_bar_set_expanded (EAttachmentBar *bar,
{
g_return_if_fail (E_IS_ATTACHMENT_BAR (bar));
- if ((bar->priv->expanded ? 1 : 0) == (expanded ? 1 : 0))
+ if (bar->priv->expanded == expanded)
return;
bar->priv->expanded = expanded;