Mercurial > audlegacy-plugins
comparison src/alarm/alarm.c @ 132:26a5aef73955 trunk
[svn] Fixes compiler warnings that "Joker" was talking about in #audacious.
author | asheldon |
---|---|
date | Fri, 27 Oct 2006 12:50:20 -0700 |
parents | dae03298753f |
children | 8e1c653cd605 |
comparison
equal
deleted
inserted
replaced
131:561871379579 | 132:26a5aef73955 |
---|---|
410 GtkFileSelection *fs = GTK_FILE_SELECTION(data); | 410 GtkFileSelection *fs = GTK_FILE_SELECTION(data); |
411 gchar *plist; | 411 gchar *plist; |
412 | 412 |
413 DEBUG("alarm_store_playlistname\n"); | 413 DEBUG("alarm_store_playlistname\n"); |
414 | 414 |
415 plist = gtk_file_selection_get_filename(fs); | 415 plist = g_strdup(gtk_file_selection_get_filename(fs)); |
416 | 416 |
417 gtk_entry_set_text(alarm_conf.playlist, plist); | 417 gtk_entry_set_text(alarm_conf.playlist, plist); |
418 g_free(plist); | |
418 } | 419 } |
419 | 420 |
420 /* | 421 /* |
421 * displays the configuration window and opens the config file. | 422 * displays the configuration window and opens the config file. |
422 */ | 423 */ |
914 { | 915 { |
915 GtkWidget *reminder_dialog; | 916 GtkWidget *reminder_dialog; |
916 DEBUG("Showing reminder '%s'\n", alarm_conf.reminder_msg); | 917 DEBUG("Showing reminder '%s'\n", alarm_conf.reminder_msg); |
917 | 918 |
918 GDK_THREADS_ENTER(); | 919 GDK_THREADS_ENTER(); |
919 reminder_dialog = create_reminder_dialog(alarm_conf.reminder_msg); | 920 reminder_dialog = (GtkWidget*) create_reminder_dialog(alarm_conf.reminder_msg); |
920 gtk_signal_connect(GTK_OBJECT(reminder_dialog), "destroy", | 921 gtk_signal_connect(GTK_OBJECT(reminder_dialog), "destroy", |
921 GTK_SIGNAL_FUNC(dialog_destroyed), &reminder_dialog); | 922 GTK_SIGNAL_FUNC(dialog_destroyed), &reminder_dialog); |
922 gtk_widget_show_all(reminder_dialog); | 923 gtk_widget_show_all(reminder_dialog); |
923 GDK_THREADS_LEAVE(); | 924 GDK_THREADS_LEAVE(); |
924 } | 925 } |