[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1914 - gnunet-gtk/src/plugins/fs
From: |
durner |
Subject: |
[GNUnet-SVN] r1914 - gnunet-gtk/src/plugins/fs |
Date: |
Thu, 25 Aug 2005 15:00:01 -0700 (PDT) |
Author: durner
Date: 2005-08-25 14:59:58 -0700 (Thu, 25 Aug 2005)
New Revision: 1914
Modified:
gnunet-gtk/src/plugins/fs/upload.c
Log:
Show "file chooser" or "directory chooser" depending on upload scope.
Modified: gnunet-gtk/src/plugins/fs/upload.c
===================================================================
--- gnunet-gtk/src/plugins/fs/upload.c 2005-08-25 21:57:25 UTC (rev 1913)
+++ gnunet-gtk/src/plugins/fs/upload.c 2005-08-25 21:59:58 UTC (rev 1914)
@@ -429,8 +429,19 @@
UNREF(uploadXML);
return ret;
#else /* MINGW */
- return plibc_ChooseDir(_("Choose the file or directory you want to
publish."),
- BIF_BROWSEINCLUDEFILES | BIF_USENEWUI | BIF_SHAREABLE
| BIF_NONEWFOLDERBUTTON);
+ GtkWidget *fileBut;
+ char *fn;
+
+ fileBut = glade_xml_get_widget(getMainXML(),
+ "scopeFileOnlyButton");
+ if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(fileBut)))
+ fn = plibc_ChooseFile(_("Choose the file you want to publish."),
+ OFN_FILEMUSTEXIST | OFN_SHAREAWARE);
+ else
+ fn = plibc_ChooseDir(_("Choose the directory you want to publish."),
+ BIF_USENEWUI | BIF_SHAREABLE | BIF_NONEWFOLDERBUTTON);
+
+ return fn;
#endif /* MINGW */
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1914 - gnunet-gtk/src/plugins/fs,
durner <=