[SCM] calf/master: + GUI: handle ESC in file selection dialog properly

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:21 UTC 2013


The following commit has been merged in the master branch:
commit cad0eeaad6e77b0fb7276a72085d95449378afe1
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Feb 19 18:51:11 2009 +0000

    + GUI: handle ESC in file selection dialog properly

diff --git a/src/gui.cpp b/src/gui.cpp
index ec6f08b..8274886 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -555,7 +555,9 @@ void filechooser_param_control::send_configure(const char *key, const char *valu
 void filechooser_param_control::filechooser_value_changed(GtkWidget *widget, gpointer value)
 {
     filechooser_param_control *ctl = (filechooser_param_control *)value;
-    ctl->gui->plugin->configure(ctl->attribs["key"].c_str(), gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(ctl->filechooser)));
+    const char *filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(ctl->filechooser));
+    if (filename)
+        ctl->gui->plugin->configure(ctl->attribs["key"].c_str(), filename);
 }
 
 // line graph

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list