diff options
author | David Robillard <d@drobilla.net> | 2012-01-14 21:47:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-14 21:47:32 +0000 |
commit | a2701525891f69cc810ed370dd54ac76944b1d0b (patch) | |
tree | bd605803eb386ab992b2ec59ab0971cd62468d58 /src/gui | |
parent | 692e851810156ce4bc4929ea803366c2fcb2ed94 (diff) | |
download | ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.tar.gz ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.tar.bz2 ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.zip |
Replace some non-portable stuff with glib equivalents.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3947 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/App.cpp | 4 | ||||
-rw-r--r-- | src/gui/ConnectWindow.cpp | 3 | ||||
-rw-r--r-- | src/gui/LoadPatchWindow.cpp | 6 |
3 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 4ee1fe74..448f3903 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -16,10 +16,8 @@ */ #include <cassert> -#include <string> #include <fstream> -#include <time.h> -#include <sys/time.h> +#include <string> #include <gtk/gtkwindow.h> diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index 0b1aa47d..6c5402f5 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -17,9 +17,6 @@ #include <stdlib.h> #include <string> -#include <sys/resource.h> -#include <sys/time.h> -#include <time.h> #include "raul/Process.hpp" #include "raul/log.hpp" diff --git a/src/gui/LoadPatchWindow.cpp b/src/gui/LoadPatchWindow.cpp index 33094bbd..64e6aa4e 100644 --- a/src/gui/LoadPatchWindow.cpp +++ b/src/gui/LoadPatchWindow.cpp @@ -15,8 +15,6 @@ * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <sys/types.h> -#include <dirent.h> #include <cassert> #include <boost/optional.hpp> #include <glibmm/miscutils.h> @@ -86,10 +84,8 @@ LoadPatchWindow::LoadPatchWindow(BaseObjectType* cobject, // Add global examples directory to "shortcut folders" (bookmarks) const string examples_dir = Shared::data_file_path("patches"); - DIR* d = opendir(examples_dir.c_str()); - if (d != NULL) { + if (Glib::file_test(examples_dir, Glib::FILE_TEST_IS_DIR)) { add_shortcut_folder(examples_dir); - closedir(d); } } |