Re: ui tweaking tips





Message: 1
Date: Tue, 24 Jun 2008 11:47:53 +0300
From: "natan yellin" <aantny gmail com>
Subject: Re: tips for making pretty ui
To: gtk-app-devel-list gnome org
Message-ID:
        <cb822e20806240147r7106bb59sd15ab99abeb2d427 mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1

Hello,

On Tue, Jun 24, 2008 at 3:34 AM, Christopher Harvey <arbuckle911 gmail com>
wrote:

Hi,
I think I've got the ropes of gtk down pat, except that I don't know how to
create cool and unique windows. I want to create a small window that sits in
the dock most of the time, then pops up a small window then it's clicked on,
or a key combo is pressed. The important thing is that it has no window
border, isn't moveable and has tiny widgets, audacious is a good example
here. I know it isn't recommended to go against the default system settings
but in my case it makes sense because I want this window to stay out of the
way as much as possible and have a distinct look and feel. I've never used
an RC file before, but any tips or links to tips to help me tweak gtk
widgets and windows are appreciated.  I've never done anything like this
before and tutorials are hard to come by.

There is no official GNOME dock, and panel applets are becoming less and
less popular as unofficial docks (e.g. AWN) become more popular.

 I've been doing work on a universal applet format that can "plug in" to any
dock/panel/sidebar. (We still haven't decided on an official project name,
but you can find the project on
launchpad<https://code.launchpad.net/%7Edesktop-2.0/screenlets/universal-applets>and
freenode under "Universal Applets.") At the moment, applets can only
run
as floating toplevel windows, but there's already been a little bit of work
on integration with AWN.

Until Universal Applets matures, your best choice is probably to write a
program that has an icon in the systray/notification area. You can connect
to the icon's appropriate signals and popup a little window underneath the
systray when its clicked.
How can know where on the screen to put the window so that it comes up directly under the icon in the systray?
You can use the function gtk_window_set_decorated in order to hide the
window's borders.

Thanks,
Chris.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Natan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]