rpms/gnome-applets/devel gnome-applets-2.16.0.1-delay-gstreamer-initialization.patch, NONE, 1.1 gnome-applets.spec, 1.202, 1.203

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Dec 12 20:37:59 UTC 2006


Author: rstrode

Update of /cvs/dist/rpms/gnome-applets/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17673

Modified Files:
	gnome-applets.spec 
Added Files:
	gnome-applets-2.16.0.1-delay-gstreamer-initialization.patch 
Log Message:
- fix mixer applet error on login for new users (bug 217919)


gnome-applets-2.16.0.1-delay-gstreamer-initialization.patch:
 load.c |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

--- NEW FILE gnome-applets-2.16.0.1-delay-gstreamer-initialization.patch ---
--- gnome-applets-2.16.0.1/mixer/load.c.delay-gstreamer-initialization	2006-12-12 15:20:06.000000000 -0500
+++ gnome-applets-2.16.0.1/mixer/load.c	2006-12-12 15:29:08.000000000 -0500
@@ -25,7 +25,7 @@
 
 #include <string.h>
 
-#include <glib/glist.h>
+#include <glib.h>
 #ifdef HAVE_GST10
 #include <gst/audio/mixerutils.h>
 #else
@@ -293,21 +293,41 @@
 #endif
 
 static gboolean
-gnome_volume_applet_factory (PanelApplet *applet,
-			     const gchar *iid,
-			     gpointer     data)
+gnome_volume_applet_toplevel_configure_handler (GtkWidget *widget,
+						GdkEventConfigure *event,
+						gpointer data)
 {
   GList *elements;
   static gboolean init = FALSE;
 
+  g_signal_handlers_disconnect_by_func (widget,
+				        gnome_volume_applet_toplevel_configure_handler,
+				        data);
+
   if (!init) {
     gst_init (NULL, NULL);
     init = TRUE;
   }
 
   elements = create_mixer_collection ();
-  gnome_volume_applet_setup (GNOME_VOLUME_APPLET (applet), elements);
+  gnome_volume_applet_setup (GNOME_VOLUME_APPLET (data), elements);
+
+  return FALSE;
+}
 
+static gboolean
+gnome_volume_applet_factory (PanelApplet *applet,
+			     const gchar *iid,
+			     gpointer     data)
+{
+  /* we delay applet specific initialization until the applet 
+   * is fully registered with the panel since gst_init() can block
+   * for longer than the service activation timeouts
+   */
+  g_signal_connect (gtk_widget_get_toplevel (GTK_WIDGET (applet)),
+		    "configure-event",
+		    G_CALLBACK (gnome_volume_applet_toplevel_configure_handler),
+		    applet);
   return TRUE;
 }
 


Index: gnome-applets.spec
===================================================================
RCS file: /cvs/dist/rpms/gnome-applets/devel/gnome-applets.spec,v
retrieving revision 1.202
retrieving revision 1.203
diff -u -r1.202 -r1.203
--- gnome-applets.spec	9 Dec 2006 05:57:54 -0000	1.202
+++ gnome-applets.spec	12 Dec 2006 20:37:57 -0000	1.203
@@ -33,7 +33,7 @@
 Summary:        Small applications for the GNOME panel
 Name:		gnome-applets
 Version:	2.16.2
-Release: 	4%{?dist}
+Release: 	5%{?dist}
 Epoch:          1
 License:	GPL
 Group:          User Interface/Desktops
@@ -65,6 +65,8 @@
 # http://bugzilla.gnome.org/show_bug.cgi?id=382774 
 Patch28: gnome-applets-2.16.2-trash-screen.patch
 
+# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=217919
+Patch29: gnome-applets-2.16.0.1-delay-gstreamer-initialization.patch
 
 BuildRequires:  glib2-devel >= %{glib2_version}
 BuildRequires:  gtk2-devel >= %{gtk2_version}
@@ -158,6 +160,7 @@
 %patch27 -p1 -b .desktop-files
 
 %patch28 -p1 -b .trash-screen
+%patch29 -p1 -b .delay-gstreamer-initialization
 
 cp gswitchit/gswitchit-applet.png  gswitchit/gswitchit-properties-capplet.png
 
@@ -344,6 +347,9 @@
 %{_libdir}/pkgconfig/gweather.pc
 
 %changelog
+* Tue Dec 12 2006 Ray Strode <rstrode at redhat.com> - 1:2.16.2-5
+- fix mixer applet error on login for new users (bug 217919)
+
 * Sat Dec  9 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.16.2-4
 - Small spec file cleanups
 




More information about the fedora-cvs-commits mailing list