spaces -> tabs

This commit is contained in:
Mike Hearn 2004-11-08 23:01:20 +00:00
parent 3d86854e83
commit 2d528a5351
7 changed files with 32 additions and 32 deletions

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
@ -55,14 +55,14 @@ main()
dbus_connection_setup_with_g_main(conn, NULL); dbus_connection_setup_with_g_main(conn, NULL);
n = notify_send_notification(NULL, // replaces nothing n = notify_send_notification(NULL, // replaces nothing
"presence.online", "presence.online",
NOTIFY_URGENCY_NORMAL, NOTIFY_URGENCY_NORMAL,
"Matt is online", NULL, "Matt is online", NULL,
NULL, // no icon NULL, // no icon
FALSE, 0, // does not expire FALSE, 0, // does not expire
NULL, // no user data NULL, // no user data
1, 1,
0, "default", callback); // 1 action 0, "default", callback); // 1 action
if (!n) { if (!n) {
fprintf(stderr, "failed to send notification\n"); fprintf(stderr, "failed to send notification\n");

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public

View File

@ -10,7 +10,7 @@
* *
* This library is distributed in the hope that it will be useful, * This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public * You should have received a copy of the GNU Lesser General Public
@ -43,9 +43,9 @@ static void callback(NotifyHandle *handle, guint32 uid, void *user_data)
switch (uid) switch (uid)
{ {
case 0: s = "the notification"; break; case 0: s = "the notification"; break;
case 1: s = "Empty Trash"; break; case 1: s = "Empty Trash"; break;
case 2: s = "Help Me"; break; case 2: s = "Help Me"; break;
} }
printf("You clicked %s\n", s); printf("You clicked %s\n", s);
@ -64,22 +64,22 @@ int main() {
dbus_connection_setup_with_g_main(conn, NULL); dbus_connection_setup_with_g_main(conn, NULL);
n = notify_send_notification(NULL, // replaces nothing n = notify_send_notification(NULL, // replaces nothing
"device", "device",
NOTIFY_URGENCY_NORMAL, NOTIFY_URGENCY_NORMAL,
"Low disk space", "Low disk space",
"You can free up some disk space by " "You can free up some disk space by "
"emptying the trash can.", "emptying the trash can.",
NULL, // no icon NULL, // no icon
FALSE, 0, // does not expire FALSE, 0, // does not expire
NULL, // no user data NULL, // no user data
3, // 3 actions 3, // 3 actions
0, "default", callback, 0, "default", callback,
1, "Empty Trash", callback, 1, "Empty Trash", callback,
2, "Help Me", callback ); 2, "Help Me", callback );
if (!n) { if (!n) {
fprintf(stderr, "failed to send notification\n"); fprintf(stderr, "failed to send notification\n");
return 1; return 1;
} }
g_main_loop_run(loop); g_main_loop_run(loop);