[gnome-bluetooth] lib: Indent and document gtk_tree_store_new() call
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Indent and document gtk_tree_store_new() call
- Date: Tue, 14 Nov 2017 16:58:20 +0000 (UTC)
commit 215acf68ff8f2ceb7e79a4e3a2250fd8f1158462
Author: Bastien Nocera <hadess hadess net>
Date: Tue Nov 14 17:20:58 2017 +0100
lib: Indent and document gtk_tree_store_new() call
Makes it easier to see which column has which type.
https://bugzilla.gnome.org/show_bug.cgi?id=782530
lib/bluetooth-client.c | 25 ++++++++++++++++++-------
1 files changed, 18 insertions(+), 7 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 159f9d9..7175aa9 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -941,13 +941,24 @@ static void bluetooth_client_init(BluetoothClient *client)
{
BluetoothClientPrivate *priv = BLUETOOTH_CLIENT_GET_PRIVATE(client);
- priv->store = gtk_tree_store_new(_BLUETOOTH_NUM_COLUMNS, G_TYPE_OBJECT,
- G_TYPE_OBJECT, G_TYPE_STRING,
- G_TYPE_STRING, G_TYPE_STRING,
- G_TYPE_UINT, G_TYPE_STRING,
- G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
- G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_INT,
- G_TYPE_BOOLEAN, G_TYPE_HASH_TABLE, G_TYPE_STRV);
+ priv->store = gtk_tree_store_new(_BLUETOOTH_NUM_COLUMNS,
+ G_TYPE_OBJECT, /* BLUETOOTH_COLUMN_PROXY */
+ G_TYPE_OBJECT, /* BLUETOOTH_COLUMN_PROPERTIES */
+ G_TYPE_STRING, /* BLUETOOTH_COLUMN_ADDRESS */
+ G_TYPE_STRING, /* BLUETOOTH_COLUMN_ALIAS */
+ G_TYPE_STRING, /* BLUETOOTH_COLUMN_NAME */
+ G_TYPE_UINT, /* BLUETOOTH_COLUMN_TYPE */
+ G_TYPE_STRING, /* BLUETOOTH_COLUMN_ICON */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_DEFAULT */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_PAIRED */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_TRUSTED */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_CONNECTED */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_DISCOVERABLE */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_DISCOVERING */
+ G_TYPE_INT, /* BLUETOOTH_COLUMN_LEGACYPAIRING */
+ G_TYPE_BOOLEAN, /* BLUETOOTH_COLUMN_POWERED */
+ G_TYPE_HASH_TABLE, /* BLUETOOTH_COLUMN_SERVICES */
+ G_TYPE_STRV); /* BLUETOOTH_COLUMN_UUIDS */
priv->owner_change_id = g_bus_watch_name (G_BUS_TYPE_SYSTEM,
BLUEZ_SERVICE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]