Re: libbonoboui gnome-2 BonoboControl trouble on activate signal
- From: gandalfn <gandalfn club-internet fr>
- To: michael ximian com
- Cc: Mailing list gnome-components <gnome-components-list gnome org>, Mailing list gnome <gnome-list gnome org>
- Subject: Re: libbonoboui gnome-2 BonoboControl trouble on activate signal
- Date: 12 Apr 2002 17:06:16 +0200
In fact, when I start shell interface he load and display component but
not menu and toolbar who must be displayed with BonoboControl activate
signal!
I work with metacity wm when i switch to terminal and then switch to
shell interface, menu and toolbar are displayed !
I suppose there are a confuse between bonobo activate signal and focus
signal of the widget.
Orbit trace of component
-----------> load
p20629 : ([0x8057d70])->ping () =>: 0x114d
p20629 : ([0x8057d70])->add_client ([0x8058d60])
p20629 : ([0x8057d70])->get_default_database () =>: [0x80596e8]
p20629 : ([0x80596e8])->lookup_with_schema_name
('/desktop/gnome/interface/accessibility', 'fr_FR', 1, ) =>: { d=4 v=1 }
out: ('/schemas/desktop/gnome/interface/accessibility', 0, 1 )
p20629 : ([0x80810a0])->addClient ([0x8080c78], '')[ one way ]
p20629 : ([0x80810a0])->_get_directories () =>: seq[1]={ [0x8080100] }
p20629 : ([0x80801d8])->register_new
('OAFIID:GNOME_bad_downloadFactory', [0x8080ad8]) =>: 0
p20629 : ([0x8080c78])->resetCache ()
p20629 : ([0x8080ad8])->createObject ('OAFIID:GNOME_bad_download')Create
bad download
=>; [0x809ca20]
p20629 : ([0x809ca20])->queryInterface ('IDL:Bonobo/Control:1.0') =>;
[0x809ca20]
p20629 : ([0x809ca20])->unref ()
p20629 : ([0x809ca20])->ref ()
p20629 : ([0x809ca20])->setFrame ([0x80e2c40], )
p20629 : ([0x809ca20])->unref ()
p20629 : ([0x809ca20])->getDesiredSize () =>; { 0x1cf, 0x1d }
p20629 : ([0x809ca20])->getWindowId ('') =>; '96468995'
-----------> swith to terminal
p20629 : ([0x809ca20])->activate (0, )
-----------> swith to shell interface
p20629 : ([0x809ca20])->activate (1, )p20629 :
([0x80e2c40])->getUIContainer () =>: [0x80e2a58]
p20629 : ([0x80e2a58])->registerComponent ('20629-0', [0x80daf28])p20629
: ([0x80daf28])->ref ()
p20629 : ([0x80e2a58])->unref ()
p20629 : ([0x80e2a58])->setNode ('/', '<Root>
<commands>
<cmd name="NewDownload" stockid="gtk-new"/>
</commands>
<menu>
<submenu name="File" label="_File">
<menuitem name="NewDownload" verb=""/>
<separator/>
</submenu>
</menu>
<dockitem name="Toolbar" relief="none" homogeneous="1"
behavior="exclusive" look="text">
<toolitem name="NewDownload" verb=""/>
<separator/>
</dockitem>
</Root>
', '20629-0')
and orbit trace of shell interface
--------------> load
p20630 : ([0x8057c10])->ping () =>: 0x114d
p20630 : ([0x8057c10])->add_client ([0x8058c00])
p20630 : ([0x8057c10])->get_default_database () =>: [0x8059588]
p20630 : ([0x8059588])->lookup_with_schema_name
('/desktop/gnome/interface/accessibility', 'fr_FR', 1, ) =>: { d=4 v=1 }
out: ('/schemas/desktop/gnome/interface/accessibility', 0, 1 )
p20630 : ([0x8059588])->add_listener_with_properties
('/desktop/gnome/interface', [0x8058c00], seq[1]={ { 'name', 'gnome_bad'
} }) =>: 0x8300001f
p20630 : ([0x8059588])->all_dirs ('/desktop/gnome/interface', ) out:
(seq[0]={ } )
p20630 : ([0x8059588])->all_entries_with_schema_name
('/desktop/gnome/interface', 'fr_FR', ) out: (seq[14]={
'toolbar_detachable', 'gtk_theme', 'menubar_detachable',
'can_change_accels', 'accessibility', 'toolbar_icon_size',
'use_custom_font', 'menus_have_icons', 'cursor_blink',
'cursor_blink_time', 'font_name', 'menus_have_tearoff', 'gtk_key_theme',
'toolbar_style' }, seq[14]={ { d=4 v=1 }, { d=2 v='Default' }, { d=4 v=1
}, { d=0 v=0x0 }, { d=4 v=1 }, { d=0 v=0x0 }, { d=4 v=1 }, { d=4 v=1 },
{ d=4 v=1 }, { d=1 v=0x4b0 }, { d=2 v='sans 12' }, { d=4 v=1 }, { d=2
v='Default' }, { d=2 v='icons' } }, seq[14]={ '', '', '',
'/schemas/desktop/gnome/interface/can_change_accels', '',
'/schemas/desktop/gnome/interface/toolbar_icon_size', '', '',
'/schemas/desktop/gnome/interface/cursor_blink',
'/schemas/desktop/gnome/interface/cursor_blink_time', '', '', '', '' },
seq[14]={ 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0 }, seq[14]={ 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } )
p20630 : ([0x8059588])->lookup_with_schema_name
('/apps/gnome_bad/UIConfig/shell', 'fr_FR', 1, ) =>: { d=6 v={ seq[2]={
{ d=2 v='/Toolbar:look:icon' }, { d=2 v='/Shortcut:look:icon' } }, 2 } }
out: ('', 0, 1 )
p20630 : ([0x80a8e50])->addClient ([0x80a8bf8], '')[ one way ]
p20630 : ([0x80a8e50])->activate_from_id ('OAFIID:Bonobo_Moniker_Oaf',
0x0) context { ( username: 'xxxxxxxx' ), ( hostname:
'localhost.localdomain' ), ( domain: 'user' ), ( display: ':0' ) } =>: {
'OAFAID:[OAFIID:Bonobo_Moniker_std_Factory,xxxxxxxx,localhost.localdomain,session]', { d=1 v=seq[3]={ 'OAFIID:Bonobo_Moniker_Oaf', 'OAFIID:Bonobo_Moniker_std_Factory', '/opt/gnome2/lib/bonobo/monikers/libmoniker_std_2.so' } } }
p20630 : ([0x80a8e50])->activate_from_id ('OAFIID:GNOME_bad_download',
0x0) context { ( username: 'nbruguier' ), ( hostname:
'localhost.localdomain' ), ( domain: 'user' ), ( display: ':0' ) }p20630
: ([0x80a8bf8])->resetCache ()
=>: {
'OAFAID:[OAFIID:GNOME_bad_downloadFactory,xxxxxxxxxxx,localhost.localdomain,session]', { d=0 v=[0x80aa688] } }
p20630 : ([0x80aa688])->queryInterface ('IDL:Bonobo/Control:1.0') =>:
[0x80aa688]
p20630 : ([0x80aa688])->unref ()
p20630 : ([0x80aa688])->ref ()
p20630 : ([0x80aa688])->setFrame ([0x80a9108])[ one way ]
p20630 : ([0x80aa688])->unref ()
p20630 : ([0x80aa688])->getDesiredSize () =>: { 0x1cf, 0x1d }
p20630 : ([0x80aa688])->getWindowId ('') =>: '96468995'
-----------> swith to terminal
p20630 : ([0x80aa688])->activate (0)[ one way ]
-----------> swith to shell interface
p20630 : ([0x80aa688])->activate (1)[ one way ]
p20630 : ([0x80a9108])->getUIContainer () =>; [0x8092018]
p20630 : ([0x8092018])->registerComponent ('20629-0', [0x80fa220],
)p20630 : ([0x80fa220])->ref ()
p20630 : ([0x8092018])->unref ()
p20630 : ([0x8092018])->setNode ('/', '<Root>
<commands>
<cmd name="NewDownload" stockid="gtk-new"/>
</commands>
<menu>
<submenu name="File" label="_File">
<menuitem name="NewDownload" verb=""/>
<separator/>
</submenu>
</menu>
<dockitem name="Toolbar" relief="none" homogeneous="1"
behavior="exclusive" look="text">
<toolitem name="NewDownload" verb=""/>
<separator/>
</dockitem>
</Root>
', '20629-0', )
thanks for your help
On ven, 2002-04-12 at 16:06, Michael Meeks wrote:
> Hi there,
>
> On Fri, 2002-04-12 at 13:34, gandalfn wrote:
> > I would like develop a bonobo2 control component who plug in a shell
> > interface. This component have ui interface who merge with the shell.
> > After a look in sample and source of libbonoboui I created a callback
> > for the signal "activate" who load xml bonoboui interface :
>
> The code looks fine.
>
> > In start it's work fine but the switch to another window hide the menu
> > and toolbar in shell window !
>
> Can you expand on what is going wrong ? possibly it's the control-frame
> side, I think you want to do:
>
> bonobo_control_frame_set_autoactivate (frame, FALSE)
>
> in the shell; since otherwise as you gain / loose focus you'll get
> activated / de-activated - a very odd, and pretty useless feature. This
> does in fact default to FALSE, but ... possibly you turned it on ?
>
> Also until recently sawfish was doing very odd things with focus, so
> you might like to make sure that's still working.
>
> Also, to help debug you could do: export ORBIT2_DEBUG=traces, and see
> if you can see the traffic that messes around with it ?
>
> Let me know how you get on,
>
> Regards,
>
> Michael.
>
> --
> mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]