Re: patch to append files to playlist
Chris Hellberg <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
--- Cal Peake <[email protected]> wrote: > > Simple as that - atleast for someone who knows the > GTK toolkit. ;-) > > -- Cal > Ah, sorry if I hadn't made it clear that when I said a session restart, I meant exiting the program then reloading so the options are reloaded. I was thinking that the cfg struct is global so that the following line: cfg.append_to_playlist = GTK_CHECK_MENU_ITEM(gtk_item_factory_get_widget(mainwin_options_menu, "/Append to playlist"))->active; Would cause the cfg.append_to_playlist would set the variable to TRUE, which would be an immediate change in memory for the variable, then when parse_cmd_options is processed, that variable can be referened. The line above is in a switch statement that sets the GTK button to "pressed", so the return value from CHECK_MENU_ITEM should load the right value in the struct variable?