~ubuntu-branches/ubuntu/intrepid/rhythmbox/intrepid

« back to all changes in this revision

Viewing changes to plugins/mmkeys/rb-mmkeys-plugin.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-09-03 10:54:50 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20080903105450-mslsln15n2ap6g7o
Tags: 0.11.6svn20080903-0ubuntu1
* New upstream snapshot:
  - doesn't crash when eject an audio player (lp: #263268)
* debian/patches/80_new_libmtp_build.patch:
  - the change is in the new version
* debian/rules:
  - don't specify a gecko variant that's not required in the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include <glib.h>
42
42
#include <glib-object.h>
43
43
 
 
44
#include "rb-util.h"
44
45
#include "rb-plugin.h"
45
46
#include "rb-debug.h"
46
47
#include "rb-shell.h"
115
116
                rb_shell_player_do_previous (plugin->shell_player, NULL);
116
117
        } else if (strcmp (key, "Next") == 0) {
117
118
                rb_shell_player_do_next (plugin->shell_player, NULL);
 
119
        } else if (strcmp (key, "Repeat") == 0) {
 
120
                gboolean shuffle, repeat;
 
121
 
 
122
                if (rb_shell_player_get_playback_state (plugin->shell_player, &shuffle, &repeat)) {
 
123
                        rb_shell_player_set_playback_state (plugin->shell_player, shuffle, !repeat);
 
124
                }
 
125
        } else if (strcmp (key, "Shuffle") == 0) {
 
126
                gboolean shuffle, repeat;
 
127
 
 
128
                if (rb_shell_player_get_playback_state (plugin->shell_player, &shuffle, &repeat)) {
 
129
                        rb_shell_player_set_playback_state (plugin->shell_player, !shuffle, repeat);
 
130
                }
 
131
        } else if (strcmp (key, "FastForward") == 0) {
 
132
                rb_shell_player_seek (plugin->shell_player, FFWD_OFFSET);
 
133
        } else if (strcmp (key, "Rewind") == 0) {
 
134
                rb_shell_player_seek (plugin->shell_player, -RWD_OFFSET);
118
135
        }
119
136
}
120
137