![]() |
2009-08-02
, 17:12
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#2
|
I agree; this is exactly what I'm looking for, but... where can I find the code?
Did you get your browser source from here?
https://garage.maemo.org/plugins/scm.../?root=browser
A fun exercise made possible by Bundyo and jmalonzo.
![]() |
2009-08-02
, 19:12
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#3
|
Regarding hildon-desktop? g-inspector tells me that the widget that is able to display that "Z Z" is an HNAppButton; and the corresponding source file - in the hildon-desktop tarball - is src/hn-app-button.c and the function which checks to see if it hibernated, and draws that "Z Z" accordingly, is hn_app_button_compose_app_pixbuf.
Yes, to be more precise, here: https://garage.maemo.org/plugins/scm.../?root=browser
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.
)
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.
The Following User Says Thank You to daperl For This Useful Post: | ||
![]() |
2009-08-02
, 21:24
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#4
|
GdkPixbuf * hd_wm_entry_info_get_icon (HDWMEntryInfo *info); void hd_wm_entry_info_set_icon (HDWMEntryInfo *info, GdkPixbuf *icon);
![]() |
2009-08-03
, 16:54
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#5
|
The Following 5 Users Say Thank You to qwerty12 For This Useful Post: | ||
![]() |
2009-08-03
, 17:07
|
|
Posts: 4,708 |
Thanked: 4,649 times |
Joined on Oct 2007
@ Bulgaria
|
#6
|
The Following User Says Thank You to Bundyo For This Useful Post: | ||
![]() |
2009-08-03
, 17:22
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#7
|
Thanks a shitton to the awesome javispedro who told me what I was doing wrong when calling gtk_window_set_icon (the final icon has to be 64x54), I've written an example (run, and wait 5 seconds):
The Following User Says Thank You to daperl For This Useful Post: | ||
![]() |
2009-08-03
, 22:48
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#8
|
The Following User Says Thank You to daperl For This Useful Post: | ||
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.
N9: Go white or go home