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

« back to all changes in this revision

Viewing changes to lib/bluetooth-chooser-button.c

  • Committer: Bazaar Package Importer
  • Author(s): Emilio Pozuelo Monfort
  • Date: 2011-02-27 15:45:22 UTC
  • mfrom: (1.3.2 upstream)
  • mto: (2.2.3 experimental) (1.5.1)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20110227154522-dnnoqasv5v3mv42a
Tags: upstream-2.91.5
ImportĀ upstreamĀ versionĀ 2.91.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * Boston, MA 02111-1307, USA.
19
19
 */
20
20
 
 
21
/**
 
22
 * SECTION:bluetooth-chooser-button
 
23
 * @short_description: a Bluetooth chooser button
 
24
 * @stability: Stable
 
25
 * @include: bluetooth-plugin.h
 
26
 *
 
27
 * A button used to select Bluetooth devices which will pop-up a
 
28
 * #BluetoothChooser widget inside a dialogue when clicked.
 
29
 **/
 
30
 
21
31
#ifdef HAVE_CONFIG_H
22
32
#include "config.h"
23
33
#endif
191
201
        parent = gtk_widget_get_toplevel (GTK_WIDGET (button));
192
202
        //FIXME title
193
203
        button->dialog = gtk_dialog_new_with_buttons("", GTK_WINDOW (parent),
194
 
                                                     GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR,
 
204
                                                     GTK_DIALOG_MODAL,
195
205
                                                     GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT,
196
206
                                                     GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL);
197
207
        g_signal_connect (button->dialog, "response",
379
389
/**
380
390
 * bluetooth_chooser_button_new:
381
391
 *
382
 
 * Return value: a #BluetoothChooserButton
 
392
 * Returns a new #BluetoothChooserButton widget.
 
393
 *
 
394
 * Return value: a #BluetoothChooserButton widget.
383
395
 **/
384
396
GtkWidget *
385
397
bluetooth_chooser_button_new (void)
393
405
 * bluetooth_chooser_button_available:
394
406
 * @button: a #BluetoothChooserButton
395
407
 *
 
408
 * Returns whether there is a powered Bluetooth adapter.
 
409
 *
396
410
 * Return value: %TRUE if there is a powered Bluetooth adapter available, and the button should be sensitive.
397
411
 **/
398
412
gboolean