[gnome-bluetooth] Fix embedding in the Moblin toolbar



commit 86a3231213f0b37056e2e78d8354a971003301da
Author: Joshua Lock <josh linux intel com>
Date:   Wed Oct 7 11:50:01 2009 +0100

    Fix embedding in the Moblin toolbar
    
    The MplPanelGtk is not actually a GtkWidget, we need to get the panels
    window and populate that with our UI rather than trying to add widgets to
    the MplPanelGtk object directly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=597668

 moblin/main.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/moblin/main.c b/moblin/main.c
index 6f063c6..7794c3a 100644
--- a/moblin/main.c
+++ b/moblin/main.c
@@ -91,10 +91,11 @@ main (int argc, char *argv[])
 		panel = mpl_panel_gtk_new (MPL_PANEL_BLUETOOTH, _("bluetooth"),
 					PKGTHEMEDIR "/bluetooth-panel.css",
 					"state-idle", TRUE);
-		mpl_panel_client_set_height_request (panel, 450);
 		window  = mpl_panel_gtk_get_window (MPL_PANEL_GTK (panel));
 
-		make_window_content (GTK_WIDGET (panel));
+		window = mpl_panel_gtk_get_window (MPL_PANEL_GTK (panel));
+		make_window_content (window);
+		mpl_panel_client_set_height_request (panel, 280);
 	}
 
 	gtk_main ();



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