[nautilus/wip/gaction_: 30/38] view: fix some warnings
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction_: 30/38] view: fix some warnings
- Date: Wed, 21 Jan 2015 13:21:18 +0000 (UTC)
commit 25d60d7743544e61732ea6d37dc0776a167c256e
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jan 20 11:09:44 2015 -0800
view: fix some warnings
src/nautilus-view.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 1b39124..7cdf598 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -3929,7 +3929,6 @@ add_extension_menu_items (NautilusView *view,
GMenu *gmenu, *children_menu;
char *name, *parsed_name, *label, *detailed_action_name;
gboolean sensitive;
- GdkPixbuf *pixbuf;
gmenu = g_menu_new ();
@@ -4333,8 +4332,8 @@ update_directory_in_scripts_menu (NautilusView *view,
char *uri;
int num;
- g_return_if_fail (NAUTILUS_IS_VIEW (view));
- g_return_if_fail (NAUTILUS_IS_DIRECTORY (directory));
+ g_return_val_if_fail (NAUTILUS_IS_VIEW (view), NULL);
+ g_return_val_if_fail (NAUTILUS_IS_DIRECTORY (directory), NULL);
file_list = nautilus_directory_get_file_list (directory);
filtered = nautilus_file_list_filter_hidden (file_list, FALSE);
@@ -4549,8 +4548,8 @@ update_directory_in_templates_menu (NautilusView *view,
char *templates_directory_uri;
int num;
- g_return_if_fail (NAUTILUS_IS_VIEW (view));
- g_return_if_fail (NAUTILUS_IS_DIRECTORY (directory));
+ g_return_val_if_fail (NAUTILUS_IS_VIEW (view), NULL);
+ g_return_val_if_fail (NAUTILUS_IS_DIRECTORY (directory), NULL);
file_list = nautilus_directory_get_file_list (directory);
filtered = nautilus_file_list_filter_hidden (file_list, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]