[totem/gnome-2-28] Fix warning on startup related to the menu UI file
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-2-28] Fix warning on startup related to the menu UI file
- Date: Mon, 12 Apr 2010 16:18:54 +0000 (UTC)
commit a89622203648ee7357d2bd46744419d86fed40e5
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 22 16:38:47 2010 +0000
Fix warning on startup related to the menu UI file
The menu GtkBuilder bits were used before they were assigned.
browser-plugin/totem-plugin-viewer.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 90f8558..6bc248e 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -1873,9 +1873,6 @@ totem_embedded_construct (TotemEmbedded *emb,
G_CALLBACK (on_popup_button_toggled), emb);
g_signal_connect (G_OBJECT (popup_button), "button-press-event",
G_CALLBACK (on_popup_button_button_pressed), emb);
- menu = GTK_WIDGET (gtk_builder_get_object (emb->menuxml, "menu"));
- g_signal_connect (G_OBJECT (menu), "unmap",
- G_CALLBACK (on_popup_menu_unmap), emb);
gc = gconf_client_get_default ();
volume = ((double) gconf_client_get_int (gc, GCONF_PREFIX"/volume", NULL)) / 100.0;
@@ -1948,6 +1945,10 @@ totem_embedded_construct (TotemEmbedded *emb,
GTK_WINDOW (emb->window), emb);
g_assert (emb->menuxml);
+ menu = GTK_WIDGET (gtk_builder_get_object (emb->menuxml, "menu"));
+ g_signal_connect (G_OBJECT (menu), "unmap",
+ G_CALLBACK (on_popup_menu_unmap), emb);
+
/* Set the logo and the button glow */
if (!emb->hidden && emb->autostart == FALSE) {
totem_glow_button_set_glow (TOTEM_GLOW_BUTTON (emb->pp_button), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]