Re: Help with hacking Nautilus



Bogdan, please keep list posts on the list.


On Sun, 2007-10-21 at 13:44 +0200, Bogdan Butnaru wrote:
> On 10/21/07, Karsten Br�elmann <guenther rudersport de> wrote:
> >
> > > PS. If anyone's interested, I was trying to make the icons' labels
> > > wider in "text-beside-icons" mode, by increasing MAX_TEXT_WIDTH_BESIDE
> > > in libnautilus-private/nautilus-icon-canvas-item.c. It doesn't seem to
> > > work.
> >
> > Ah, finally, this is what I was missing all post long. :)
> >
> > You are aware that rebuilding in libnautilus-private/ is not sufficient,
> > are you? Point is, when changing and rebuilding stuff in that dir, you
> > want to 'make' in the top level source dir, so Nautilus will actually
> > pick up these *private* lib changes.
> 
> Yeah, I pretty much always do that it doesn't take make that long to
> check for every file changed. I even tried "make clean && make" in the
> top folder, it still doesn't seem to work.

Good. Figured I'd mention this, cause it is a common first problem. :)


> So I would like to have at least printf debugging, to be able to check
> if my methods are called or not. But I don't know how to tell Nautilus
> to remain attached to the console. I took a look through the startup
> files (nautilus-main.c & co), but I can't figure out where it
> detaches.

Since I haven't hacked much on Nautilus myself, you should go with
Nelsons hints.

My (personal) Nautilus hacks actually are rather similar to yours.
However, since I build from source anyway, I bluntly overwrote the
already running one... ;)

  guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}



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