Re: [gedit-list] Newbie question. Configure dialogs in Gedit plugins



On Mon, Jun 2, 2008 at 6:44 PM, Thiago Chaves <shundread gmail com> wrote:
> Hi people,

> THE PROBLEM:
> However, quickly I bumped into the first problem: Where's the method
> that runs the configure dialog? I mean, there's one that creates and
> returns it, but where is the dialog being run from.

The preference window runs it when you click on the configure button
of the plugin list.

> WHY DOES IT SOUND LIKE IT MATTERS TO ME:
> So, I define "create_configure_dialog", connect the response signal to
> a standalone function called "on_preferences_dialog_response(ob,
> *args)" and that's that. The dialog has one entry, USERNAME, and the
> OK and Cancel button. If Cancel is pressed, I destroy (should I hide
> it instead?) the dialog without any remorse. But if OK is pressed, it
> means that changes are relevant and I want the plugin to know about
> it, and that means telling the plugin about the new username.

What's wrong with just using the response signal, and saving/passing
settings to the plugin at that moment?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]