Mercurial > pidgin
comparison finch/gntsound.c @ 19167:42fc16a234ec
Deleting profile is now from the entry.
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Fri, 13 Jul 2007 18:19:55 +0000 |
parents | 7781dcecbd47 |
children | 315fd66bb08f |
comparison
equal
deleted
inserted
replaced
19166:7781dcecbd47 | 19167:42fc16a234ec |
---|---|
797 | 797 |
798 static void | 798 static void |
799 prof_del_cb(GntWidget *button, gpointer null) | 799 prof_del_cb(GntWidget *button, gpointer null) |
800 { | 800 { |
801 | 801 |
802 gchar * profile = gnt_tree_get_selection_data(GNT_TREE(pref_dialog->profiles)); | 802 const char * profile = gnt_entry_get_text(GNT_ENTRY(pref_dialog->new_profile)); |
803 gchar * pref; | 803 gchar * pref; |
804 | 804 |
805 if (!strcmp(profile, DEFAULT_PROFILE)) | 805 if (!strcmp(profile, DEFAULT_PROFILE)) |
806 return; | 806 return; |
807 | 807 |
815 } | 815 } |
816 | 816 |
817 if(!strcmp(profile,finch_sound_get_active_profile())) | 817 if(!strcmp(profile,finch_sound_get_active_profile())) |
818 reload_pref_window(DEFAULT_PROFILE); | 818 reload_pref_window(DEFAULT_PROFILE); |
819 | 819 |
820 gnt_tree_remove(GNT_TREE(pref_dialog->profiles), profile); | 820 gnt_tree_remove(GNT_TREE(pref_dialog->profiles),(gchar *) profile); |
821 } | 821 } |
822 | 822 |
823 static void | 823 static void |
824 prof_add_cb(GntButton *button, GntEntry * entry) | 824 prof_add_cb(GntButton *button, GntEntry * entry) |
825 { | 825 { |