~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to gio/gmountoperation.c

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: Alexander Larsson <alexl@redhat.com>
21
21
 */
22
22
 
23
 
#include <config.h>
 
23
#include "config.h"
24
24
 
25
25
#include <string.h>
26
26
 
47
47
 * user credentials such as FTP or WebDAV.
48
48
 *
49
49
 * Users should instantiate a subclass of this that implements all
50
 
 * the various callbacks to show the required dialogs.
 
50
 * the various callbacks to show the required dialogs, such as 
 
51
 * #GtkMountOperation.
51
52
 **/
52
53
 
53
54
G_DEFINE_TYPE (GMountOperation, g_mount_operation, G_TYPE_OBJECT);
187
188
  g_free (priv->password);
188
189
  g_free (priv->user);
189
190
  g_free (priv->domain);
190
 
  
191
 
  if (G_OBJECT_CLASS (g_mount_operation_parent_class)->finalize)
192
 
    (*G_OBJECT_CLASS (g_mount_operation_parent_class)->finalize) (object);
 
191
 
 
192
  G_OBJECT_CLASS (g_mount_operation_parent_class)->finalize (object);
193
193
}
194
194
 
195
195
static gboolean
251
251
   * Emitted when a mount operation asks the user for a password.
252
252
   */
253
253
  signals[ASK_PASSWORD] =
254
 
    g_signal_new (I_("ask_password"),
 
254
    g_signal_new (I_("ask-password"),
255
255
                  G_TYPE_FROM_CLASS (object_class),
256
256
                  G_SIGNAL_RUN_LAST,
257
257
                  G_STRUCT_OFFSET (GMountOperationClass, ask_password),
270
270
   * choices for the user to choose from. 
271
271
   */
272
272
  signals[ASK_QUESTION] =
273
 
    g_signal_new (I_("ask_question"),
 
273
    g_signal_new (I_("ask-question"),
274
274
                  G_TYPE_FROM_CLASS (object_class),
275
275
                  G_SIGNAL_RUN_LAST,
276
276
                  G_STRUCT_OFFSET (GMountOperationClass, ask_question),
282
282
  /**
283
283
   * GMountOperation::reply:
284
284
   * @op: a #GMountOperation.
285
 
   * @abort: a boolean indicating %TRUE if the operation was aborted.
 
285
   * @result: a #GMountOperationResult indicating how the request was handled
286
286
   * 
287
287
   * Emitted when the user has replied to the mount operation.
288
288
   */
427
427
 * @username: input username.
428
428
 *
429
429
 * Sets the user name within @op to @username.
430
 
 * 
431
430
 **/
432
431
void
433
432
g_mount_operation_set_username (GMountOperation *op,