Mercurial > audlegacy-plugins
changeset 1474:10791910b866
the label wasn't restored on failure
author | Cristi Magherusan <majeru@atheme-project.org> |
---|---|
date | Sat, 11 Aug 2007 18:10:34 +0300 |
parents | eb0913bf54c3 |
children | 1c5688582a4e |
files | src/mtp_up/mtp.c |
diffstat | 1 files changed, 14 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mtp_up/mtp.c Sun Aug 12 00:06:35 2007 +0900 +++ b/src/mtp_up/mtp.c Sat Aug 11 18:10:34 2007 +0300 @@ -127,13 +127,20 @@ gpointer upload(gpointer arg) { if(!mutex) - return NULL; + { + gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(menuitem))),DEFAULT_LABEL); + gtk_widget_set_sensitive(menuitem, TRUE); + return NULL; + } g_mutex_lock(mutex); if(!mtp_device) - { - g_mutex_unlock(mutex); + { + gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(menuitem))),DEFAULT_LABEL); + gtk_widget_set_sensitive(menuitem, TRUE); + g_mutex_unlock(mutex); return NULL; - } + } + gchar* from_path; GList *up_list=NULL,*node; node=up_list=get_upload_list(); @@ -144,23 +151,20 @@ node = g_list_next(node); } g_list_free(up_list); - g_mutex_unlock(mutex); gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(menuitem))),DEFAULT_LABEL); gtk_widget_set_sensitive(menuitem, TRUE); - + g_mutex_unlock(mutex); return NULL; } - void -mtp_prefs ( void ) +void mtp_prefs ( void ) { /*pref stub*/ } - void -mtp_about ( void ) +void mtp_about ( void ) { /*about stub*/ }