diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 21:42:48 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 21:42:48 +0200 |
commit | bc651b0222a41edcbc40b6a26bdc8ecfe4a7f503 (patch) | |
tree | c58bf43ab4f13081ab1b25304b6870cef325e7db /src/fe-gtk/plugingui.c | |
parent | 2b3e1f46e36ee0726dcf9d55593cadab9d42fcb1 (diff) |
Add extension filter for file dialogs, specify filters and starting folder for loading plugins
Diffstat (limited to 'src/fe-gtk/plugingui.c')
-rw-r--r-- | src/fe-gtk/plugingui.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-gtk/plugingui.c b/src/fe-gtk/plugingui.c index 33b27663..d17aadb7 100644 --- a/src/fe-gtk/plugingui.c +++ b/src/fe-gtk/plugingui.c @@ -41,6 +41,7 @@ typedef struct session xchat_context; #include "../common/outbound.h" #include "../common/fe.h" #include "../common/xchatc.h" +#include "../common/cfgfiles.h" #include "gtkutil.h" /* model for the plugin treeview */ @@ -154,7 +155,11 @@ plugingui_load (void) #else #endif #endif /* native file dialogs */ - NULL, FRF_ADDFOLDER); +#ifdef WIN32 + get_xdir_utf8 (), "*.dll;*.lua;*.pl;*.py;*.tcl", FRF_ADDFOLDER|FRF_FILTERISINITIAL|FRF_EXTENSIONS); +#else + get_xdir_utf8 (), "*.so;*.lua;*.pl;*.py;*.tcl", FRF_ADDFOLDER|FRF_FILTERISINITIAL|FRF_EXTENSIONS); +#endif } static void |