Ubuntu - PDF Reader without border

Discuss various technical topics not related to Mozilla.
Post Reply
User avatar
MichaelKohler
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Ubuntu - PDF Reader without border

Post by MichaelKohler »

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.
User avatar
Grumpus
Posts: 13240
Joined: October 19th, 2007, 4:23 am
Location: ... Da' Swamp

Re: Ubuntu - PDF Reader without border

Post by Grumpus »

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)
Doesn't matter what you say, it's wrong for a toaster to walk around the house and talk to you
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Ubuntu - PDF Reader without border

Post by Frenzie »

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.
User avatar
MichaelKohler
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Re: Ubuntu - PDF Reader without border

Post by MichaelKohler »

^ 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?
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Ubuntu - PDF Reader without border

Post by Frenzie »

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.
User avatar
MichaelKohler
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Re: Ubuntu - PDF Reader without border

Post by MichaelKohler »

^ 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?
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Ubuntu - PDF Reader without border

Post by Frenzie »

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.
User avatar
Frenzie
Posts: 2135
Joined: May 5th, 2004, 10:40 am
Location: Belgium
Contact:

Re: Ubuntu - PDF Reader without border

Post by Frenzie »

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.
User avatar
MichaelKohler
Posts: 523
Joined: August 16th, 2008, 12:05 pm
Location: Bern, Switzerland

Re: Ubuntu - PDF Reader without border

Post by MichaelKohler »

Thanks a lot!
Post Reply