mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Add support to the GTK GUI for saving private copies of torrent files.
The prefs dialog for this sucks, but it should work.
This commit is contained in:
16
gtk/util.h
16
gtk/util.h
@@ -39,11 +39,13 @@
|
||||
#define SHUTUP
|
||||
#endif
|
||||
|
||||
typedef void (*add_torrents_func_t)(void*,void*,GList*,const char*,gboolean*);
|
||||
typedef void (*add_torrents_func_t)(void*,void*,GList*,const char*,guint);
|
||||
|
||||
/* return number of items in array */
|
||||
#define ALEN(a) (sizeof(a) / sizeof((a)[0]))
|
||||
|
||||
#define ISA(o, t) (g_type_is_a(G_OBJECT_TYPE(G_OBJECT(o)), (t)))
|
||||
|
||||
/* used for a callback function with a data parameter */
|
||||
typedef void (*callbackfunc_t)(void*);
|
||||
|
||||
@@ -82,6 +84,18 @@ urldecode(const char *str, int len);
|
||||
GList *
|
||||
checkfilenames(int argc, char **argv);
|
||||
|
||||
/* returns the flag for an action string */
|
||||
guint
|
||||
addactionflag(const char *action);
|
||||
|
||||
/* returns the action string for a flag */
|
||||
const char *
|
||||
addactionname(guint flag);
|
||||
|
||||
/* turn a NULL-terminated list of void* arguments into a glist */
|
||||
GList *
|
||||
makeglist(void *ptr, ...);
|
||||
|
||||
#ifdef GTK_MAJOR_VERSION
|
||||
|
||||
/* if wind is NULL then you must call gtk_widget_show on the returned widget */
|
||||
|
||||
Reference in New Issue
Block a user