Your message dated Tue, 20 May 2008 05:32:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#480666: fixed in teatime 2.8.0-4
has caused the Debian Bug report #480666,
regarding teatime doesn't play sound file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
480666: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=480666
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: teatime
Version: 2.8.0-3

Hello,

teatime doesn't play a sound file on teacup popup, which I set in the
properties. I have prepared a fix for this bug, which is attached with
this mail.

I am using debian-sid 2.6.24-1-686, libc6 version 2.7-10.
diff -urN old/debian/patches/91_gst_enable_playing.patch new/debian/patches/91_gst_enable_playing.patch
--- old/debian/patches/91_gst_enable_playing.patch	1970-01-01 01:00:00.000000000 +0100
+++ new/debian/patches/91_gst_enable_playing.patch	2008-04-20 19:25:54.000000000 +0200
@@ -0,0 +1,136 @@
+diff -Nur -x '*.orig' -x '*~' old/src/teatime.c old.new/src/teatime.c
+--- old/src/teatime.c	2008-04-20 18:22:02.000000000 +0200
++++ old.new/src/teatime.c	2008-04-20 18:27:15.000000000 +0200
+@@ -88,16 +88,21 @@
+ }
+ 
+ static void
+-popup_hide (GtkWidget *widget, GdkEvent *event, TeatimePopup *popup)
++popup_hide (GtkWidget *widget, GdkEvent *event, Teatime *teatime)
+ {
+-  gtk_timeout_remove (popup->timer_handle);
+-  gtk_widget_hide (popup->cup_window);
+-  gtk_widget_hide (popup->label_window);
+-  popup->visible = FALSE;
++  gtk_timeout_remove (teatime->popup.timer_handle);
++  gtk_widget_hide (teatime->popup.cup_window);
++  gtk_widget_hide (teatime->popup.label_window);  
++
++  GstState state = GST_STATE (teatime->sound);
++  if (state == GST_STATE_PLAYING || state == GST_STATE_PAUSED || GST_STATE_READY)
++    gst_element_set_state (GST_ELEMENT (teatime->sound), GST_STATE_NULL);
++
++  teatime->popup.visible = FALSE;
+ }
+ 
+ static void
+-cup_popup (TeatimePopup *popup)
++cup_popup (Teatime *teatime)
+ {
+   static GdkPixbuf *pixbuf;
+   static GdkPixmap *pixmap;
+@@ -105,20 +110,20 @@
+   GtkWidget *eventbox;
+   gint i;
+     
+-  popup->cup_window = gtk_window_new (GTK_WINDOW_POPUP);
+-  gtk_widget_set_usize (popup->cup_window, CUP_WIDTH, CUP_HEIGHT);
++  teatime->popup.cup_window = gtk_window_new (GTK_WINDOW_POPUP);
++  gtk_widget_set_usize (teatime->popup.cup_window, CUP_WIDTH, CUP_HEIGHT);
+   hbox = gtk_hbox_new (TRUE, 0);
+   for (i=0; i<ROT_FRAMES; i++)
+-    gtk_box_pack_start (GTK_BOX (hbox), popup->image[i], FALSE, FALSE, 0);
+-  gtk_widget_shape_combine_mask (popup->cup_window, popup->bitmap[0], 0, 0);
++    gtk_box_pack_start (GTK_BOX (hbox), teatime->popup.image[i], FALSE, FALSE, 0);
++  gtk_widget_shape_combine_mask (teatime->popup.cup_window, teatime->popup.bitmap[0], 0, 0);
+   eventbox = gtk_event_box_new ();
+   gtk_container_add (GTK_CONTAINER (eventbox), hbox);	
+-  gtk_container_add (GTK_CONTAINER (popup->cup_window), eventbox);
++  gtk_container_add (GTK_CONTAINER (teatime->popup.cup_window), eventbox);
+   g_signal_connect (G_OBJECT (eventbox), "button_release_event",
+-                    G_CALLBACK (popup_hide), popup);
++                    G_CALLBACK (popup_hide), teatime);
+   gtk_widget_show (eventbox);
+   gtk_widget_show (hbox);
+-  gtk_widget_show (popup->image[0]);
++  gtk_widget_show (teatime->popup.image[0]);
+ }
+ 
+ static void
+@@ -273,7 +278,7 @@
+   GstElement *audio_sink;
+   gint center_x, center_y;
+  
+-  if (--teatime->time_left)
++  if (--(teatime->time_left))
+   {
+     animate (teatime);
+     return TRUE;
+@@ -295,7 +300,7 @@
+     if (uri) {
+       g_object_set (G_OBJECT (teatime->sound), "uri", uri, NULL);
+       g_free (uri);
+-      gst_element_set_state (teatime->sound, GST_STATE_PLAYING);
++      gst_element_set_state (GST_ELEMENT (teatime->sound), GST_STATE_PLAYING);
+     }
+   }
+   if (!teatime->properties.popup)
+@@ -312,7 +317,7 @@
+   }
+   else
+   {
+-    cup_popup (&teatime->popup);
++    cup_popup (teatime);
+     label_popup (&teatime->popup, teatime->border);
+   }
+   teatime->popup.frame = 0;    
+@@ -413,7 +418,7 @@
+   if (teatime->timer_handle)
+     gtk_timeout_remove (teatime->timer_handle);
+   if (teatime->popup.visible)
+-    popup_hide (NULL, NULL, &teatime->popup);
++    popup_hide (NULL, NULL, teatime);
+   teatime->full = TRUE;
+   teatime->time_left = teatime->drawing_time * FRAMES;
+   teatime->timer_handle = gtk_timeout_add (333, (GtkFunction)timer, teatime);
+@@ -622,25 +627,25 @@
+   
+   gdk_rgb_init();
+ 
+-  gst_init (0, NULL);
++  gst_init (NULL, NULL);
+ 
+   teatime->sound = gst_element_factory_make ("playbin", "playbin");
+   if (teatime->sound) {
+       GstBus *bus;
+-      GstElement *sink;
+-
+-      sink = gst_element_factory_make ("gconfaudiosink", "audiosink");
+-      if (sink)
+-          g_object_set (G_OBJECT (teatime->sound), "audio-sink", sink, NULL);
+-
+-      sink = gst_element_factory_make ("fakesink", "fakevideosink");
+-      if (sink)
+-          g_object_set (G_OBJECT (teatime->sound), "video-sink", sink, NULL);
+-
+-      sink = gst_element_factory_make ("fakesink", "fakevis");
+-      if (sink)
+-          g_object_set (G_OBJECT (teatime->sound), "vis-plugin", sink, NULL);
+-
++//      GstElement *sink;
++//
++//      sink = gst_element_factory_make ("gconfaudiosink", "audiosink");
++//      if (sink)
++//          g_object_set (G_OBJECT (teatime->sound), "audio-sink", sink, NULL);
++//
++//      sink = gst_element_factory_make ("fakesink", "fakevideosink");
++//      if (sink)
++//          g_object_set (G_OBJECT (teatime->sound), "video-sink", sink, NULL);
++//
++//      sink = gst_element_factory_make ("fakesink", "fakevis");
++//      if (sink)
++//          g_object_set (G_OBJECT (teatime->sound), "vis-plugin", sink, NULL);
++//
+       bus = gst_pipeline_get_bus (GST_PIPELINE (teatime->sound));
+       gst_bus_add_watch (bus, bus_callback, teatime->sound);
+       gst_object_unref (bus);

--- End Message ---
--- Begin Message ---
Source: teatime
Source-Version: 2.8.0-4

We believe that the bug you reported is fixed in the latest version of
teatime, which is due to be installed in the Debian FTP archive:

teatime_2.8.0-4.diff.gz
  to pool/main/t/teatime/teatime_2.8.0-4.diff.gz
teatime_2.8.0-4.dsc
  to pool/main/t/teatime/teatime_2.8.0-4.dsc
teatime_2.8.0-4_i386.deb
  to pool/main/t/teatime/teatime_2.8.0-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ian Wienand <[EMAIL PROTECTED]> (supplier of updated teatime package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 19 May 2008 22:14:24 -0700
Source: teatime
Binary: teatime
Architecture: source i386
Version: 2.8.0-4
Distribution: unstable
Urgency: low
Maintainer: Ian Wienand <[EMAIL PROTECTED]>
Changed-By: Ian Wienand <[EMAIL PROTECTED]>
Description: 
 teatime    - Gnome Panel applet to reminds you when your tea is ready
Closes: 480666
Changes: 
 teatime (2.8.0-4) unstable; urgency=low
 .
   * Add patches/99_sound_play_stop.diff to fix sound playing.  Patch by
     Saša Bodiroža <[EMAIL PROTECTED]>, thanks Saša!  (Closes: #480666)
Checksums-Sha1: 
 64c1aa7ce10d89e5ce69090b0362a26a79c7a533 1288 teatime_2.8.0-4.dsc
 234cbdd834a18f3dccf37461a05bd3e99904a7a7 35404 teatime_2.8.0-4.diff.gz
 9982bf0b1c455e0a18764a04e7b15a848b5c4f5a 414784 teatime_2.8.0-4_i386.deb
Checksums-Sha256: 
 b0cd106bfdd6e46f9dc25db72f615425a775facb730b693bbd66260a3797ee5d 1288 
teatime_2.8.0-4.dsc
 2afaae2290e10d0934fd04db238782c74dcbeee44261e30dfef6d2fbebb5720c 35404 
teatime_2.8.0-4.diff.gz
 1395114a4270f61504b0e9ffdc35aeebd55c38dbf2477c06014dc3294ba077f8 414784 
teatime_2.8.0-4_i386.deb
Files: 
 65297185ab9687f289a75c965c7655b9 1288 gnome optional teatime_2.8.0-4.dsc
 25c54729c722fb4500403756f04b64dd 35404 gnome optional teatime_2.8.0-4.diff.gz
 c4c5c58c67ffa98cd211ec395ecc953b 414784 gnome optional teatime_2.8.0-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIMl57WDlSU/gp6ecRAlhKAKC2xrxyNMh9nj7VbNO5n8UtCej4fACgwE1C
KGgrRaoeTzPRHm04NxLdRwM=
=zagF
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to