Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Community Discussions > The Community Cafe
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

The Community Cafe
The Community Chat area is for lighthearted and enjoyable discussions, like you might find around a water cooler at work.

Almost any non-tech-support topic may be discussed here. Discussions on religion and politics are not allowed, except for politics directly related to free and open source issues. Any topic or discussion that causes problems or drama will be closed. This area is intended for fun and community building, not arguments. Please take those elsewhere. Thanks!

 
Thread Tools Display Modes
Old November 18th, 2008   #1
aaaantoine
Gee! These Aren't Roasted!
 
aaaantoine's Avatar
 
Join Date: Aug 2007
Location: NY, United States
Beans: 160
Introducing Task Dock: A gnome-panel Dock Applet

Because Window List from gnome-panel depends on WnckTasklist to create a standard task list, and because I don't want to mess with any libraries, I've created an independent app.

If you want a dock built into your existing gnome panel, this application will do it.

I've attached two screen shots; one of my current implementation, and one of how the dock would appear on a 48px panel using the Human theme.

This marks my first distributed application, so I expect it to be broken for a lot of people. However, this is pretty much stable on my platform.

Installation instructions:
1. Download the attached tar.gz file.
2. Extract it somewhere in your home folder.
3. Make sure you have libpanelapplet-2.0 and libwnck-1.0 installed, along with their -dev packages.
4. In the terminal, go to the folder and type:
Code:
make
sudo make install
Note that ./configure is omitted because I have not yet implemented it.

Things I eventually want to add:
- Handle urgent messages for windows.
- Set icon locations for windows (In other words, add support for minimize, restore, and window preview animations)
- Actually add support for launchers, so that the task "dock" lives up to its name.
- Add smooth icon scaling, if possible.
- Add options for grouping windows.
- Add options for only showing current workspace windows.

Change log (will provide last 2-3 versions in the event of a regression):
0.0.2: (Thanks, Eemil!)
- Now brings hidden windows to front when clicking the icon, and only minimizes shown windows.
- Switches to the workspace a window resides in when you click to unminimize / activate a window.

0.0.1: Initial release. Lists windows from all workspaces, without grouping, on the gnome panel.

Original post:
Quote:
Originally Posted by aaaantoine
Basically, I want a panel applet that behaves like AWN. Does such an application exist?

If not, which idea do you think is better?

1. Write a fork of the Window List applet that is specialized to behave like AWN.
2. Write and submit patches to the Window List applet to add AWN behavior options for the user.

Actually I would probably do a combination of the two if I went forward with this project. But first, I need to find that source code...

Edit: I use AWN currently. My reasons for wanting to replace it are as follows.
1. It's buggy.
2. It requires compositing, which won't be a problem for me when DRI2 makes it to Ubuntu, but in the mean time...
3. I want to integrate it into my existing gnome panel to save resources.
Attached Images
File Type: png taskdock-screenshot-001.png (4.1 KB, 1094 views)
File Type: png taskdock-screenshot-002.png (11.4 KB, 1138 views)
Attached Files
File Type: gz taskdock-0.0.1.tar.gz (17.2 KB, 237 views)
File Type: gz taskdock-0.0.2.tar.gz (20.8 KB, 692 views)

Last edited by aaaantoine; January 26th, 2009 at 04:10 PM..
aaaantoine is offline   Reply With Quote
Old November 19th, 2008   #2
aaaantoine
Gee! These Aren't Roasted!
 
aaaantoine's Avatar
 
Join Date: Aug 2007
Location: NY, United States
Beans: 160
Re: Dock-style gnome-panel Applet: Does One Exist?

So I found the source code in gnome-panel.

But I'm having a hard time trying to find the widgets for the window list applet itself.

window-list.c seems to apply to the preferences window more than anything else.

...This thread should probably move to the Programming forum.
__________________
Acer Aspire 5050-5554 w/ 4GB RAM upgrade. Rollin with Ubuntu August 07 - December 08; Rollin with Arch since December 08.
aaaantoine is offline   Reply With Quote
Old November 19th, 2008   #3
Therion
Iced Blended Vanilla Crème Ubuntu
 
Join Date: Sep 2007
Location: Right behind you...
Beans: 2,765
Ubuntu Karmic Koala (testing)
Send a message via Yahoo to Therion
Re: Dock-style gnome-panel Applet: Does One Exist?

Do you mean something like Gnome Do?

http://www.flickr.com/photos/7361736...337246/detail/
Therion is offline   Reply With Quote
Old November 19th, 2008   #4
aaaantoine
Gee! These Aren't Roasted!
 
aaaantoine's Avatar
 
Join Date: Aug 2007
Location: NY, United States
Beans: 160
Re: Dock-style gnome-panel Applet: Does One Exist?

No. Gnome Do is great, but a window list it is not.
__________________
Acer Aspire 5050-5554 w/ 4GB RAM upgrade. Rollin with Ubuntu August 07 - December 08; Rollin with Arch since December 08.
aaaantoine is offline   Reply With Quote
Old November 19th, 2008   #5
hanzomon4
Fresh Brewed Ubuntu
 
hanzomon4's Avatar
 
