![]() |
Compositing pixbufs in the app switcher?
This is a continuing conversation from here.
Quote:
Quote:
https://garage.maemo.org/plugins/scm.../?root=browser I dove into the hildon-desktop and some of the hildon-application-manager code and I've found where they do this stuff for themselves. And I've also dumped the strings of browser.launch, but I've obviously yet to hone in on the application-level solution. I'm ready for a code example. :) Quote:
|
Re: Compositing pixbufs in the app switcher?
Quote:
Quote:
Here's my quick hack of it to get it to build in the Diablo SDK: http://qwerty12.qole.org/tablet-browser-ui.tar.bz2 (I also messed around with gtk_adi_set_child_icon() but failed (I left the code in that tarball, not sure if I was doing it right) to see if it was that which was setting the icon. GTK ADI is a library that was made by an MicroB developer, still linked to by browser.launch, and exists in the SDK repo; albeit in a source-only form ( http://repository.maemo.org/pool/dia...ibg/libgtkadi/ ) despite the libgtkadi1 deb being found in the Nokia SSU update repository. Not really sure why it was used as I've never seen multiple "documents" in one browser window so it caught my curiosity. :) ) Quote:
Personally, I think that the bigger problem is overriding the icon set by hildon-desktop (I don't know if it can be done, I just let hildon-desktop set it through the Icon= parameter in the desktop file). Because, if you can do that, you can get the icon it is currently using and composite your image over it and set the new icon. |
Re: Compositing pixbufs in the app switcher?
Quote:
HNAppButton *button, const GdkPixbuf *src, HDWMEntryInfo *info I think I need at least one static function to help me get the pointers of arguments 1 and 3. Currently, I'm following this rabit hole: HDWMApplication *hd_wm_lookup_application_via_exec (const gchar *exec_name) HDEntryInfo *hd_wm_application_get_info (HDWMApplication *app) I also think that test/test7.c in hildon-desktop has some good static window manager code. Yet the ChangeLog says HDEntryInfo has been replaced by HDWMEntryInfo so... And then, of course, I need Python bindings for all calls and accompanying data structures. :) Quote:
Quote:
Quote:
So much time for so little. :mad: |
Re: Compositing pixbufs in the app switcher?
Be careful since the ZZZ is drawn on the "slotted" (="over the task navigator itself") application switcher icons, and not on the "drop menu" switcher icons, which is where browser draws the favicon (at least on my tablet).
This is done in hildon-desktop/src/hd-switcher-menu-item.c AFAIK, and the interesting libhildonwm functions seem to be Code:
GdkPixbuf * hd_wm_entry_info_get_icon (HDWMEntryInfo *info); If I did not understand what you were trying to achieve please disregard this :) |
Re: Compositing pixbufs in the app switcher?
Thanks a shitton to the awesome javispedro who told me what I was doing wrong when calling gtk_window_set_icon (the final (and source application icon, come think of it) icon has to be 64x54), I've written an example (run, and wait 5 seconds):
http://slexy.org/view/s2T5RmwaT1 http://qwerty12.qole.org/imgdump/screenshot10.png |
Re: Compositing pixbufs in the app switcher?
Now I only need to check how can I get favicons from WebKit :)
|
Re: Compositing pixbufs in the app switcher?
Quote:
|
Re: Compositing pixbufs in the app switcher?
1 Attachment(s)
qwerty12 ... Jules Winnfield
daperl ... Vincent Vega Jules: You, flock of seagulls, you know why we're here? Why don't you tell my man Vincent where you got the sh*t hid at? Marvin: It's over th... Jules: I don't remember askin' you a Goddamn thing! You were saying? Roger: It's in the cupboard. [Vincent starts looking in the upper cupboard] Roger: No, no, the one by your kn-knees. Jules: We happy? [Vincent continues staring at the briefcase's contents] Jules: Vincent! We happy? Vincent: Yeah, we happy. Attachment 3805 |
All times are GMT. The time now is 15:57. |
vBulletin® Version 3.8.8