Commit 243384ba authored by William Jon McCann's avatar William Jon McCann Committed by William Jon McCann

Make the chooser kinda work.

2007-09-04  William Jon McCann  <mccann@jhu.edu>

	* common/gdm-address.c: (gdm_address_peek_local_list):
	* daemon/gdm-xdmcp-display-factory.c: (do_bind),
	(gdm_xdmcp_send_failed):
	* gui/simple-chooser/chooser-main.c: (main):
	* gui/simple-chooser/gdm-host-chooser-widget.c: (chooser_host_add),
	(chooser_host_remove), (chooser_host_free), (find_known_host),
	(browser_add_host), (decode_packet), (do_ping), (xdmcp_discover),
	(find_broadcast_addresses), (add_hosts), (xdmcp_init),
	(gdm_host_chooser_widget_get_current_hostname),
	(gdm_host_chooser_widget_dispose),
	(gdm_host_chooser_widget_class_init), (on_host_selected),
	(on_row_activated), (gdm_host_chooser_widget_init):
	* gui/simple-chooser/gdm-host-chooser-widget.h:
	Make the chooser kinda work.


svn path=/branches/mccann-gobject/; revision=5223
parent 72032e59
2007-09-04 William Jon McCann <mccann@jhu.edu>
* common/gdm-address.c: (gdm_address_peek_local_list):
* daemon/gdm-xdmcp-display-factory.c: (do_bind),
(gdm_xdmcp_send_failed):
* gui/simple-chooser/chooser-main.c: (main):
* gui/simple-chooser/gdm-host-chooser-widget.c: (chooser_host_add),
(chooser_host_remove), (chooser_host_free), (find_known_host),
(browser_add_host), (decode_packet), (do_ping), (xdmcp_discover),
(find_broadcast_addresses), (add_hosts), (xdmcp_init),
(gdm_host_chooser_widget_get_current_hostname),
(gdm_host_chooser_widget_dispose),
(gdm_host_chooser_widget_class_init), (on_host_selected),
(on_row_activated), (gdm_host_chooser_widget_init):
* gui/simple-chooser/gdm-host-chooser-widget.h:
Make the chooser kinda work.
2007-08-31 William Jon McCann <mccann@jhu.edu>
* gui/simple-chooser/Makefile.am:
......
......@@ -305,6 +305,7 @@ gdm_address_peek_local_list (void)
hints.ai_family |= AF_INET6;
#endif
result = NULL;
if (getaddrinfo (hostbuf, NULL, &hints, &result) != 0) {
g_debug ("%s: Could not get address from hostname!", "gdm_peek_local_address_list");
......
......@@ -427,6 +427,8 @@ do_bind (guint port,
hints.ai_flags = AI_PASSIVE;
snprintf (strport, sizeof (strport), "%u", port);
ai_list = NULL;
if ((gaierr = getaddrinfo (NULL, strport, &hints, &ai_list)) != 0) {
g_error ("Unable to connect to socket: %s", gai_strerror (gaierr));
return -1;
......@@ -2180,7 +2182,7 @@ gdm_xdmcp_send_failed (GdmXdmcpDisplayFactory *factory,
header.version = XDM_PROTOCOL_VERSION;
header.opcode = (CARD16) FAILED;
header.length = 6+status.length;
header.length = 6 + status.length;
XdmcpWriteHeader (&factory->priv->buf, &header);
XdmcpWriteCARD32 (&factory->priv->buf, sessid);
......
......@@ -65,7 +65,7 @@ main (int argc, char *argv[])
gtk_init (&argc, &argv);
chooser = gdm_host_chooser_dialog_new ();
if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_ACCEPT) {
if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_OK) {
char *hostname;
hostname = gdm_host_chooser_dialog_get_current_hostname (GDM_HOST_CHOOSER_DIALOG (chooser));
......
......@@ -46,8 +46,7 @@ typedef struct
GtkVBoxClass parent_class;
/* signals */
void (* hostname_activated) (GdmHostChooserWidget *widget,
const char *hostname);
void (* host_activated) (GdmHostChooserWidget *widget);
} GdmHostChooserWidgetClass;
GType gdm_host_chooser_widget_get_type (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment