diff options
author | Carlos Soriano <csoriano@gnome.org> | 2016-01-22 17:43:29 +0100 |
---|---|---|
committer | Carlos Soriano <csoriano@gnome.org> | 2016-02-02 20:52:43 +0100 |
commit | 01384bc44e4e4611597d9451cd6dd49c757e7218 (patch) | |
tree | 407c8105f955ad6b0a06bcfc5d814eb1d9ef5b75 /libnautilus-private | |
parent | ff65c82acf75df2e8d9ae3439bbe4bce0001c711 (diff) | |
download | nautilus-01384bc44e4e4611597d9451cd6dd49c757e7218.tar.gz |
query: fix style issues
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-query.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/libnautilus-private/nautilus-query.c b/libnautilus-private/nautilus-query.c index 42861b799..639ff1708 100644 --- a/libnautilus-private/nautilus-query.c +++ b/libnautilus-private/nautilus-query.c @@ -459,8 +459,8 @@ char * nautilus_query_to_readable_string (NautilusQuery *query) { if (!query || !query->text || query->text[0] == '\0') { - return g_strdup (_("Search")); - } + return g_strdup (_("Search")); + } return g_strdup_printf (_("Search for ā%sā"), query->text); } @@ -522,7 +522,6 @@ nautilus_query_set_date (NautilusQuery *query, if (query->datetime != date) { g_clear_pointer (&query->datetime, g_date_time_unref); if (date) { - /* Assign the new date */ query->datetime = g_date_time_ref (date); } @@ -540,7 +539,7 @@ nautilus_query_get_searching (NautilusQuery *query) void nautilus_query_set_searching (NautilusQuery *query, - gboolean searching) + gboolean searching) { g_return_if_fail (NAUTILUS_IS_QUERY (query)); @@ -549,7 +548,7 @@ nautilus_query_set_searching (NautilusQuery *query, if (query->searching != searching) { query->searching = searching; - g_object_notify (G_OBJECT (query), "searching"); + g_object_notify (G_OBJECT (query), "searching"); } } @@ -580,15 +579,15 @@ gboolean nautilus_query_is_empty (NautilusQuery *query) { if (!query) { - return TRUE; - } + return TRUE; + + } if (!query->datetime && - (!query->text || - (query->text && query->text[0] == '\0')) && - !query->mime_types) { - return TRUE; - } + (!query->text || (query->text && query->text[0] == '\0')) && + !query->mime_types) { + return TRUE; + } return FALSE; } |