summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6601b2d)
raw | patch | inline | side by side (parent: 6601b2d)
author | theadib <theadib@users.sourceforge.net> | |
Wed, 20 Feb 2008 22:14:48 +0000 (22:14 +0000) | ||
committer | theadib <theadib@users.sourceforge.net> | |
Wed, 20 Feb 2008 22:14:48 +0000 (22:14 +0000) |
src/extension/prefdialog.cpp | patch | blob | history |
index 5a3204967a239ffd45d1bbd400df00fca2c2e3f8..280269ec277910d55b2783babbf1aa3ddd03f9c9 100644 (file)
\param name Name of the Extension who's dialog this is
\param help The help string for the extension (NULL if none)
\param controls The extension specific widgets in the dialog
-
+
This function initializes the dialog with the name of the extension
in the title. It adds a few buttons and sets up handlers for
them. It also places the passed in widgets into the dialog.
_button_ok->set_use_stock(true);
set_default_response(Gtk::RESPONSE_OK);
_button_ok->grab_focus();
-
- // If we're working with an effect that can be live and
+
+ // If we're working with an effect that can be live and
// the dialog can be pinned, put those options in too
if (_exEnv != NULL) {
if (_param_preview == NULL) {
}
if (signal == Gtk::RESPONSE_OK) {
- _effect->effect(SP_ACTIVE_DESKTOP);
+ if(_effect != NULL)
+ {
+ _effect->effect(SP_ACTIVE_DESKTOP);
+ }
}
if (signal == Gtk::RESPONSE_CANCEL) {
// close the dialog