summaryrefslogtreecommitdiff
path: root/src-ng/main.c
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2017-07-11 11:19:30 +0300
committerErnestas Kulik <ernestask@gnome.org>2017-08-17 18:54:05 +0300
commit99216acf1de5a1b4da1667c1d92505ca655e4f4e (patch)
treedcc9ed459898e955185289c4fafcc2662af87e9b /src-ng/main.c
parentf6c05783eb1166404b87c5252fc6267af1d887fa (diff)
downloadnautilus-99216acf1de5a1b4da1667c1d92505ca655e4f4e.tar.gz
Add NautilusDirectory skeleton
Diffstat (limited to 'src-ng/main.c')
-rw-r--r--src-ng/main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src-ng/main.c b/src-ng/main.c
index 0a3ad0a60..f5474bb79 100644
--- a/src-ng/main.c
+++ b/src-ng/main.c
@@ -2,6 +2,7 @@
#include <glib.h>
+#include "nautilus-directory.h"
#include "nautilus-file.h"
#include "nautilus-task-manager.h"
@@ -11,8 +12,9 @@ got_info (NautilusFile *file,
GError *error,
gpointer user_data)
{
- g_message ("Got info for %p\n\tDisplay name: %s",
- (gpointer) file,
+ g_message ("Got info for %p",
+ (gpointer) file);
+ g_message ("\tDisplay name: %s\n",
g_file_info_get_display_name (info));
g_object_unref (info);
@@ -41,11 +43,13 @@ main (int argc,
g_message ("Creating NautilusFile");
file = nautilus_file_new (location);
- g_message ("Got %p\n", (gpointer) file);
+ g_message ("\tGot %p", (gpointer) file);
+ g_message ("\tFile is directory: %s\n",
+ NAUTILUS_IS_DIRECTORY (file)? "yes" : "no");
g_message ("Creating another NautilusFile for the same location");
duplicate_file = nautilus_file_new (location);
- g_message ("Got %p, which is %s\n",
+ g_message ("\tGot %p, which is %s\n",
(gpointer) duplicate_file,
file == duplicate_file? "the same" : "not the same");