Join Date: Apr 2006
Location: Chicago
Beans: 1,378
Ubuntu Intrepid Ibex (testing)
Send a message via AIM to hanzomon4 Send a message via MSN to hanzomon4 Send a message via Yahoo to hanzomon4 Send a message via Skype™ to hanzomon4
Re: Dock-style gnome-panel Applet: Does One Exist?

That would be cool.. An applet that turns the panel into a dock right?
__________________
Constant development is the law of life, and a man who always tries to maintain his dogmas in order to appear consistent drives himself into a false position - Mahatma Gandhi
hanzomon4 is offline   Reply With Quote
Old November 19th, 2008   #6
Bölvağur
Fresh Brewed Ubuntu
 
Bölvağur's Avatar
 
Join Date: Jul 2007
Location: Reykjavík, Iceland
Beans: 1,312
Ubuntu 9.10 Karmic Koala
Send a message via AIM to Bölvağur
Re: Dock-style gnome-panel Applet: Does One Exist?

if I understand correctly, you are trying to make "Window List 2.24.1" behave the same or similarly to awn?

If Im not going to spain over christmas I would love to participate.

[added]
Send me pm about this when you begin.
__________________
To all the gamers out there:

Ubuntu Gaming Night, every Sunday at 20:00 GTM

Last edited by Bölvağur; November 19th, 2008 at 03:47 PM..
Bölvağur is offline   Reply With Quote
Old November 19th, 2008   #7
ufugu
Just Give Me the Beans!
 
Join Date: Dec 2006
Beans: 49
Re: Dock-style gnome-panel Applet: Does One Exist?

If you mean an applet that behaves like an Apple Dock (for example, clicking the Firefox icon will bring you to the current Firefox window instead of opening a new instance) but runs in the panel, then I am right there with you.

Closest two things I've found:

1) Run the XFCE panel with the xfce panel applet "icon box".

2) Run a bottom panel and AWN concurrently. If you size AWN really small and put your native panel applets far to each end, and then make matching AWN and panel applet backgrounds, you can get a similar result to what you're looking for.
ufugu is offline   Reply With Quote
Old November 19th, 2008   #8
aaaantoine
Gee! These Aren't Roasted!
 
aaaantoine's Avatar
 
Join Date: Aug 2007
Location: NY, United States
Beans: 160
Re: Dock-style gnome-panel Applet: Does One Exist?

Quote:
Originally Posted by Bölvağur View Post
if I understand correctly, you are trying to make "Window List 2.24.1" behave the same or similarly to awn?

If Im not going to spain over christmas I would love to participate.

[added]
Send me pm about this when you begin.
Pretty much.

If I can ever figure out how the code actually works, my short term plans are as follows:

1. Remove the text from the Window List entries (fork). Or, create an option to remove the text (patch).
2. Make icon resize with panel size instead of using multiple rows.
3. When text is removed, the Window List buttons should always fit the icon instead of expanding to fill available space.

That's the "easy" stuff. From there I would like to try figuring out integrating launchers.
__________________
Acer Aspire 5050-5554 w/ 4GB RAM upgrade. Rollin with Ubuntu August 07 - December 08; Rollin with Arch since December 08.

Last edited by aaaantoine; November 19th, 2008 at 04:04 PM..
aaaantoine is offline   Reply With Quote
Old November 19th, 2008   #9
Bölvağur
Fresh Brewed Ubuntu
 
Bölvağur's Avatar
 
Join Date: Jul 2007
Location: Reykjavík, Iceland
Beans: 1,312
Ubuntu 9.10 Karmic Koala
Send a message via AIM to Bölvağur
Re: Dock-style gnome-panel Applet: Does One Exist?

I would guess it might be easiest to copy the code from "Window List 2.24.1" and rename it to "Panel Dock 0.0.1"

Then you can use the same code for minimizing the windows and just have an if statement to check if there is instance of that applications already running, if not then we can use bash command to execute the program or look into the code in gnome-menu (not sure)
__________________
To all the gamers out there:

Ubuntu Gaming Night, every Sunday at 20:00 GTM
Bölvağur is offline   Reply With Quote
Old November 19th, 2008   #10
PCessna
Way Too Much Ubuntu
 
PCessna's Avatar
 
Join Date: Jul 2008
Location: New York, USA
Beans: 263
Ubuntu 8.10 Intrepid Ibex
Send a message via AIM to PCessna Send a message via MSN to PCessna Send a message via Yahoo to PCessna Send a message via Skype™ to PCessna
Re: Dock-style gnome-panel Applet: Does One Exist?

You can make one.

Make new panel, Uncheck expand, choose your size, place on screen, check hide buttons, auto-hide if you want, add applets and shortcuts you want and presto!, You got yourself a nice homemade dock from GNOME's Panel.
__________________
Ubuntu+GNOME! Main Computer: 3.00GHZ, 2048MB RAM, 17" Widescreen monitor, Ubuntu 8.10 (64-bit), Windows XP MCE 2005 (32-bit).Resolution: 1280 x 720 Laptop: 700MHZ, 128 MB ram, 1x" LCD Montior. Windows 2000 PRO (32-bit), Resolution 1024 x768.
PCessna is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:09 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry