From: Bastien Nocera <hadess@hadess.net>
To: BlueZ Hackers <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] [PATCH] Set "filter" property correctly
Date: Wed, 05 Mar 2008 21:58:41 +0000 [thread overview]
Message-ID: <1204754321.2640.79.camel@cookie.hadess.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 141 bytes --]
Heya,
- Set the default property to "phones" in the test application
- Fix setting filter properties in the device selection widget
Cheers
[-- Attachment #2: bluez-gnome-set-filter-property.patch --]
[-- Type: text/x-patch, Size: 1918 bytes --]
Index: bluetooth-device-selection.c
===================================================================
RCS file: /cvsroot/bluez/gnome/common/bluetooth-device-selection.c,v
retrieving revision 1.17
diff -u -p -u -p -r1.17 bluetooth-device-selection.c
--- bluetooth-device-selection.c 12 Feb 2008 17:26:57 -0000 1.17
+++ bluetooth-device-selection.c 5 Mar 2008 21:56:29 -0000
@@ -656,7 +656,7 @@ bluetooth_device_selection_set_property
break;
case PROP_DEVICE_TYPE_FILTER:
priv->device_type_filter = g_value_get_int (value);
- gtk_combo_box_set_active (GTK_COMBO_BOX(priv->device_type), priv->device_type_filter);
+ gtk_combo_box_set_active (GTK_COMBO_BOX(priv->device_type), priv->device_type_filter >> 1);
break;
case PROP_DEVICE_CATEGORY_FILTER:
priv->device_category_filter = g_value_get_int (value);
Index: test-deviceselection.c
===================================================================
RCS file: /cvsroot/bluez/gnome/common/test-deviceselection.c,v
retrieving revision 1.6
diff -u -p -u -p -r1.6 test-deviceselection.c
--- test-deviceselection.c 2 Feb 2008 04:09:39 -0000 1.6
+++ test-deviceselection.c 5 Mar 2008 21:56:29 -0000
@@ -29,6 +29,7 @@
#include <gtk/gtk.h>
#include "bluetooth-device-selection.h"
+#include "client.h"
static void device_selected_cb(GObject *object,
GParamSpec *spec, gpointer user_data)
@@ -78,7 +79,10 @@ int main(int argc, char **argv)
selector = bluetooth_device_selection_new("Select a Device to Setup");
gtk_container_set_border_width(GTK_CONTAINER(selector), 5);
gtk_widget_show(selector);
- g_object_set(selector, "show-search", TRUE, NULL);
+ g_object_set(selector,
+ "show-search", TRUE,
+ "device-type-filter", BLUETOOTH_TYPE_PHONE,
+ NULL);
g_signal_connect(selector, "selected-device-changed",
G_CALLBACK(select_device_changed), dialog);
g_signal_connect(selector, "notify::device-selected",
[-- Attachment #3: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #4: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next reply other threads:[~2008-03-05 21:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 21:58 Bastien Nocera [this message]
2008-03-06 10:51 ` [Bluez-devel] [PATCH] Set "filter" property correctly Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1204754321.2640.79.camel@cookie.hadess.net \
--to=hadess@hadess.net \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox