WARNING: This server is unstable and will be retired in the next days.
If you want to keep this forum available, please request immediately a migration
on the Nabble Support forum.
Forums that don't receive any migration request will be deleted forever.
Am 07.06.2011 23:37, schrieb Eli Barzilay:
> Three hours ago, Christopher Roy Bratusek wrote:
>> Again learned something :)
>> Still, your new version of `position' breaks SawfishConfig (in
> If by "your version" you mean the one I wrote, then please tell me how
> it breaks. It's been a while since I wrote sawfish code so it's
> likely that I made some stupid mistake. (The method itself is valid,
> and well used, that shouldn't be a problem.)
works. Now in SawfishConfig this code is used (with different
(gtk-combo-box-text-set-active widget (position value list))
widget is a GtkComboBoxText widget, value the usergiven (or fallback)
value of the setting represented by the widget (eg. frame-style), list
is the list given as options (see any 'choice or 'symbol defcustom in
A GtkComboBoxText expects the index-number not the text, so position is
used to return it, with your version of position we get:
*** Bad argument: #<subr gtk-combo-box-set-active>, (), 2
so either position returns nothing or not an integer. As I now got the
time to test, I'll continue now:
New line of code before setting position:
write standard-output (format nil "*** value is: %d" x)
*** value is: #<non-number>
Againg with %s instead:
value is: flip-viewport
? from SawfishConfig it returns the value instead of the index-number.
corresponding code resides in sawfish.gtk.widget (choice and symbol
widgets), in misc-1.9 branch.