totem r5076 - in trunk: . browser-plugin



Author: hadess
Date: Thu Feb  7 14:35:57 2008
New Revision: 5076
URL: http://svn.gnome.org/viewvc/totem?rev=5076&view=rev

Log:
2008-02-07  Bastien Nocera  <hadess hadess net>

	* browser-plugin/Makefile.am: Add a log domain for easier debugging
	* browser-plugin/totem-plugin-viewer.c: (totem_embedded_play):
	Tell the plugin we had a button press if we don't have a URI to
	play (Closes: #504795)



Modified:
   trunk/ChangeLog
   trunk/browser-plugin/Makefile.am
   trunk/browser-plugin/totem-plugin-viewer.c

Modified: trunk/browser-plugin/Makefile.am
==============================================================================
--- trunk/browser-plugin/Makefile.am	(original)
+++ trunk/browser-plugin/Makefile.am	Thu Feb  7 14:35:57 2008
@@ -99,6 +99,7 @@
 	-DBINDIR="\"$(bindir)\""			\
 	-DSHAREDIR="\"$(pkgdatadir)\""			\
 	-DLOGO_NAME="\"totem_logo.png\""		\
+	-DG_LOG_DOMAIN=\""TotemEmbedded\""		\
 	$(DISABLE_DEPRECATED)				\
 	$(AM_CPPFLAGS)
 

Modified: trunk/browser-plugin/totem-plugin-viewer.c
==============================================================================
--- trunk/browser-plugin/totem-plugin-viewer.c	(original)
+++ trunk/browser-plugin/totem-plugin-viewer.c	Thu Feb  7 14:35:57 2008
@@ -498,7 +498,12 @@
 {
 	GError *err = NULL;
 
-	g_return_val_if_fail (emb->current_uri != NULL, FALSE);
+	if (emb->current_uri == NULL) {
+		totem_glow_button_set_glow (TOTEM_GLOW_BUTTON (emb->pp_button), FALSE);
+		g_signal_emit (emb, signals[BUTTON_PRESS], 0,
+			       gtk_get_current_event_time (), 0);
+		return TRUE;
+	}
 
 	totem_glow_button_set_glow (TOTEM_GLOW_BUTTON (emb->pp_button), FALSE);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]