Re: Filer: Modifying source to remove permissions display
Thomas Leonard <[email protected]> Tue, 8 Sep 2009 14:39:11 +0100
| Newsgroups | gmane.comp.desktop.rox.devel |
|---|---|
| Message-ID | <[email protected]> |
2009/9/8 Greg Bell <[email protected]>: > Hi Guys, > > After years of using and loving ROX-Filer, I finally realised I have no > use for the permissions, user or group columns in the details view. Fun > reason to have a look at the code. > > Looking at the source code, I see this in display.c: > > static char *details(FilerWindow *filer_window, DirItem *item) > { > . > . > . > else if (filer_window->details_type == DETAILS_TIMES) > { > guchar *ctime, *mtime, *atime; > > ctime = pretty_time(&item->ctime); > mtime = pretty_time(&item->mtime); > atime = pretty_time(&item->atime); > > buf = g_strdup_printf("a[%s] c[%s] m[%s]", atime, ctime, mtime); > g_free(ctime); > g_free(mtime); > g_free(atime); > } > . > . > . > > Nipping this bit of code out and then recompiling (./AppRun --compile) > yields no change to the resulting binary's behaviour. Sorry if this is > a noobie question, but what am I doing wrong? That bit is about times, not permissions, users or groups. You probably want to edit view_details_init() and remove the code to add the columns. -- Dr Thomas Leonard ROX desktop / Zero Install GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july