~timchen119/ubuntu/trusty/gnome-bluetooth/lp1035431

« back to all changes in this revision

Viewing changes to wizard/test-input.c

  • Committer: Package Import Robot
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2013-03-29 12:42:16 UTC
  • mfrom: (1.6.2)
  • mto: (2.1.20 sid)
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: package-import@ubuntu.com-20130329124216-0juhublezh04k8wl
Tags: 3.8.0-1
* New upstream release.
  + debian/control:
    - Update build dependencies.
    - The nautilus-sendto plugin is gone, so stop suggesting it.
  + debian/patches/01_autostart_path.patch:
    - Removed, no longer needed.
  + debian/gnome-bluetooth.install:
    - Stop installing nautilus-sendto files.
  + debian/patches/01-Revert-lib-Remove-ObexFTP-browsing.patch:
    - New patch. Add bluetooth_browse_address{,_finish} functions
      back, as they are part of the ABI and are used by
      gnome-control-center 3.4. We can remove this patch when the
      libgnome-bluetooth is bumped, or if we add breaks on
      gnome-control-center (<< 3.8.0).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <gtk/gtk.h>
2
 
#include <bluetooth-input.h>
3
 
 
4
 
static void
5
 
keyboard_appeared_cb (BluetoothInput *input, gpointer data)
6
 
{
7
 
        g_message ("keyboard_appeared_cb");
8
 
}
9
 
 
10
 
static void
11
 
keyboard_disappeared_cb (BluetoothInput *input, gpointer data)
12
 
{
13
 
        g_message ("keyboard_disappeared_cb");
14
 
}
15
 
 
16
 
static void
17
 
mouse_appeared_cb (BluetoothInput *input, gpointer data)
18
 
{
19
 
        g_message ("mouse_appeared_cb");
20
 
}
21
 
 
22
 
static void
23
 
mouse_disappeared_cb (BluetoothInput *input, gpointer data)
24
 
{
25
 
        g_message ("mouse_disappeared_cb");
26
 
}
27
 
 
28
 
int main (int argc, char **argv)
29
 
{
30
 
        BluetoothInput *input;
31
 
 
32
 
        gtk_init (&argc, &argv);
33
 
 
34
 
        input = bluetooth_input_new ();
35
 
        if (input == NULL)
36
 
                return 1;
37
 
 
38
 
        g_signal_connect (G_OBJECT (input), "keyboard-appeared",
39
 
                          G_CALLBACK (keyboard_appeared_cb), NULL);
40
 
        g_signal_connect (G_OBJECT (input), "keyboard-disappeared",
41
 
                          G_CALLBACK (keyboard_disappeared_cb), NULL);
42
 
        g_signal_connect (G_OBJECT (input), "mouse-appeared",
43
 
                          G_CALLBACK (mouse_appeared_cb), NULL);
44
 
        g_signal_connect (G_OBJECT (input), "mouse-disappeared",
45
 
                          G_CALLBACK (mouse_disappeared_cb), NULL);
46
 
 
47
 
        bluetooth_input_check_for_devices (input);
48
 
 
49
 
        gtk_main ();
50
 
 
51
 
        return 0;
52
 
}