diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-08-30 21:05:14 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-08-30 21:05:14 +0000 |
commit | 515b142b2ade6ba0c97f42cf17f0b5880306e613 (patch) | |
tree | 9ed820e2212affdf861658ea9c582214f27d1c04 /gui/simple-chooser/gdm-host-chooser-widget.h | |
parent | 5e7cc16054a6d0c5815baf491a91e0b1c7cf0246 (diff) | |
download | gdm-515b142b2ade6ba0c97f42cf17f0b5880306e613.tar.gz |
Add skeleton for chooser.
2007-08-30 William Jon McCann <mccann@jhu.edu>
* configure.ac:
* gui/Makefile.am:
* gui/simple-chooser/Makefile.am:
* gui/simple-chooser/chooser-main.c: (main):
* gui/simple-chooser/gdm-host-chooser-dialog.c:
(gdm_host_chooser_dialog_get_current_hostname),
(gdm_host_chooser_dialog_set_property),
(gdm_host_chooser_dialog_get_property),
(gdm_host_chooser_dialog_constructor),
(gdm_host_chooser_dialog_dispose),
(gdm_host_chooser_dialog_class_init), (on_response),
(gdm_host_chooser_dialog_init), (gdm_host_chooser_dialog_finalize),
(gdm_host_chooser_dialog_new):
* gui/simple-chooser/gdm-host-chooser-dialog.h:
* gui/simple-chooser/gdm-host-chooser-widget.c:
(gdm_host_chooser_widget_refresh),
(gdm_host_chooser_widget_get_current_hostname),
(gdm_host_chooser_widget_set_property),
(gdm_host_chooser_widget_get_property),
(gdm_host_chooser_widget_constructor),
(gdm_host_chooser_widget_dispose),
(gdm_host_chooser_widget_class_init), (on_row_activated),
(gdm_host_chooser_widget_init), (gdm_host_chooser_widget_finalize),
(gdm_host_chooser_widget_new):
* gui/simple-chooser/gdm-host-chooser-widget.h:
* libgreeter/gdm-greeter.h:
Add skeleton for chooser.
svn path=/branches/mccann-gobject/; revision=5205
Diffstat (limited to 'gui/simple-chooser/gdm-host-chooser-widget.h')
-rw-r--r-- | gui/simple-chooser/gdm-host-chooser-widget.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/gui/simple-chooser/gdm-host-chooser-widget.h b/gui/simple-chooser/gdm-host-chooser-widget.h new file mode 100644 index 00000000..7b74bef0 --- /dev/null +++ b/gui/simple-chooser/gdm-host-chooser-widget.h @@ -0,0 +1,62 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- + * + * Copyright (C) 2007 William Jon McCann <mccann@jhu.edu> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + */ + +#ifndef __GDM_HOST_CHOOSER_WIDGET_H +#define __GDM_HOST_CHOOSER_WIDGET_H + +#include <glib-object.h> +#include <gtk/gtkvbox.h> + +G_BEGIN_DECLS + +#define GDM_TYPE_HOST_CHOOSER_WIDGET (gdm_host_chooser_widget_get_type ()) +#define GDM_HOST_CHOOSER_WIDGET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDM_TYPE_HOST_CHOOSER_WIDGET, GdmHostChooserWidget)) +#define GDM_HOST_CHOOSER_WIDGET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GDM_TYPE_HOST_CHOOSER_WIDGET, GdmHostChooserWidgetClass)) +#define GDM_IS_HOST_CHOOSER_WIDGET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDM_TYPE_HOST_CHOOSER_WIDGET)) +#define GDM_IS_HOST_CHOOSER_WIDGET_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDM_TYPE_HOST_CHOOSER_WIDGET)) +#define GDM_HOST_CHOOSER_WIDGET_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GDM_TYPE_HOST_CHOOSER_WIDGET, GdmHostChooserWidgetClass)) + +typedef struct GdmHostChooserWidgetPrivate GdmHostChooserWidgetPrivate; + +typedef struct +{ + GtkVBox parent; + GdmHostChooserWidgetPrivate *priv; +} GdmHostChooserWidget; + +typedef struct +{ + GtkVBoxClass parent_class; + + /* signals */ + void (* hostname_activated) (GdmHostChooserWidget *widget, + const char *hostname); +} GdmHostChooserWidgetClass; + +GType gdm_host_chooser_widget_get_type (void); +GtkWidget * gdm_host_chooser_widget_new (void); + +void gdm_host_chooser_widget_refresh (GdmHostChooserWidget *widget); + +char * gdm_host_chooser_widget_get_current_hostname (GdmHostChooserWidget *widget); + +G_END_DECLS + +#endif /* __GDM_HOST_CHOOSER_WIDGET_H */ |