summaryrefslogtreecommitdiff
path: root/cdplayer
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>1998-04-16 04:18:12 +0000
committerGeorge Lebl <jirka@src.gnome.org>1998-04-16 04:18:12 +0000
commitd29ac5dfad5b422a336c9b384b9c7599075ab059 (patch)
treeea7bafc15c0ea876d71ed9635db98da955d52b8a /cdplayer
parent760d7afa85d8e83c3fefa59e1df5d21abfe672e3 (diff)
removed shutdown corba call and added handler for destroy signal on the
Wed Apr 15 20:13:24 1998 George Lebl <jirka@5z.com> * batmon/batmon.c,cdplayer/cdplayer.c,clock/clock.c, mailcheck/mailcheck.c,winlist/winlist.c: removed shutdown corba call and added handler for destroy signal on the plug
Diffstat (limited to 'cdplayer')
-rw-r--r--cdplayer/cdplayer.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/cdplayer/cdplayer.c b/cdplayer/cdplayer.c
index 4e4f39153..6878c3e85 100644
--- a/cdplayer/cdplayer.c
+++ b/cdplayer/cdplayer.c
@@ -279,22 +279,12 @@ session_save(int id, const char *cfgpath, const char *globcfgpath)
}
static gint
-quit_applet(gpointer data)
+destroy_plug(GtkWidget *widget, gpointer data)
{
- exit(0);
+ gtk_exit(0);
+ return FALSE;
}
-void
-shutdown_applet(int id)
-{
- /*kill our plug using destroy to avoid warnings we need to
- kill the plug but we also need to return from this call*/
- if(plug) gtk_widget_destroy(plug);
- gtk_idle_add(quit_applet,NULL);
-}
-
-
-
int
main(int argc, char **argv)
{
@@ -336,6 +326,9 @@ main(int argc, char **argv)
gtk_widget_show(cdplayer);
gtk_container_add (GTK_CONTAINER (plug), cdplayer);
gtk_widget_show (plug);
+ gtk_signal_connect(GTK_OBJECT(plug),"destroy",
+ GTK_SIGNAL_FUNC(destroy_plug),
+ NULL);
result = gnome_panel_applet_register(plug,applet_id);