public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Start wizard when left clicked
@ 2008-09-28 17:45 Mario_Limonciello
  2008-09-29  8:49 ` Bastien Nocera
  0 siblings, 1 reply; 5+ messages in thread
From: Mario_Limonciello @ 2008-09-28 17:45 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 386 bytes --]

Hi:

Currently the applet doesn't seem to respond to any actions when left clicked unless it's blinking.  This is counter intuitive from the expectation that something will happen when left clicked.  Attached is a patch that will spawn the wizard when left clicked, or stop blinking if it was.

Regards

Mario Limonciello 
Dell | Linux Engineering 
Mario_Limonciello@Dell.com 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 08_start_wizard_left_click.patch --]
[-- Type: text/x-patch; name="08_start_wizard_left_click.patch", Size: 1270 bytes --]

diff -Nur -x '*.orig' -x '*~' bluez-gnome-1.5/applet/main.c bluez-gnome-1.5.new/applet/main.c
--- bluez-gnome-1.5/applet/main.c	2008-09-13 12:34:11.000000000 -0500
+++ bluez-gnome-1.5.new/applet/main.c	2008-09-28 12:37:53.000000000 -0500
@@ -176,7 +176,10 @@
 
 static void activate_callback(GObject *widget, gpointer user_data)
 {
-	show_agents();
+	if (query_blinking())
+		show_agents();
+	else
+		wizard_callback(widget,user_data);
 }
 
 static void popup_callback(GObject *widget, guint button,
diff -Nur -x '*.orig' -x '*~' bluez-gnome-1.5/applet/notify.c bluez-gnome-1.5.new/applet/notify.c
--- bluez-gnome-1.5/applet/notify.c	2008-08-24 11:05:50.000000000 -0500
+++ bluez-gnome-1.5.new/applet/notify.c	2008-09-28 12:37:56.000000000 -0500
@@ -130,3 +130,8 @@
 {
 	gtk_status_icon_set_blinking(statusicon, FALSE);
 }
+
+gboolean query_blinking(void)
+{
+	return gtk_status_icon_get_blinking(statusicon);
+}
diff -Nur -x '*.orig' -x '*~' bluez-gnome-1.5/applet/notify.h bluez-gnome-1.5.new/applet/notify.h
--- bluez-gnome-1.5/applet/notify.h	2008-08-24 11:05:50.000000000 -0500
+++ bluez-gnome-1.5.new/applet/notify.h	2008-09-28 12:37:56.000000000 -0500
@@ -34,3 +34,4 @@
 
 void enable_blinking(void);
 void disable_blinking(void);
+gboolean query_blinking(void);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-29  9:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-28 17:45 [PATCH] Start wizard when left clicked Mario_Limonciello
2008-09-29  8:49 ` Bastien Nocera
2008-09-29  9:05   ` Marcel Holtmann
2008-09-29  9:12     ` Bastien Nocera
2008-09-29  9:21       ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox