[totem] main: Fix warning when getting out of fullscreen
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Fix warning when getting out of fullscreen
- Date: Sun, 4 Dec 2011 15:48:59 +0000 (UTC)
commit 1da6bb45bf2b66c6fd5193a4ec2da403297ce653
Author: Bastien Nocera <hadess hadess net>
Date: Sun Dec 4 14:05:13 2011 +0100
main: Fix warning when getting out of fullscreen
In the browser plugin. We don't actually need to be parented
to create an OSD any more.
src/totem-fullscreen.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/totem-fullscreen.c b/src/totem-fullscreen.c
index 4ab4c99..893f983 100644
--- a/src/totem-fullscreen.c
+++ b/src/totem-fullscreen.c
@@ -165,8 +165,6 @@ totem_fullscreen_window_realize_cb (GtkWidget *widget, TotemFullscreen *fs)
g_signal_connect (G_OBJECT (gtk_icon_theme_get_for_screen (screen)),
"changed",
G_CALLBACK (totem_fullscreen_theme_changed_cb), fs);
-
- fs->priv->osd = gsd_media_keys_window_new ();
}
static void
@@ -179,10 +177,6 @@ totem_fullscreen_window_unrealize_cb (GtkWidget *widget, TotemFullscreen *fs)
G_CALLBACK (totem_fullscreen_size_changed_cb), fs);
g_signal_handlers_disconnect_by_func (gtk_icon_theme_get_for_screen (screen),
G_CALLBACK (totem_fullscreen_theme_changed_cb), fs);
- if (fs->priv->osd != NULL) {
- gtk_widget_destroy (fs->priv->osd);
- fs->priv->osd = NULL;
- }
}
static gboolean
@@ -539,6 +533,7 @@ totem_fullscreen_init (TotemFullscreen *self)
G_CALLBACK (totem_fullscreen_exit_popup_draw_cb), self);
self->priv->control_popup = GTK_WIDGET (gtk_builder_get_object (self->priv->xml,
"totem_controls_window"));
+ self->priv->osd = gsd_media_keys_window_new ();
/* Motion notify */
gtk_widget_add_events (self->priv->exit_popup, GDK_POINTER_MOTION_MASK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]