aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-bar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-11-10 11:40:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-11-11 04:54:43 +0800
commit2c4ae5e7685c462f8d464448e4617b8dea029e72 (patch)
treec34f0cbb7c500ff70f10fce846631b0a948b341c /widgets/misc/e-attachment-bar.c
parent583da46b8caf4b2a8b548b03c38fe0e84164abfb (diff)
downloadgsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.gz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.bz2
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.lz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.xz
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.zst
gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.zip
Coding style and whitespace cleanup.
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;