totem r5074 - in trunk: . src src/plugins/lirc



Author: hadess
Date: Thu Feb  7 00:05:19 2008
New Revision: 5074
URL: http://svn.gnome.org/viewvc/totem?rev=5074&view=rev

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

	* src/plugins/lirc/totem-lirc.c: (totem_lirc_to_command):
	* src/totem.c: (totem_action_remote):
	* src/totem.h: Patch from Carsten Luedtke
	<acid_man gmx net> to allow setting the aspect ratio using
	LIRC (Closes: #514832)



Modified:
   trunk/ChangeLog
   trunk/src/plugins/lirc/totem-lirc.c
   trunk/src/totem.c
   trunk/src/totem.h

Modified: trunk/src/plugins/lirc/totem-lirc.c
==============================================================================
--- trunk/src/plugins/lirc/totem-lirc.c	(original)
+++ trunk/src/plugins/lirc/totem-lirc.c	Thu Feb  7 00:05:19 2008
@@ -89,6 +89,7 @@
 #define TOTEM_IR_COMMAND_EJECT "eject"
 #define TOTEM_IR_COMMAND_PLAY_DVD "play_dvd"
 #define TOTEM_IR_COMMAND_MUTE "mute"
+#define TOTEM_IR_COMMAND_TOGGLE_ASPECT "toggle_aspect"
 
 G_MODULE_EXPORT GType register_totem_plugin	(GTypeModule *module);
 GType	totem_lirc_plugin_get_type		(void) G_GNUC_CONST;
@@ -174,6 +175,8 @@
 		return TOTEM_REMOTE_COMMAND_PLAY_DVD;
 	else if (strcmp (str, TOTEM_IR_COMMAND_MUTE) == 0)
 		return TOTEM_REMOTE_COMMAND_MUTE;
+	else if (strcmp (str, TOTEM_IR_COMMAND_TOGGLE_ASPECT) == 0)
+		return TOTEM_REMOTE_COMMAND_TOGGLE_ASPECT;
 	else
 		return TOTEM_REMOTE_COMMAND_UNKNOWN;
 }

Modified: trunk/src/totem.c
==============================================================================
--- trunk/src/totem.c	(original)
+++ trunk/src/totem.c	Thu Feb  7 00:05:19 2008
@@ -2036,6 +2036,9 @@
 	case TOTEM_REMOTE_COMMAND_MUTE:
 		totem_action_volume_relative (totem, -1.0);
 		break;
+	case TOTEM_REMOTE_COMMAND_TOGGLE_ASPECT:
+		totem_action_toggle_aspect_ratio (totem);
+		break;
 	default:
 		handled = FALSE;
 		break;

Modified: trunk/src/totem.h
==============================================================================
--- trunk/src/totem.h	(original)
+++ trunk/src/totem.h	Thu Feb  7 00:05:19 2008
@@ -66,7 +66,8 @@
 	TOTEM_REMOTE_COMMAND_ZOOM_DOWN,
 	TOTEM_REMOTE_COMMAND_EJECT,
 	TOTEM_REMOTE_COMMAND_PLAY_DVD,
-	TOTEM_REMOTE_COMMAND_MUTE
+	TOTEM_REMOTE_COMMAND_MUTE,
+	TOTEM_REMOTE_COMMAND_TOGGLE_ASPECT
 } TotemRemoteCommand;
 
 typedef enum {



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