Your message dated Thu, 14 Aug 2008 06:02:43 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#493868: fixed in teatime 2.8.0-5
has caused the Debian Bug report #493868,
regarding Patch 91_gst_enable_playing.patch doesn't get applied
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.)


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

Hello,

The fix for teatime, which is attached in bug 480666, is a diff
between old and new source tree. Currently, it is in source tree as
debian/patches/99_sound_play_stop.diff. When patch target in
debian/rules is run, it just adds
debian/patches/91_gst_enable_playing.patch, so the actual patch
doesn't get applied. I attached 91_gst_enable_playing.patch in this
mail.

Thanks for looking into it.
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-5

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-5.diff.gz
  to pool/main/t/teatime/teatime_2.8.0-5.diff.gz
teatime_2.8.0-5.dsc
  to pool/main/t/teatime/teatime_2.8.0-5.dsc
teatime_2.8.0-5_i386.deb
  to pool/main/t/teatime/teatime_2.8.0-5_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: Wed, 13 Aug 2008 22:52:52 -0700
Source: teatime
Binary: teatime
Architecture: source i386
Version: 2.8.0-5
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: 493868
Changes: 
 teatime (2.8.0-5) unstable; urgency=low
 .
   * Fix 91_gst_enable_playing.patch for real; thanks again Saša!
   (Closes: #493868)
Checksums-Sha1: 
 c6cece0c80494859e11082154e9e507e02bc218a 1296 teatime_2.8.0-5.dsc
 527c77ddb2586d1e89864b951d84b6e201a9d181 35856 teatime_2.8.0-5.diff.gz
 3b0bad916a4f4c6e32d2ccf59f96f485938b9b12 414900 teatime_2.8.0-5_i386.deb
Checksums-Sha256: 
 637405c0f27f83a2a3431c98d826953e84113cdef2ec31ca5564ea3b34fdb11b 1296 
teatime_2.8.0-5.dsc
 b8190880688305a625d3c73d518983fefe513136ec6d603c4f5123d0243ff209 35856 
teatime_2.8.0-5.diff.gz
 923321b41bdb54c15b195eefd92af2fa5374acb2db5a01c567d48e21e9e70f46 414900 
teatime_2.8.0-5_i386.deb
Files: 
 1670bc2bf3c4dad642244676dbe09a2f 1296 gnome optional teatime_2.8.0-5.dsc
 4d22b128a84e5c677a395de48afd0411 35856 gnome optional teatime_2.8.0-5.diff.gz
 4627071b92a3e0e3a9235ceafbdc24f0 414900 gnome optional teatime_2.8.0-5_i386.deb

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

iEYEARECAAYFAkijyMgACgkQWDlSU/gp6ef8twCfV/IDu6rT1khhOA25ZlHs8guU
E7UAoL38yhN0b1n8xEO8wnNWkqkaCqUN
=sBs/
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to