Mercurial > audlegacy-plugins
comparison src/mtp_up/mtp.c @ 2149:cf20f1bd2f1e
- updated German translation
- cleaned up alarm, mtp_up and song_change plugins
author | mf0102 <0102@gmx.at> |
---|---|
date | Thu, 01 Nov 2007 21:20:20 +0100 |
parents | cf4fa45ffd80 |
children | 5ba49a9c053c |
comparison
equal
deleted
inserted
replaced
2148:5b5c450a6a37 | 2149:cf20f1bd2f1e |
---|---|
41 | 41 |
42 static gboolean plugin_active = FALSE,exiting=FALSE; | 42 static gboolean plugin_active = FALSE,exiting=FALSE; |
43 | 43 |
44 void mtp_init ( void ); | 44 void mtp_init ( void ); |
45 void mtp_cleanup ( void ); | 45 void mtp_cleanup ( void ); |
46 void mtp_prefs ( void ); | |
47 void mtp_about ( void ); | |
48 | 46 |
49 GeneralPlugin mtp_gp = | 47 GeneralPlugin mtp_gp = |
50 { | 48 { |
51 NULL, /* handle */ | 49 .description = "MTP Upload", |
52 NULL, /* filename */ | 50 .init = mtp_init, |
53 "MTP Upload " , /* description */ | 51 .cleanup = mtp_cleanup |
54 mtp_init, /* init */ | |
55 mtp_about, /* about */ | |
56 mtp_prefs, /* configure */ | |
57 mtp_cleanup /* cleanup */ | |
58 }; | 52 }; |
59 GtkWidget *mtp_root_menuitem,*mtp_submenu_item_up,*mtp_submenu_item_free,*mtp_submenu; | 53 GtkWidget *mtp_root_menuitem,*mtp_submenu_item_up,*mtp_submenu_item_free,*mtp_submenu; |
60 | 54 |
61 GeneralPlugin *mtp_gplist[] = { &mtp_gp, NULL }; | 55 GeneralPlugin *mtp_gplist[] = { &mtp_gp, NULL }; |
62 DECLARE_PLUGIN(mtp_gp, NULL, NULL, NULL, NULL, NULL, mtp_gplist, NULL, NULL) | 56 DECLARE_PLUGIN(mtp_gp, NULL, NULL, NULL, NULL, NULL, mtp_gplist, NULL, NULL) |
258 gtk_widget_show(mtp_submenu_item_free); | 252 gtk_widget_show(mtp_submenu_item_free); |
259 g_thread_exit(NULL); | 253 g_thread_exit(NULL); |
260 return NULL; | 254 return NULL; |
261 } | 255 } |
262 | 256 |
263 void mtp_prefs ( void ) | |
264 { | |
265 /*pref stub*/ | |
266 } | |
267 | |
268 | |
269 void mtp_about ( void ) | |
270 { | |
271 /*about stub*/ | |
272 } | |
273 | |
274 gboolean mtp_press() | 257 gboolean mtp_press() |
275 { | 258 { |
276 if(!mutex) | 259 if(!mutex) |
277 return TRUE; | 260 return TRUE; |
278 g_mutex_lock(mutex); | 261 g_mutex_lock(mutex); |