/*
 * DO NOT EDIT THIS FILE - it is generated by Glade.
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>

#include <bonobo.h>
#include <gnome.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
  gtk_object_set_data_full (GTK_OBJECT (component), name, \
    gtk_widget_ref (widget), (GtkDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  gtk_object_set_data (GTK_OBJECT (component), name, widget)

GtkWidget*
create_csa_options (void)
{
  GtkWidget *csa_options;
  GtkWidget *dialog_vbox1;
  GtkWidget *notebook1;
  GtkWidget *fixed1;
  GtkWidget *csaserver;
  GtkWidget *csaserverLabel;
  GtkWidget *connection;
  GtkWidget *empty_notebook_page;
  GtkWidget *options;
  GtkWidget *dialog_action_area1;
  GtkWidget *cancelbutton1;
  GtkWidget *okbutton1;

  csa_options = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (csa_options), _("CSA Options"));

  dialog_vbox1 = GTK_DIALOG (csa_options)->vbox;
  gtk_widget_show (dialog_vbox1);

  notebook1 = gtk_notebook_new ();
  gtk_widget_show (notebook1);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), notebook1, TRUE, TRUE, 0);

  fixed1 = gtk_fixed_new ();
  gtk_widget_show (fixed1);
  gtk_container_add (GTK_CONTAINER (notebook1), fixed1);

  csaserver = gtk_entry_new ();
  gtk_widget_show (csaserver);
  gtk_fixed_put (GTK_FIXED (fixed1), csaserver, 16, 32);
  gtk_widget_set_usize (csaserver, 305, 23);

  csaserverLabel = gtk_label_new (_("Calendar: (user@host)"));
  gtk_widget_show (csaserverLabel);
  gtk_fixed_put (GTK_FIXED (fixed1), csaserverLabel, 16, 16);
  gtk_widget_set_usize (csaserverLabel, 160, 16);
  gtk_label_set_justify (GTK_LABEL (csaserverLabel), GTK_JUSTIFY_LEFT);

  connection = gtk_label_new (_("Connection"));
  gtk_widget_show (connection);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), connection);
  gtk_label_set_justify (GTK_LABEL (connection), GTK_JUSTIFY_LEFT);

  empty_notebook_page = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (empty_notebook_page);
  gtk_container_add (GTK_CONTAINER (notebook1), empty_notebook_page);

  options = gtk_label_new (_("Options"));
  gtk_widget_show (options);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), options);
  gtk_label_set_justify (GTK_LABEL (options), GTK_JUSTIFY_LEFT);

  dialog_action_area1 = GTK_DIALOG (csa_options)->action_area;
  gtk_widget_show (dialog_action_area1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);

  cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (cancelbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (csa_options), cancelbutton1, GTK_RESPONSE_CANCEL);
  GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);

  okbutton1 = gtk_button_new_from_stock ("gtk-ok");
  gtk_widget_show (okbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (csa_options), okbutton1, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);

  gtk_signal_connect (GTK_OBJECT (cancelbutton1), "clicked",
                      GTK_SIGNAL_FUNC (csa_cancelbutton_clicked),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (okbutton1), "clicked",
                      GTK_SIGNAL_FUNC (csa_okbutton_clicked),
                      NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (csa_options, csa_options, "csa_options");
  GLADE_HOOKUP_OBJECT_NO_REF (csa_options, dialog_vbox1, "dialog_vbox1");
  GLADE_HOOKUP_OBJECT (csa_options, notebook1, "notebook1");
  GLADE_HOOKUP_OBJECT (csa_options, fixed1, "fixed1");
  GLADE_HOOKUP_OBJECT (csa_options, csaserver, "csaserver");
  GLADE_HOOKUP_OBJECT (csa_options, csaserverLabel, "csaserverLabel");
  GLADE_HOOKUP_OBJECT (csa_options, connection, "connection");
  GLADE_HOOKUP_OBJECT (csa_options, options, "options");
  GLADE_HOOKUP_OBJECT_NO_REF (csa_options, dialog_action_area1, "dialog_action_area1");
  GLADE_HOOKUP_OBJECT (csa_options, cancelbutton1, "cancelbutton1");
  GLADE_HOOKUP_OBJECT (csa_options, okbutton1, "okbutton1");

  return csa_options;
}

