Removing Application Titles

Asked by Edward Harding

Hi,

First of all, I absolutely love DockbarX. Such a great project.

I am messing around with the source code just to customize it to make it more minimal for my own personal use. I ahve reduced the padding, slimmed the borders and removed the big titles, but I am completely stuck with trying to remove the application specific titles. I've searched and searched through the code but unable to find the relevant line(s).

Below is a screenshot of what I mean. The top is what I currently have, and the bottom is what I would like to achieve. I think it looks super awesome minimal.

http://imageshack.us/photo/my-images/853/dockbarx.png/

Thanks in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
DockbarX Edit question
Assignee:
No assignee Edit question
Solved by:
Edward Harding
Solved:
Last query:
Last reply:
Revision history for this message
Matias Särs (msevens) said :
#1

Assuming you use the latest version from bzr:
In windowbutton.py add two lines after line 300 (the one that says "self.label = gtk.Label()").

self.label.set_no_show_all(True)
self.label.hide()

I haven't tested it but it should do the trick.

On a slightly off topic note... Looking at your screenshot I to wonder if you use a theme with very small borders or if you somehow figured out a way to show the previews without borders?

Revision history for this message
Edward Harding (psyphre) said :
#2

Hi Matias,

thanks for the quick response. That has worked, and I have now removed the application title, but unfortunately the application mini icon that is next to the title still remains. How can I hide that too?

To my knowledge the theme does not alter the preview borders sizes? I simply experimented with the cairowidgets.py file. There is a line in that file "def __init__(self, label=None, border_width=1, roundness=5):" which sets the padding of the borders. As you can see I have set it to 1. I think it used to be 5.

I have no coding knowledge whatsoever, just a lot of trial and error.

Revision history for this message
Matias Särs (msevens) said :
#3

Right, of cource. After the line hbox = gtk.HBox() add the lines

hbox.set_no_show_all(True)
self.hbox.hide()

You can remove the previous fix if you like.

I was a bit unclear about the borders. I meant I'm not sure if I can see any metacity/emerald borders in the preview. Is it because you use very small window borders or is it because you found a way to get previews without them?

Revision history for this message
Edward Harding (psyphre) said :
#4

Thanks for that. Got it looking nice and minimal!

Yes the borders are still there. I use a borderless emerald theme, but it still has the top titlebar (which you can see as white bars at the top of the previews).