[gnome-bluetooth] Connect ot the request-focus client panel signal



commit 79588acf0b072e3deb1dd04358261941178721a3
Author: Ross Burton <ross linux intel com>
Date:   Tue Oct 27 17:02:09 2009 +0000

    Connect ot the request-focus client panel signal

 moblin/main.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/moblin/main.c b/moblin/main.c
index 9890a20..09e73f5 100644
--- a/moblin/main.c
+++ b/moblin/main.c
@@ -54,6 +54,14 @@ bluetooth_status_changed (MoblinPanel *panel, gboolean connecting, gpointer user
 	g_free (style);
 }
 
+static void
+panel_request_focus (MoblinPanel *panel, gpointer user_data)
+{
+	MplPanelClient *client = MPL_PANEL_CLIENT (user_data);
+
+	mpl_panel_client_request_focus (client);
+}
+
 /*
  * When the panel is hidden we should re-set the MoblinPanel to its default state.
  * i.e. stop any discovery and show the defaults devices view
@@ -122,6 +130,8 @@ main (int argc, char *argv[])
 		g_signal_connect (panel, "hide-end", (GCallback) _reset_view_cb, content);
 		g_signal_connect (content, "state-changed",
 				G_CALLBACK (bluetooth_status_changed), panel);
+		g_signal_connect (content, "request-focus",
+				  G_CALLBACK (panel_request_focus), panel);
 		gtk_widget_show (content);
 
 		gtk_container_add (GTK_CONTAINER (window), content);



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