Ter, 2004-11-02 �s 00:10 +1100, Nigel Tao escreveu: > Gustavo J. A. M. Carneiro wrote: > >> Right now it only reads Firefox bookmarks. > >> Support for Epiphany and Mozilla is planned. > > > > What about Galeon?! :) > > Version 0.2 now supports Epiphany and Mozilla, as > well as Firefox. I am reading a gconf entry to > pick up the preferred browser - I presume that that > is The Right Way To Do It. Someone let me know if > there is a Gnome API that is recommended instead. > > Galeon and Konqueror planned, but I am currently > running a x86_64 Fedora test release sans both, > and have had some RPM repository conflicts - I'm > simply waiting for Fedora 3 final to hit the > streets next week rather than mess around with > my configuration now. Or, if you can't wait, > patches will be accepted. :) > > Source tarball: > http://sourceforge.net/project/showfiles.php?group_id=122136&package_id=133931&release_id=279424 >
There's something wrong with the code:
---
menubar = gtk.MenuBar()
menubar.connect("button-press-event", on_menubar_click)
menubar.append(root_menu_item)
gtk.rc_parse_string('''
style "browser-bookmarks-menubar-style"
{
GtkMenuBar::shadow-type = none
GtkMenuBar::internal-padding = 0
}
class "GtkMenuBar" style "browser-bookmarks-menubar-
style"''')
gobject.type_register(menubar.__class__)
---
You can't register the class gtk.MenuBar. It is already registered.
I'm surprised this actually worked... You should do something like:
class MyMenuBar: pass
gobject.type_register(MyMenuBar)
(...)later in the code
menubar = MyMenuBar()
menubar.connect("button-press-event", on_menubar_click)
menubar.append(root_menu_item)
gtk.rc_parse_string('''
style "browser-bookmarks-menubar-style"
{
GtkMenuBar::shadow-type = none
GtkMenuBar::internal-padding = 0
}
class "MyMenuBar" style "browser-bookmarks-menubar-
style"''')
>
> Thanks to all for help with the border (shadow)
> style on the menubar. A remaining minor cosmetic
> quibble is that when my applet has focus it has a
> blue (with the Glider theme) rectangle around the
> menu. Again - the Gnome main menu ("Applications
> Actions") does not - it does not seem to be able to
> receive focus (!?). Any suggestions?
Not sure if it works (due to control/container split), but maybe:
menubar.unset_flags(gtk.CAN_FOCUS).
>
>
> Next on the TODO list are packaging and installation
> scripts.
Great. pygnome-hello is a good start, I think..
>
>
> cheers,
> Nigel.
>
> --
> This message was sent with an unlicensed evaluation version of
> Novell NetMail. Please see http://www.netmail.com/ for details.
>
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
--
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
