* [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
* Re: [PATCH] Start wizard when left clicked
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
0 siblings, 1 reply; 5+ messages in thread
From: Bastien Nocera @ 2008-09-29 8:49 UTC (permalink / raw)
To: Mario_Limonciello; +Cc: linux-bluetooth
On Sun, 2008-09-28 at 12:45 -0500, Mario_Limonciello@Dell.com wrote:
> 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.
I'd rather it popped up the right-click menu instead of popping up the
wizard.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Start wizard when left clicked
2008-09-29 8:49 ` Bastien Nocera
@ 2008-09-29 9:05 ` Marcel Holtmann
2008-09-29 9:12 ` Bastien Nocera
0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2008-09-29 9:05 UTC (permalink / raw)
To: Bastien Nocera; +Cc: Mario_Limonciello, linux-bluetooth
Hi Bastien,
> > 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.
>
> I'd rather it popped up the right-click menu instead of popping up the
> wizard.
I added a simple menu to the left-click to allow starting the wizard.
Regards
Marcel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Start wizard when left clicked
2008-09-29 9:05 ` Marcel Holtmann
@ 2008-09-29 9:12 ` Bastien Nocera
2008-09-29 9:21 ` Marcel Holtmann
0 siblings, 1 reply; 5+ messages in thread
From: Bastien Nocera @ 2008-09-29 9:12 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Mario_Limonciello, linux-bluetooth
On Mon, 2008-09-29 at 11:05 +0200, Marcel Holtmann wrote:
> Hi Bastien,
>
> > > 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.
> >
> > I'd rather it popped up the right-click menu instead of popping up the
> > wizard.
>
> I added a simple menu to the left-click to allow starting the wizard.
Why a separate/different menu?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Start wizard when left clicked
2008-09-29 9:12 ` Bastien Nocera
@ 2008-09-29 9:21 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2008-09-29 9:21 UTC (permalink / raw)
To: Bastien Nocera; +Cc: Mario_Limonciello, linux-bluetooth
Hi Bastien,
> > > > 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.
> > >
> > > I'd rather it popped up the right-click menu instead of popping up the
> > > wizard.
> >
> > I added a simple menu to the left-click to allow starting the wizard.
>
> Why a separate/different menu?
because I wanna use the left-click menu for the known devices and an
easy access to connect them.
Regards
Marcel
^ 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