MozillaZine

Ubuntu - PDF Reader without border

Discuss various technical topics not related to Mozilla.
MichaelKohler

User avatar
 
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Post Posted February 26th, 2010, 10:12 am

Hi,

I'd love to have a normal pdf reader which doesn't have a toolbar or scrollbar for Ubuntu. Does anything like that exists? Thanks in advance.

Grumpus

User avatar
 
Posts: 12245
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Post Posted February 27th, 2010, 1:36 pm

You should be able to turn off the toolbar and dictate where the scroll bar is in your "configuration editor" if you have one.
If not there may be a place under the preferences for the package or look under view if it's in the toolbar.
They should work like a status bar and toggle on and off.

Look at Evince and xpdf. If you have both on your system you might not have one of the poppler packages needed for the display characteristics. (There existed a conflict at one time)
Cashless society sacrifices independence, privacy and lastly liberty, encouraged by ignorance and villainy.

Frenzie

User avatar
 
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium

Post Posted February 28th, 2010, 4:09 am

What's a "normal PDF reader" if not an application with a scrollbar? Anyway, you might be able to do something in your ~/.gtkrc-2.0 along the lines of

Code: Select all
style "no-scrollbar" {
GtkRange::stepper-size = 0
GtkRange::slider-width = 0
}

widget_class "EvWindow.*.GtkScrolledWindow.*" style "no-scrollbar"


I wouldn't know if it works, I haven't tested it.
Intelligent alien life does exist, otherwise they would have contacted us.

MichaelKohler

User avatar
 
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Post Posted February 28th, 2010, 7:08 am

^ Thanks to both of you. I could now remove the toolbar and the scrollbar.

@Frenzie: I searched for a method to disable the menubar in this specific app, too, but I couldn't find a way to edit gtkrc-2.0 for that. Any idea?

Frenzie

User avatar
 
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium

Post Posted February 28th, 2010, 2:33 pm

Does that mean the code I gave worked without modification? Sweet.

http://chipx86.github.com/gtkparasite/

This might help?
Intelligent alien life does exist, otherwise they would have contacted us.

MichaelKohler

User avatar
 
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Post Posted February 28th, 2010, 5:44 pm

^ I've done a "make install" without any problem reported, but now when I want to start an app with it the following error message appears:

Code: Select all
michael@michael:~$ GTK_MODULES=gtkparasite evince
Gtk-Message: Failed to load module "gtkparasite": libgtkparasite.so: cannot open shared object file: No such file or directory


What did I do wrong?

Frenzie

User avatar
 
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium

Post Posted March 1st, 2010, 12:22 am

Not sure, I haven't tried it myself, but I read some good things about it. Everything with ./autogen.sh and ./configure went fine?
Intelligent alien life does exist, otherwise they would have contacted us.

Frenzie

User avatar
 
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium

Post Posted March 1st, 2010, 1:50 am

Compiled, ran into the same issue. Found http://code.google.com/p/gtkparasite/issues/detail?id=6 It's got something to do with 64-bit libs vs. 32-bit libs.

Simple fix: sudo cp /usr/local/lib/gtk-2.0 /usr/lib64/ -r

Fix for future compilations: pass --libdir=/usr/lib64 to ./configure

I had expected ./configure to sort this out automatically.

Edit: setting visible to FALSE for EggEditableToolbar disables the toolbar, which makes me figure that my earlier suggested fix could be needlessly complicated (although the scrollbar seems more integral). I hope you can figure it out from here. :)

Also the entirety of this seems rather complex, so I'm thinking I'm probably missing something more obvious/simpler. Oh well, it works and you can do a lot using this mechanism. :)
Intelligent alien life does exist, otherwise they would have contacted us.

MichaelKohler

User avatar
 
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Post Posted March 2nd, 2010, 9:51 am

Thanks a lot!

Return to MozillaZine Tech


Who is online

Users browsing this forum: No registered users and 1 guest