
* vpn-daemons/openvpn/auth-dialog/gnome-two-password-dialog.h: * vpn-daemons/pptp/auth-dialog-general/anonymous-auth-module.c: (impl_get_object): * vpn-daemons/pptp/auth-dialog-general/chap-auth-module.c: (impl_get_object): * vpn-daemons/pptp/auth-dialog-general/gnome-generic-auth-dialog.c: * vpn-daemons/pptp/auth-dialog-general/gnome-generic-auth-dialog.h: * vpn-daemons/pptp/auth-dialog-general/mschapv2-auth-module.c: (impl_get_object): * vpn-daemons/pptp/auth-dialog/gnome-two-password-dialog.c: * vpn-daemons/pptp/auth-dialog/gnome-two-password-dialog.h: * vpn-daemons/pptp/properties/nm-ppp-properties.c: (impl_setup): * vpn-daemons/pptp/properties/vpnui_impl.c: (impl_get_object): * vpn-daemons/pptp/properties/vpnui_opt.c: (vpnui_opt_connect_signals): * vpn-daemons/pptp/properties/vpnui_opt.h: * vpn-daemons/vpnc/auth-dialog/gnome-two-password-dialog.c: * vpn-daemons/vpnc/auth-dialog/gnome-two-password-dialog.h: Don't use deprecated gtk type macros. Bug #539325. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3764 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
119 lines
5.9 KiB
C
119 lines
5.9 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
|
|
|
|
/* gnome-two-password-dialog.h - A use password prompting dialog widget
|
|
asking for two passwords. Based of
|
|
gnome-password-dialog.[ch] from libgnomeui
|
|
|
|
Copyright (C) 1999, 2000 Eazel, Inc.
|
|
Copyright (C) 2005, Red Hat, Inc.
|
|
|
|
The Gnome Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Library General Public License as
|
|
published by the Free Software Foundation; either version 2 of the
|
|
License, or (at your option) any later version.
|
|
|
|
The Gnome Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Library General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
License along with the Gnome Library; see the file COPYING.LIB. If not,
|
|
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA.
|
|
|
|
Authors: Ramiro Estrugo <ramiro@eazel.com>
|
|
*/
|
|
|
|
#ifndef GNOME_TWO_PASSWORD_DIALOG_H
|
|
#define GNOME_TWO_PASSWORD_DIALOG_H
|
|
|
|
#include <gtk/gtkdialog.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GNOME_TYPE_TWO_PASSWORD_DIALOG (gnome_two_password_dialog_get_type ())
|
|
#define GNOME_TWO_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_TWO_PASSWORD_DIALOG, GnomeTwoPasswordDialog))
|
|
#define GNOME_TWO_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_TWO_PASSWORD_DIALOG, GnomeTwoPasswordDialogClass))
|
|
#define GNOME_IS_TWO_PASSWORD_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_TWO_PASSWORD_DIALOG))
|
|
#define GNOME_IS_TWO_PASSWORD_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_TWO_PASSWORD_DIALOG))
|
|
|
|
typedef struct GnomeTwoPasswordDialog GnomeTwoPasswordDialog;
|
|
typedef struct GnomeTwoPasswordDialogClass GnomeTwoPasswordDialogClass;
|
|
typedef struct GnomeTwoPasswordDialogDetails GnomeTwoPasswordDialogDetails;
|
|
|
|
struct GnomeTwoPasswordDialog
|
|
{
|
|
GtkDialog gtk_dialog;
|
|
|
|
GnomeTwoPasswordDialogDetails *details;
|
|
};
|
|
|
|
struct GnomeTwoPasswordDialogClass
|
|
{
|
|
GtkDialogClass parent_class;
|
|
};
|
|
|
|
typedef enum {
|
|
GNOME_TWO_PASSWORD_DIALOG_REMEMBER_NOTHING,
|
|
GNOME_TWO_PASSWORD_DIALOG_REMEMBER_SESSION,
|
|
GNOME_TWO_PASSWORD_DIALOG_REMEMBER_FOREVER
|
|
} GnomeTwoPasswordDialogRemember;
|
|
|
|
|
|
GType gnome_two_password_dialog_get_type (void);
|
|
GtkWidget* gnome_two_password_dialog_new (const char *dialog_title,
|
|
const char *message,
|
|
const char *username,
|
|
const char *password,
|
|
gboolean readonly_username);
|
|
|
|
gboolean gnome_two_password_dialog_run_and_block (GnomeTwoPasswordDialog *password_dialog);
|
|
|
|
/* Attribute mutators */
|
|
void gnome_two_password_dialog_set_show_username (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean show);
|
|
void gnome_two_password_dialog_set_show_domain (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean show);
|
|
void gnome_two_password_dialog_set_show_password (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean show);
|
|
void gnome_two_password_dialog_set_show_password_secondary (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean show);
|
|
void gnome_two_password_dialog_set_username (GnomeTwoPasswordDialog *password_dialog,
|
|
const char *username);
|
|
void gnome_two_password_dialog_set_domain (GnomeTwoPasswordDialog *password_dialog,
|
|
const char *domain);
|
|
void gnome_two_password_dialog_set_password (GnomeTwoPasswordDialog *password_dialog,
|
|
const char *password);
|
|
void gnome_two_password_dialog_set_password_secondary (GnomeTwoPasswordDialog *password_dialog,
|
|
const char *password_secondary);
|
|
void gnome_two_password_dialog_set_readonly_username (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean readonly);
|
|
void gnome_two_password_dialog_set_readonly_domain (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean readonly);
|
|
|
|
void gnome_two_password_dialog_set_password_primary_label (GnomeTwoPasswordDialog *password_dialog,
|
|
const char *password_primary_description);
|
|
void gnome_two_password_dialog_set_password_secondary_label (GnomeTwoPasswordDialog *password_dialog,
|
|
const char *password_secondary_description);
|
|
|
|
void gnome_two_password_dialog_set_show_remember (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean show_remember);
|
|
void gnome_two_password_dialog_set_remember (GnomeTwoPasswordDialog *password_dialog,
|
|
GnomeTwoPasswordDialogRemember remember);
|
|
GnomeTwoPasswordDialogRemember gnome_two_password_dialog_get_remember (GnomeTwoPasswordDialog *password_dialog);
|
|
void gnome_two_password_dialog_set_show_userpass_buttons (GnomeTwoPasswordDialog *password_dialog,
|
|
gboolean show_userpass_buttons);
|
|
|
|
/* Attribute accessors */
|
|
char * gnome_two_password_dialog_get_username (GnomeTwoPasswordDialog *password_dialog);
|
|
char * gnome_two_password_dialog_get_domain (GnomeTwoPasswordDialog *password_dialog);
|
|
char * gnome_two_password_dialog_get_password (GnomeTwoPasswordDialog *password_dialog);
|
|
char * gnome_two_password_dialog_get_password_secondary (GnomeTwoPasswordDialog *password_dialog);
|
|
|
|
gboolean gnome_two_password_dialog_anon_selected (GnomeTwoPasswordDialog *password_dialog);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GNOME_TWO_PASSWORD_DIALOG_H */
|