[rhythmbox] visualizer: add the main accel group to the vis window (fixes #509845)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Subject: [rhythmbox] visualizer: add the main accel group to the vis window (fixes #509845)
- Date: Wed, 29 Apr 2009 03:26:20 -0400 (EDT)
commit 10b7ef46c7b0d3d0afac523d0f3639dcd14f7924
Author: Sergey Rudchenko <sergey rudchenko gmail com>
Date: Wed Apr 29 17:23:27 2009 +1000
visualizer: add the main accel group to the vis window (fixes #509845)
---
plugins/visualizer/rb-visualizer-plugin.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/plugins/visualizer/rb-visualizer-plugin.c b/plugins/visualizer/rb-visualizer-plugin.c
index 48cdbf8..24c1f07 100644
--- a/plugins/visualizer/rb-visualizer-plugin.c
+++ b/plugins/visualizer/rb-visualizer-plugin.c
@@ -1691,7 +1691,6 @@ impl_activate (RBPlugin *plugin,
NULL);
g_free (ui_file);
- g_object_unref (uim);
if (pi->vis_shell == NULL) {
pi->vis_shell = gtk_vbox_new (FALSE, 0);
@@ -1700,6 +1699,7 @@ impl_activate (RBPlugin *plugin,
if (pi->vis_window == NULL) {
GtkWindow *parent;
+ GtkAccelGroup *accel_group;
pi->vis_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (pi->vis_window), _("Music Player Visualization"));
@@ -1714,8 +1714,13 @@ impl_activate (RBPlugin *plugin,
"delete-event",
G_CALLBACK (window_delete_cb),
pi, 0);
+
+ accel_group = gtk_ui_manager_get_accel_group (uim);
+ gtk_window_add_accel_group (GTK_WINDOW (pi->vis_window), accel_group);
}
+ g_object_unref (uim);
+
/* real output window */
update_window (pi, EMBEDDED, -1, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]