aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-18 21:34:33 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-18 21:35:44 +0800
commit6c05b09be16ac8eceb17653c3c26c0c6f963ef10 (patch)
tree5bb22771cf05419f851373ee43b1ad39a0dcfeaa /shell/e-shell-view.c
parente045e6f12324e1063a87488ac298fd23affea581 (diff)
downloadgsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.gz
gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.tar.zst
gsoc2013-evolution-6c05b09be16ac8eceb17653c3c26c0c6f963ef10.zip
Do not call g_object_notify() when property didn't change
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index fdad1cbd19..06e99a8270 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1367,6 +1367,9 @@ e_shell_view_set_page_num (EShellView *shell_view,
{
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
+ if (shell_view->priv->page_num == page_num)
+ return;
+
shell_view->priv->page_num = page_num;
g_object_notify (G_OBJECT (shell_view), "page-num");
@@ -1440,6 +1443,9 @@ e_shell_view_set_search_rule (EShellView *shell_view,
{
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
+ if (shell_view->priv->search_rule == search_rule)
+ return;
+
if (search_rule != NULL) {
g_return_if_fail (E_IS_FILTER_RULE (search_rule));
g_object_ref (search_rule);