Using the Nautilus View



Hello everyone,

Let me start off by saying that have been told that the nautilus view
api is not officially supposed to be used by external projects.  That
being said, I think that it would take less work to update my program
between nautilus versions than to recreate the functionality of the
nautilus view myself.

So, my question is as follows:
  
I am having trouble dealing with the Nautilus list view.  I am using the
function "nautilus_view_open_location_in_this_window", located in
libnautilus/nautilus-view.h, to try to change the dir, but to no avail. 
I keep getting a compiler warning that tells me that that function is
undefined.  I double checked my includes; it reads 

#include <libnautilus/nautilus-view.h>.  

Is there anything else that could be causing this madness?

A stranger part of the problem is that gcc tells me that I am not
casting correctly in the function, which suggests that it founds the
header at some point.  

ie. I get both:

warning: passing arg 1 of 'nautilus_view_open_location_in_this_window'
from incompatible pointer type
AND
undefined reference to 'nautilus_view_open_location_in_this_window'

While I have since fixed away the first error, I am still stuck.  Any
help anyone could provide would be much appreciated.  Thanks in advance.

	Peter Snyder




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]