|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
#49907 [NEW]: PHP Gtk2 Widget can_default is undefinedFrom: chezmmd at gmail dot com
Operating system: WinXP PHP version: 5.2.11 PHP Bug Type: PHP-GTK related Bug description: PHP Gtk2 Widget can_default is undefined Description: ------------ Unable to get GtkEntry to have focus after user selects a row in GtkTreeView on same screen w/o a grab_default. Widget->grab_default causes GtkCritical error w/o can_default (php.exe:2020 Gtk-CRITICAL gtk_widget_grab_default: assertion 'GTK_WIDGET_CAN_DEFAULT'(widget) failed. Widget->can_default causes PHP fatal error and crash. Reproduce code: --------------- <?php $button1 = new GtkButton('Default Test'); $button2 = new GtkButton('Extra Button'); $button2->can_default(TRUE); $vbox = new GtkVBox; $vbox->pack_start($button1, FALSE, FALSE); $vbox->pack_start($button2, FALSE, FALSE); $window = new GtkWindow; $window->connect_simple('destroy', array('gtk', 'main_quit')); $window->set_default_size(120,120); $window->add($vbox); $window->show_all(); $button2->grab_focus(); $button2->grab_default(); Gtk::main(); ?> Expected result: ---------------- Button has keyboard focus and no critical error for can_default property. Actual result: -------------- application crash. -- Edit bug report at http://bugs.php.net/?id=49907&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49907&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49907&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49907&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49907&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49907&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49907&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49907&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49907&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49907&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49907&r=support Expected behavior: http://bugs.php.net/fix.php?id=49907&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49907&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49907&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49907&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49907&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49907&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49907&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49907&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49907&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49907&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49907&r=mysqlcfg -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
#49907 [Opn->Fbk]: PHP Gtk2 Widget can_default is undefined ID: 49907
Updated by: auroraeosrose@... Reported By: chezmmd at gmail dot com -Status: Open +Status: Feedback Bug Type: PHP-GTK related Operating System: WinXP PHP Version: 5.2.11 New Comment: Is this with 2.0.1 or an SVN version of PHP-GTK? Also what version of gtk is on your system? If you're using gtk 2.16 or 2.18 I HIGHLY recommend you upgrade to an svn version of php-gtk - all the can-default stuff has now been wrapped properly (so you set can-default to true and then grab) Thanks! Previous Comments: ------------------------------------------------------------------------ [2009-10-17 08:05:57] chezmmd at gmail dot com Description: ------------ Unable to get GtkEntry to have focus after user selects a row in GtkTreeView on same screen w/o a grab_default. Widget->grab_default causes GtkCritical error w/o can_default (php.exe:2020 Gtk-CRITICAL gtk_widget_grab_default: assertion 'GTK_WIDGET_CAN_DEFAULT'(widget) failed. Widget->can_default causes PHP fatal error and crash. Reproduce code: --------------- <?php $button1 = new GtkButton('Default Test'); $button2 = new GtkButton('Extra Button'); $button2->can_default(TRUE); $vbox = new GtkVBox; $vbox->pack_start($button1, FALSE, FALSE); $vbox->pack_start($button2, FALSE, FALSE); $window = new GtkWindow; $window->connect_simple('destroy', array('gtk', 'main_quit')); $window->set_default_size(120,120); $window->add($vbox); $window->show_all(); $button2->grab_focus(); $button2->grab_default(); Gtk::main(); ?> Expected result: ---------------- Button has keyboard focus and no critical error for can_default property. Actual result: -------------- application crash. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49907&edit=1 -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: #49907 [Opn->Fbk]: PHP Gtk2 Widget can_default is undefinedTwo questions. Is the underlying answer here that Gtk2 sometimes requires both grab_default and grab_focus to get focus on a field/button? and We are currently WinX only. Any idea how long before a new build for this would be available? thanks. auroraeosrose@... wrote: > ID: 49907 > Updated by: auroraeosrose@... > Reported By: chezmmd at gmail dot com > -Status: Open > +Status: Feedback > Bug Type: PHP-GTK related > Operating System: WinXP > PHP Version: 5.2.11 > New Comment: > > Is this with 2.0.1 or an SVN version of PHP-GTK? > > Also what version of gtk is on your system? If you're using gtk 2.16 > or 2.18 I HIGHLY recommend you upgrade to an svn version of php-gtk - > all the can-default stuff has now been wrapped properly (so you set > can-default to true and then grab) > > Thanks! > > > Previous Comments: > ------------------------------------------------------------------------ > > [2009-10-17 08:05:57] chezmmd at gmail dot com > > Description: > ------------ > Unable to get GtkEntry to have focus after user selects a row in > GtkTreeView on same screen w/o a grab_default. Widget->grab_default > causes GtkCritical error w/o can_default (php.exe:2020 Gtk-CRITICAL > gtk_widget_grab_default: assertion 'GTK_WIDGET_CAN_DEFAULT'(widget) > failed. Widget->can_default causes PHP fatal error and crash. > > Reproduce code: > --------------- > <?php > $button1 = new GtkButton('Default Test'); > $button2 = new GtkButton('Extra Button'); > $button2->can_default(TRUE); > > $vbox = new GtkVBox; > $vbox->pack_start($button1, FALSE, FALSE); > $vbox->pack_start($button2, FALSE, FALSE); > > $window = new GtkWindow; > $window->connect_simple('destroy', array('gtk', 'main_quit')); > $window->set_default_size(120,120); > $window->add($vbox); > $window->show_all(); > > $button2->grab_focus(); > $button2->grab_default(); > > Gtk::main(); > > ?> > > > Expected result: > ---------------- > Button has keyboard focus and no critical error for can_default > property. > > Actual result: > -------------- > application crash. > > > ------------------------------------------------------------------------ > > > -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: #49907 [Opn->Fbk]: PHP Gtk2 Widget can_default is undefinedI've been doing snapshot builds Madeleine, I wanted to do a release last
week but ran out of time and I'm at zendcon this week - probably the last week of october I"ll try to get a release out with all the new features ;) -------------------------------------------------- From: "Madeleine D." <chezmmd@...> Sent: Monday, October 19, 2009 11:35 AM To: <auroraeosrose@...> Cc: <php-gtk-dev@...> Subject: Re: [PHP-GTK-DEV] #49907 [Opn->Fbk]: PHP Gtk2 Widget can_default is undefined > > > Two questions. > > Is the underlying answer here that Gtk2 sometimes requires both > grab_default and grab_focus to get focus on a field/button? > > and > > We are currently WinX only. Any idea how long before a new build for this > would be available? > > thanks. > > > auroraeosrose@... wrote: >> ID: 49907 >> Updated by: auroraeosrose@... >> Reported By: chezmmd at gmail dot com >> -Status: Open >> +Status: Feedback >> Bug Type: PHP-GTK related >> Operating System: WinXP >> PHP Version: 5.2.11 >> New Comment: >> >> Is this with 2.0.1 or an SVN version of PHP-GTK? >> >> Also what version of gtk is on your system? If you're using gtk 2.16 >> or 2.18 I HIGHLY recommend you upgrade to an svn version of php-gtk - >> all the can-default stuff has now been wrapped properly (so you set >> can-default to true and then grab) >> >> Thanks! >> >> >> Previous Comments: >> ------------------------------------------------------------------------ >> >> [2009-10-17 08:05:57] chezmmd at gmail dot com >> >> Description: >> ------------ >> Unable to get GtkEntry to have focus after user selects a row in >> GtkTreeView on same screen w/o a grab_default. Widget->grab_default >> causes GtkCritical error w/o can_default (php.exe:2020 Gtk-CRITICAL >> gtk_widget_grab_default: assertion 'GTK_WIDGET_CAN_DEFAULT'(widget) >> failed. Widget->can_default causes PHP fatal error and crash. >> >> Reproduce code: >> --------------- >> <?php $button1 = new GtkButton('Default Test'); >> $button2 = new GtkButton('Extra Button'); >> $button2->can_default(TRUE); >> >> $vbox = new GtkVBox; >> $vbox->pack_start($button1, FALSE, FALSE); >> $vbox->pack_start($button2, FALSE, FALSE); >> $window = new GtkWindow; >> $window->connect_simple('destroy', array('gtk', 'main_quit')); >> $window->set_default_size(120,120); >> $window->add($vbox); >> $window->show_all(); >> >> $button2->grab_focus(); >> $button2->grab_default(); >> >> Gtk::main(); >> >> ?> >> >> Expected result: >> ---------------- >> Button has keyboard focus and no critical error for can_default >> property. >> >> Actual result: >> -------------- >> application crash. >> >> >> ------------------------------------------------------------------------ >> >> >> > > -- > PHP-GTK Development Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: #49907 [Opn->Fbk]: PHP Gtk2 Widget can_default is undefinedE - That would be great. Will hang on for that. Madeleine D. Elizabeth M Smith wrote: > I've been doing snapshot builds Madeleine, I wanted to do a release > last week but ran out of time and I'm at zendcon this week - probably > the last week of october I"ll try to get a release out with all the > new features ;) > > -------------------------------------------------- > From: "Madeleine D." <chezmmd@...> > Sent: Monday, October 19, 2009 11:35 AM > To: <auroraeosrose@...> > Cc: <php-gtk-dev@...> > Subject: Re: [PHP-GTK-DEV] #49907 [Opn->Fbk]: PHP Gtk2 Widget > can_default is undefined > >> >> >> Two questions. >> >> Is the underlying answer here that Gtk2 sometimes requires both >> grab_default and grab_focus to get focus on a field/button? >> >> and >> >> We are currently WinX only. Any idea how long before a new build for >> this would be available? >> >> thanks. >> >> >> auroraeosrose@... wrote: >>> ID: 49907 >>> Updated by: auroraeosrose@... >>> Reported By: chezmmd at gmail dot com >>> -Status: Open >>> +Status: Feedback >>> Bug Type: PHP-GTK related >>> Operating System: WinXP >>> PHP Version: 5.2.11 >>> New Comment: >>> >>> Is this with 2.0.1 or an SVN version of PHP-GTK? >>> >>> Also what version of gtk is on your system? If you're using gtk 2.16 >>> or 2.18 I HIGHLY recommend you upgrade to an svn version of php-gtk - >>> all the can-default stuff has now been wrapped properly (so you set >>> can-default to true and then grab) >>> >>> Thanks! >>> >>> >>> Previous Comments: >>> ------------------------------------------------------------------------ >>> >>> >>> [2009-10-17 08:05:57] chezmmd at gmail dot com >>> >>> Description: >>> ------------ >>> Unable to get GtkEntry to have focus after user selects a row in >>> GtkTreeView on same screen w/o a grab_default. Widget->grab_default >>> causes GtkCritical error w/o can_default (php.exe:2020 Gtk-CRITICAL >>> gtk_widget_grab_default: assertion 'GTK_WIDGET_CAN_DEFAULT'(widget) >>> failed. Widget->can_default causes PHP fatal error and crash. >>> >>> Reproduce code: >>> --------------- >>> <?php $button1 = new GtkButton('Default Test'); >>> $button2 = new GtkButton('Extra Button'); >>> $button2->can_default(TRUE); >>> >>> $vbox = new GtkVBox; >>> $vbox->pack_start($button1, FALSE, FALSE); >>> $vbox->pack_start($button2, FALSE, FALSE); >>> $window = new GtkWindow; >>> $window->connect_simple('destroy', array('gtk', 'main_quit')); >>> $window->set_default_size(120,120); >>> $window->add($vbox); >>> $window->show_all(); >>> >>> $button2->grab_focus(); >>> $button2->grab_default(); >>> >>> Gtk::main(); >>> >>> ?> >>> >>> Expected result: >>> ---------------- >>> Button has keyboard focus and no critical error for can_default >>> property. >>> >>> Actual result: >>> -------------- >>> application crash. >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> >>> >> >> -- >> PHP-GTK Development Mailing List (http://gtk.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > -- PHP-GTK Development Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
| Free embeddable forum powered by Nabble | Forum Help |