Re: Is the HildonAppMenu example correct?

2009-06-28 Thread Till Harbaum / Lists
Hi,

fyi: There are examples at maemo.org at
  http://maemo.org/api_refs/5.0/beta/tutorial/html/ch10.html
that don't have the gtk_show_all() call. Following your
statements, these examples are thus wrong.

Till

Am Samstag 27 Juni 2009 schrieb Alberto Garcia:
 On Fri, Jun 26, 2009 at 09:49:07PM +0200, Till Harbaum / Lists wrote:
 
  i am using HildonAppMenu for the next release of gpxview.
  I have followed these instructions:
  
  http://maemo.org/api_refs/5.0/beta/hildon/HildonAppMenu.html
  
  The problem: If i add a menu to a newly created stackable window
  this way, i see the menus background being displayed for a fraction
  of a second before the new window is being displayed.
 
 That's probably a bug the beta SDK, I can confirm that the example is
 correct using the latest libhildon version.
 
  If i remove this
// Show all menu items  
gtk_widget_show_all (GTK_WIDGET (menu));
  from the example, i don't have the annoying ghost menu being
  displayed and the menu still works like it should.
 
 You have to explicitely show each menu item for it to appear when the
 menu pops up. gtk_widget_show_all() is the easiest and recommended way
 to do it.
 
 If the menu still appears after removing that call then the hildon
 version in the SDK is quite old.
 
 What's the version of libhildon that you're using? That bug should be
 fixed in 2.1.40.
 
 Berto
 ___
 maemo-developers mailing list
 maemo-developers@maemo.org
 https://lists.maemo.org/mailman/listinfo/maemo-developers
 


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Is the HildonAppMenu example correct?

2009-06-28 Thread Alberto Garcia
On Sun, Jun 28, 2009 at 06:15:18PM +0200, Till Harbaum / Lists wrote:

 fyi: There are examples at maemo.org at
   http://maemo.org/api_refs/5.0/beta/tutorial/html/ch10.html
 that don't have the gtk_show_all() call. Following your
 statements, these examples are thus wrong.

You're right, they have to be fixed. Thanks for pointing it out.

Berto
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Is the HildonAppMenu example correct?

2009-06-27 Thread Till Harbaum / Lists
Hi,

Am Samstag 27 Juni 2009 schrieb Alberto Garcia:
 If the menu still appears after removing that call then the hildon
 version in the SDK is quite old.
Ok, i'll check that. Thanks!

 What's the version of libhildon that you're using? That bug should be
 fixed in 2.1.40.
It's the version Quim distributed on the Copenhagen weekend.

Till
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Is the HildonAppMenu example correct?

2009-06-26 Thread Till Harbaum / Lists
Hi,

i am using HildonAppMenu for the next release of gpxview.
I have followed these instructions:

http://maemo.org/api_refs/5.0/beta/hildon/HildonAppMenu.html

The problem: If i add a menu to a newly created stackable window
this way, i see the menus background being displayed for a fraction
of a second before the new window is being displayed.

If i remove this
  // Show all menu items  
  gtk_widget_show_all (GTK_WIDGET (menu));
from the example, i don't have the annoying ghost menu being
displayed and the menu still works like it should.

Why does the example contain this gtk_widget_show_all() call?
It doesn't seem to be necessary and it even causes a visible 
glitch during menu creation.

Till
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Is the HildonAppMenu example correct?

2009-06-26 Thread Alberto Garcia
On Fri, Jun 26, 2009 at 09:49:07PM +0200, Till Harbaum / Lists wrote:

 i am using HildonAppMenu for the next release of gpxview.
 I have followed these instructions:
 
 http://maemo.org/api_refs/5.0/beta/hildon/HildonAppMenu.html
 
 The problem: If i add a menu to a newly created stackable window
 this way, i see the menus background being displayed for a fraction
 of a second before the new window is being displayed.

That's probably a bug the beta SDK, I can confirm that the example is
correct using the latest libhildon version.

 If i remove this
   // Show all menu items  
   gtk_widget_show_all (GTK_WIDGET (menu));
 from the example, i don't have the annoying ghost menu being
 displayed and the menu still works like it should.

You have to explicitely show each menu item for it to appear when the
menu pops up. gtk_widget_show_all() is the easiest and recommended way
to do it.

If the menu still appears after removing that call then the hildon
version in the SDK is quite old.

What's the version of libhildon that you're using? That bug should be
fixed in 2.1.40.

Berto
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers