diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-08 04:25:02 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-12-08 11:11:21 +0800 |
commit | a01525c9316b13153cb00fa99cdc587e3ce7c350 (patch) | |
tree | 8053b4a68ca33a68cb8123f0a703c003184fa8d0 /shell/e-shell-switcher.c | |
parent | 8927e9d2e0d2bfc0f0a2cc7821d2ef8658e8670f (diff) | |
download | gsoc2013-evolution-a01525c9316b13153cb00fa99cdc587e3ce7c350.tar.gz gsoc2013-evolution-a01525c9316b13153cb00fa99cdc587e3ce7c350.tar.zst gsoc2013-evolution-a01525c9316b13153cb00fa99cdc587e3ce7c350.zip |
Miscellaneous EShellView-related cleanups.
Diffstat (limited to 'shell/e-shell-switcher.c')
-rw-r--r-- | shell/e-shell-switcher.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/e-shell-switcher.c b/shell/e-shell-switcher.c index 3a72851f97..1deefa5613 100644 --- a/shell/e-shell-switcher.c +++ b/shell/e-shell-switcher.c @@ -647,10 +647,12 @@ e_shell_switcher_add_action (EShellSwitcher *switcher, gtk_tool_item_set_is_important (GTK_TOOL_ITEM (widget), TRUE); gtk_widget_show (widget); - if ((button = tool_item_get_button (widget)) != NULL) - g_signal_connect (button, "button-release-event", - G_CALLBACK (tool_item_button_cb), - new_window_action); + button = tool_item_get_button (widget); + if (button != NULL) + g_signal_connect ( + button, "button-release-event", + G_CALLBACK (tool_item_button_cb), + new_window_action); switcher->priv->proxies = g_list_append ( switcher->priv->proxies, widget); |