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.
Ubuntu - PDF Reader without border
- MichaelKohler
- Posts: 523
- Joined: August 16th, 2008, 12:05 pm
- Location: Bern, Switzerland
- Grumpus
- Posts: 13246
- Joined: October 19th, 2007, 4:23 am
- Location: ... Da' Swamp
Re: Ubuntu - PDF Reader without border
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)
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
- Frenzie
- Posts: 2135
- Joined: May 5th, 2004, 10:40 am
- Location: Belgium
- Contact:
Re: Ubuntu - PDF Reader without border
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
I wouldn't know if it works, I haven't tested it.
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
- Posts: 523
- Joined: August 16th, 2008, 12:05 pm
- Location: Bern, Switzerland
Re: Ubuntu - PDF Reader without border
^ 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: 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
- Posts: 2135
- Joined: May 5th, 2004, 10:40 am
- Location: Belgium
- Contact:
Re: Ubuntu - PDF Reader without border
Does that mean the code I gave worked without modification? Sweet.
http://chipx86.github.com/gtkparasite/
This might help?
http://chipx86.github.com/gtkparasite/
This might help?
Intelligent alien life does exist, otherwise they would have contacted us.
- MichaelKohler
- Posts: 523
- Joined: August 16th, 2008, 12:05 pm
- Location: Bern, Switzerland
Re: Ubuntu - PDF Reader without border
^ 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:
What did I do wrong?
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
- Posts: 2135
- Joined: May 5th, 2004, 10:40 am
- Location: Belgium
- Contact:
Re: Ubuntu - PDF Reader without border
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
- Posts: 2135
- Joined: May 5th, 2004, 10:40 am
- Location: Belgium
- Contact:
Re: Ubuntu - PDF Reader without border
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.
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
- Posts: 523
- Joined: August 16th, 2008, 12:05 pm
- Location: Bern, Switzerland
Re: Ubuntu - PDF Reader without border
Thanks a lot!