Logo Search packages:      
Sourcecode: linphone version File versions  Download package

interface.c

/*
 * 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) \
  g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  g_object_set_data (G_OBJECT (component), name, widget)

static GnomeUIInfo connexion1_menu_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("Address book"),
    NULL,
    (gpointer) on_adresse_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gnome-stock-book-open",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_parametres1_activate, NULL),
  {
    GNOME_APP_UI_ITEM, N_("Call history"),
    N_("Shows calls"),
    (gpointer) on_call_history_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-justify-fill",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_SEPARATOR,
  GNOMEUIINFO_MENU_EXIT_ITEM (on_exit1_activate, NULL),
  GNOMEUIINFO_END
};

static GnomeUIInfo help1_menu_uiinfo[] =
{
  GNOMEUIINFO_MENU_ABOUT_ITEM (on_about1_activate, NULL),
  {
    GNOME_APP_UI_ITEM, N_("User manual"),
    NULL,
    (gpointer) on_user_manual1_activate, NULL, NULL,
    GNOME_APP_PIXMAP_STOCK, "gtk-help",
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

static GnomeUIInfo menubar1_uiinfo[] =
{
  {
    GNOME_APP_UI_SUBTREE, N_("Go"),
    NULL,
    connexion1_menu_uiinfo, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_MENU_HELP_TREE (help1_menu_uiinfo),
  GNOMEUIINFO_END
};

GtkWidget*
create_app1 (void)
{
  GtkWidget *app1;
  GdkPixbuf *app1_icon_pixbuf;
  GtkWidget *dock1;
  GtkWidget *frame6;
  GtkWidget *vbox4;
  GtkWidget *vbox24;
  GtkWidget *hbox15;
  GtkWidget *frame7;
  GtkWidget *addressentry;
  GtkWidget *label1;
  GtkWidget *display_ab;
  GtkWidget *alignment22;
  GtkWidget *hbox36;
  GtkWidget *image33;
  GtkWidget *label108;
  GtkWidget *proxy_hbox;
  GtkWidget *proxytouse_label;
  GtkWidget *hbox2;
  GtkWidget *callbutton;
  GtkWidget *button14;
  GtkWidget *button18;
  GtkWidget *showmore;
  GtkWidget *alignment5;
  GtkWidget *hbox17;
  GtkWidget *image12;
  GtkWidget *label60;
  GtkWidget *optioncontrols;
  GtkWidget *frame8;
  GtkWidget *vbox5;
  GtkWidget *label30;
  GtkWidget *play_vol;
  GtkWidget *label31;
  GtkWidget *rec_vol;
  GtkWidget *label110;
  GtkWidget *ring_vol;
  GtkWidget *label33;
  GtkWidget *vbox6;
  GtkWidget *presence_frame;
  GtkWidget *presence_vbox;
  GtkWidget *presence_reachable;
  GSList *presence_reachable_group = NULL;
  GtkWidget *hbox4;
  GtkWidget *radiobutton2;
  GtkWidget *minutesaway;
  GtkWidget *label35;
  GtkWidget *radiobutton3;
  GtkWidget *radiobutton4;
  GtkWidget *radiobutton5;
  GtkWidget *radiobutton6;
  GtkWidget *hbox5;
  GtkWidget *label36;
  GtkWidget *contact_field;
  GtkWidget *label34;
  GtkWidget *frame19;
  GtkWidget *vbox18;
  GtkWidget *dtmf_entry;
  GtkWidget *table5;
  GtkWidget *dtmf_3;
  GtkWidget *dmtf_2;
  GtkWidget *dtmf_1;
  GtkWidget *dtmf_4;
  GtkWidget *dtmf_5;
  GtkWidget *dtmf_6;
  GtkWidget *dtmf_7;
  GtkWidget *dtmf_8;
  GtkWidget *dtmf_9;
  GtkWidget *dtmf_star;
  GtkWidget *dtmf_0;
  GtkWidget *dtmf_pound;
  GtkWidget *label38;
  GtkWidget *vbox22;
  GtkWidget *scrolledwindow3;
  GtkWidget *friendlist;
  GtkWidget *label65;
  GtkWidget *appbar1;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  app1 = gnome_app_new ("Linphone", _("linphone"));
  gtk_window_set_resizable (GTK_WINDOW (app1), FALSE);
  app1_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (app1_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (app1), app1_icon_pixbuf);
      gdk_pixbuf_unref (app1_icon_pixbuf);
    }

  dock1 = GNOME_APP (app1)->dock;
  gtk_widget_show (dock1);

  gnome_app_create_menus (GNOME_APP (app1), menubar1_uiinfo);

  frame6 = gtk_frame_new (NULL);
  gtk_widget_show (frame6);
  gnome_app_set_contents (GNOME_APP (app1), frame6);
  gtk_container_set_border_width (GTK_CONTAINER (frame6), 9);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox4);
  gtk_container_add (GTK_CONTAINER (frame6), vbox4);

  vbox24 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox24);
  gtk_box_pack_start (GTK_BOX (vbox4), vbox24, TRUE, TRUE, 0);

  hbox15 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox15);
  gtk_box_pack_start (GTK_BOX (vbox24), hbox15, TRUE, TRUE, 0);

  frame7 = gtk_frame_new (NULL);
  gtk_widget_show (frame7);
  gtk_box_pack_start (GTK_BOX (hbox15), frame7, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame7), 5);

  addressentry = gtk_entry_new ();
  gtk_widget_show (addressentry);
  gtk_container_add (GTK_CONTAINER (frame7), addressentry);
  gtk_tooltips_set_tip (tooltips, addressentry, _("enter sip uri here"), NULL);
  gtk_entry_set_text (GTK_ENTRY (addressentry), _("sip:"));

  label1 = gtk_label_new (_("Sip address:"));
  gtk_widget_show (label1);
  gtk_frame_set_label_widget (GTK_FRAME (frame7), label1);

  display_ab = gtk_button_new ();
  gtk_widget_show (display_ab);
  gtk_box_pack_start (GTK_BOX (hbox15), display_ab, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (display_ab), 15);
  gtk_tooltips_set_tip (tooltips, display_ab, _("Shows the address book"), NULL);

  alignment22 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment22);
  gtk_container_add (GTK_CONTAINER (display_ab), alignment22);

  hbox36 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox36);
  gtk_container_add (GTK_CONTAINER (alignment22), hbox36);

  image33 = gtk_image_new_from_stock ("gnome-stock-book-open", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image33);
  gtk_box_pack_start (GTK_BOX (hbox36), image33, FALSE, FALSE, 0);

  label108 = gtk_label_new_with_mnemonic (_("..."));
  gtk_widget_show (label108);
  gtk_box_pack_start (GTK_BOX (hbox36), label108, FALSE, FALSE, 0);

  proxy_hbox = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (proxy_hbox);
  gtk_box_pack_start (GTK_BOX (vbox24), proxy_hbox, TRUE, TRUE, 0);

  proxytouse_label = gtk_label_new (_("Proxy to use:"));
  gtk_widget_show (proxytouse_label);
  gtk_box_pack_start (GTK_BOX (proxy_hbox), proxytouse_label, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (proxytouse_label), GTK_JUSTIFY_CENTER);

  hbox2 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox2);
  gtk_box_pack_start (GTK_BOX (vbox4), hbox2, TRUE, TRUE, 0);

  callbutton = gtk_button_new_with_mnemonic (_("Call or\nanswer"));
  gtk_widget_show (callbutton);
  gtk_box_pack_start (GTK_BOX (hbox2), callbutton, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (callbutton), 8);

  button14 = gtk_button_new_with_mnemonic (_("Hangup\nor refuse"));
  gtk_widget_show (button14);
  gtk_box_pack_start (GTK_BOX (hbox2), button14, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (button14), 8);

  button18 = gtk_button_new_with_mnemonic (_("Or chat !"));
  gtk_widget_show (button18);
  gtk_box_pack_start (GTK_BOX (vbox4), button18, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (button18), 8);

  showmore = gtk_check_button_new ();
  gtk_widget_show (showmore);
  gtk_box_pack_start (GTK_BOX (vbox4), showmore, FALSE, FALSE, 0);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (showmore), TRUE);

  alignment5 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment5);
  gtk_container_add (GTK_CONTAINER (showmore), alignment5);

  hbox17 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox17);
  gtk_container_add (GTK_CONTAINER (alignment5), hbox17);

  image12 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image12);
  gtk_box_pack_start (GTK_BOX (hbox17), image12, FALSE, FALSE, 0);

  label60 = gtk_label_new_with_mnemonic (_("Show more..."));
  gtk_widget_show (label60);
  gtk_box_pack_start (GTK_BOX (hbox17), label60, FALSE, FALSE, 0);

  optioncontrols = gtk_notebook_new ();
  gtk_widget_show (optioncontrols);
  gtk_box_pack_start (GTK_BOX (vbox4), optioncontrols, TRUE, TRUE, 0);

  frame8 = gtk_frame_new (NULL);
  gtk_widget_show (frame8);
  gtk_container_add (GTK_CONTAINER (optioncontrols), frame8);
  gtk_container_set_border_width (GTK_CONTAINER (frame8), 11);

  vbox5 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox5);
  gtk_container_add (GTK_CONTAINER (frame8), vbox5);
  gtk_container_set_border_width (GTK_CONTAINER (vbox5), 38);

  label30 = gtk_label_new (_("Playback level:"));
  gtk_widget_show (label30);
  gtk_box_pack_start (GTK_BOX (vbox5), label30, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label30), 7.45058e-09, 0.5);

  play_vol = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (75, 0, 100, 0, 0, 0)));
  gtk_widget_show (play_vol);
  gtk_box_pack_start (GTK_BOX (vbox5), play_vol, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (play_vol), GTK_POS_RIGHT);
  gtk_scale_set_digits (GTK_SCALE (play_vol), 0);

  label31 = gtk_label_new (_("Recording level:"));
  gtk_widget_show (label31);
  gtk_box_pack_start (GTK_BOX (vbox5), label31, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label31), 7.45058e-09, 0.5);

  rec_vol = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (75, 0, 100, 0, 0, 0)));
  gtk_widget_show (rec_vol);
  gtk_box_pack_start (GTK_BOX (vbox5), rec_vol, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (rec_vol), GTK_POS_RIGHT);
  gtk_scale_set_digits (GTK_SCALE (rec_vol), 0);

  label110 = gtk_label_new (_("Ring level:"));
  gtk_widget_show (label110);
  gtk_box_pack_start (GTK_BOX (vbox5), label110, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label110), 7.45058e-09, 0.5);

  ring_vol = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (75, 0, 100, 0, 0, 0)));
  gtk_widget_show (ring_vol);
  gtk_box_pack_start (GTK_BOX (vbox5), ring_vol, TRUE, TRUE, 0);
  gtk_scale_set_value_pos (GTK_SCALE (ring_vol), GTK_POS_RIGHT);
  gtk_scale_set_digits (GTK_SCALE (ring_vol), 0);

  label33 = gtk_label_new (_("Sound"));
  gtk_widget_show (label33);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (optioncontrols), gtk_notebook_get_nth_page (GTK_NOTEBOOK (optioncontrols), 0), label33);
  gtk_label_set_justify (GTK_LABEL (label33), GTK_JUSTIFY_CENTER);

  vbox6 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox6);
  gtk_container_add (GTK_CONTAINER (optioncontrols), vbox6);

  presence_frame = gtk_frame_new (NULL);
  gtk_widget_show (presence_frame);
  gtk_box_pack_start (GTK_BOX (vbox6), presence_frame, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (presence_frame), 11);

  presence_vbox = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (presence_vbox);
  gtk_container_add (GTK_CONTAINER (presence_frame), presence_vbox);

  presence_reachable = gtk_radio_button_new_with_mnemonic (NULL, _("Reachable"));
  gtk_widget_show (presence_reachable);
  gtk_box_pack_start (GTK_BOX (presence_vbox), presence_reachable, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (presence_reachable), presence_reachable_group);
  presence_reachable_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (presence_reachable));
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (presence_reachable), TRUE);

  hbox4 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox4);
  gtk_box_pack_start (GTK_BOX (presence_vbox), hbox4, FALSE, TRUE, 0);

  radiobutton2 = gtk_radio_button_new_with_mnemonic (NULL, _("Busy, I'll be back in "));
  gtk_widget_show (radiobutton2);
  gtk_box_pack_start (GTK_BOX (hbox4), radiobutton2, TRUE, TRUE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton2), presence_reachable_group);
  presence_reachable_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton2));

  minutesaway = gtk_entry_new ();
  gtk_widget_show (minutesaway);
  gtk_box_pack_start (GTK_BOX (hbox4), minutesaway, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, minutesaway, _("The other party will be informed that you'll be back in X minutes"), NULL);
  gtk_entry_set_text (GTK_ENTRY (minutesaway), _("5"));

  label35 = gtk_label_new (_("mn"));
  gtk_widget_show (label35);
  gtk_box_pack_start (GTK_BOX (hbox4), label35, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (label35), GTK_JUSTIFY_CENTER);

  radiobutton3 = gtk_radio_button_new_with_mnemonic (NULL, _("Away"));
  gtk_widget_show (radiobutton3);
  gtk_box_pack_start (GTK_BOX (presence_vbox), radiobutton3, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton3), presence_reachable_group);
  presence_reachable_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton3));

  radiobutton4 = gtk_radio_button_new_with_mnemonic (NULL, _("Do not disturb"));
  gtk_widget_show (radiobutton4);
  gtk_box_pack_start (GTK_BOX (presence_vbox), radiobutton4, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton4), presence_reachable_group);
  presence_reachable_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton4));

  radiobutton5 = gtk_radio_button_new_with_mnemonic (NULL, _("Moved temporarily"));
  gtk_widget_show (radiobutton5);
  gtk_box_pack_start (GTK_BOX (presence_vbox), radiobutton5, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton5), presence_reachable_group);
  presence_reachable_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton5));

  radiobutton6 = gtk_radio_button_new_with_mnemonic (NULL, _("Alternative service"));
  gtk_widget_show (radiobutton6);
  gtk_box_pack_start (GTK_BOX (presence_vbox), radiobutton6, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton6), presence_reachable_group);
  presence_reachable_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton6));

  hbox5 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox5);
  gtk_box_pack_start (GTK_BOX (presence_vbox), hbox5, FALSE, TRUE, 0);

  label36 = gtk_label_new (_("URL:"));
  gtk_widget_show (label36);
  gtk_box_pack_start (GTK_BOX (hbox5), label36, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (label36), GTK_JUSTIFY_CENTER);

  contact_field = gtk_entry_new ();
  gtk_widget_show (contact_field);
  gtk_box_pack_start (GTK_BOX (hbox5), contact_field, FALSE, FALSE, 0);

  label34 = gtk_label_new (_("Presence"));
  gtk_widget_show (label34);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (optioncontrols), gtk_notebook_get_nth_page (GTK_NOTEBOOK (optioncontrols), 1), label34);
  gtk_label_set_justify (GTK_LABEL (label34), GTK_JUSTIFY_CENTER);

  frame19 = gtk_frame_new (NULL);
  gtk_widget_show (frame19);
  gtk_container_add (GTK_CONTAINER (optioncontrols), frame19);
  gtk_container_set_border_width (GTK_CONTAINER (frame19), 15);

  vbox18 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox18);
  gtk_container_add (GTK_CONTAINER (frame19), vbox18);

  dtmf_entry = gtk_entry_new ();
  gtk_widget_show (dtmf_entry);
  gtk_box_pack_start (GTK_BOX (vbox18), dtmf_entry, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, dtmf_entry, _("Press digits to send DTMFs."), NULL);

  table5 = gtk_table_new (4, 3, TRUE);
  gtk_widget_show (table5);
  gtk_box_pack_start (GTK_BOX (vbox18), table5, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (table5), 14);
  gtk_table_set_row_spacings (GTK_TABLE (table5), 10);
  gtk_table_set_col_spacings (GTK_TABLE (table5), 10);

  dtmf_3 = gtk_button_new_with_mnemonic (_("  3\ndef"));
  gtk_widget_show (dtmf_3);
  gtk_table_attach (GTK_TABLE (table5), dtmf_3, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dmtf_2 = gtk_button_new_with_mnemonic (_("  2\nabc"));
  gtk_widget_show (dmtf_2);
  gtk_table_attach (GTK_TABLE (table5), dmtf_2, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_1 = gtk_button_new_with_mnemonic (_("1"));
  gtk_widget_show (dtmf_1);
  gtk_table_attach (GTK_TABLE (table5), dtmf_1, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_4 = gtk_button_new_with_mnemonic (_("  4\nghi"));
  gtk_widget_show (dtmf_4);
  gtk_table_attach (GTK_TABLE (table5), dtmf_4, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_5 = gtk_button_new_with_mnemonic (_(" 5\njkl"));
  gtk_widget_show (dtmf_5);
  gtk_table_attach (GTK_TABLE (table5), dtmf_5, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_6 = gtk_button_new_with_mnemonic (_("  6\nmno"));
  gtk_widget_show (dtmf_6);
  gtk_table_attach (GTK_TABLE (table5), dtmf_6, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_7 = gtk_button_new_with_mnemonic (_("   7\npqrs"));
  gtk_widget_show (dtmf_7);
  gtk_table_attach (GTK_TABLE (table5), dtmf_7, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_8 = gtk_button_new_with_mnemonic (_("  8\ntuv"));
  gtk_widget_show (dtmf_8);
  gtk_table_attach (GTK_TABLE (table5), dtmf_8, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_9 = gtk_button_new_with_mnemonic (_("   9\nwxyz"));
  gtk_widget_show (dtmf_9);
  gtk_table_attach (GTK_TABLE (table5), dtmf_9, 2, 3, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_star = gtk_button_new_with_mnemonic (_("*"));
  gtk_widget_show (dtmf_star);
  gtk_table_attach (GTK_TABLE (table5), dtmf_star, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_0 = gtk_button_new_with_mnemonic (_("0"));
  gtk_widget_show (dtmf_0);
  gtk_table_attach (GTK_TABLE (table5), dtmf_0, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  dtmf_pound = gtk_button_new_with_mnemonic (_("#"));
  gtk_widget_show (dtmf_pound);
  gtk_table_attach (GTK_TABLE (table5), dtmf_pound, 2, 3, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  label38 = gtk_label_new (_("DTMF"));
  gtk_widget_show (label38);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (optioncontrols), gtk_notebook_get_nth_page (GTK_NOTEBOOK (optioncontrols), 2), label38);
  gtk_label_set_justify (GTK_LABEL (label38), GTK_JUSTIFY_CENTER);

  vbox22 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox22);
  gtk_container_add (GTK_CONTAINER (optioncontrols), vbox22);

  scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow3);
  gtk_box_pack_start (GTK_BOX (vbox22), scrolledwindow3, TRUE, TRUE, 0);

  friendlist = gtk_tree_view_new ();
  gtk_widget_show (friendlist);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3), friendlist);

  label65 = gtk_label_new (_("My online friends"));
  gtk_widget_show (label65);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (optioncontrols), gtk_notebook_get_nth_page (GTK_NOTEBOOK (optioncontrols), 3), label65);

  appbar1 = gnome_appbar_new (FALSE, TRUE, GNOME_PREFERENCES_NEVER);
  gtk_widget_show (appbar1);
  gnome_app_set_statusbar (GNOME_APP (app1), appbar1);

  g_signal_connect ((gpointer) app1, "destroy",
                    G_CALLBACK (on_app1_destroy),
                    NULL);
  gnome_app_install_menu_hints (GNOME_APP (app1), menubar1_uiinfo);
  g_signal_connect ((gpointer) addressentry, "activate",
                    G_CALLBACK (on_addressentry_activate),
                    NULL);
  g_signal_connect ((gpointer) addressentry, "destroy",
                    G_CALLBACK (on_addressentry_destroy),
                    NULL);
  g_signal_connect ((gpointer) display_ab, "clicked",
                    G_CALLBACK (on_display_ab_clicked),
                    NULL);
  g_signal_connect ((gpointer) callbutton, "clicked",
                    G_CALLBACK (on_callbutton_clicked),
                    NULL);
  g_signal_connect ((gpointer) button14, "clicked",
                    G_CALLBACK (on_hangup_clicked),
                    NULL);
  g_signal_connect ((gpointer) button18, "clicked",
                    G_CALLBACK (on_chat_clicked),
                    NULL);
  g_signal_connect ((gpointer) showmore, "toggled",
                    G_CALLBACK (on_showmore_toggled),
                    NULL);
  g_signal_connect ((gpointer) play_vol, "button_release_event",
                    G_CALLBACK (on_play_vol_button_release_event),
                    NULL);
  g_signal_connect ((gpointer) rec_vol, "button_release_event",
                    G_CALLBACK (on_rec_vol_button_release_event),
                    NULL);
  g_signal_connect ((gpointer) ring_vol, "button_release_event",
                    G_CALLBACK (on_rec_vol_button_release_event),
                    NULL);
  g_signal_connect ((gpointer) presence_reachable, "toggled",
                    G_CALLBACK (on_reachable),
                    NULL);
  g_signal_connect ((gpointer) radiobutton2, "toggled",
                    G_CALLBACK (on_busy),
                    NULL);
  g_signal_connect ((gpointer) minutesaway, "changed",
                    G_CALLBACK (on_minutesaway_changed),
                    NULL);
  g_signal_connect ((gpointer) radiobutton3, "toggled",
                    G_CALLBACK (on_away),
                    NULL);
  g_signal_connect ((gpointer) radiobutton4, "toggled",
                    G_CALLBACK (on_do_not_disturb),
                    NULL);
  g_signal_connect ((gpointer) radiobutton5, "toggled",
                    G_CALLBACK (on_moved_tmply),
                    NULL);
  g_signal_connect ((gpointer) radiobutton6, "toggled",
                    G_CALLBACK (on_alt_serv),
                    NULL);
  g_signal_connect ((gpointer) contact_field, "changed",
                    G_CALLBACK (on_contact_field_changed),
                    NULL);
  g_signal_connect ((gpointer) dtmf_entry, "changed",
                    G_CALLBACK (on_dtmf_entry_changed),
                    NULL);
  g_signal_connect ((gpointer) dtmf_3, "clicked",
                    G_CALLBACK (on_dtmf_3_clicked),
                    NULL);
  g_signal_connect ((gpointer) dmtf_2, "clicked",
                    G_CALLBACK (on_dmtf_2_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_1, "clicked",
                    G_CALLBACK (on_dtmf_1_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_4, "clicked",
                    G_CALLBACK (on_dtmf_4_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_5, "clicked",
                    G_CALLBACK (on_dtmf_5_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_6, "clicked",
                    G_CALLBACK (on_dtmf_6_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_7, "clicked",
                    G_CALLBACK (on_dtmf_7_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_8, "clicked",
                    G_CALLBACK (on_dtmf_8_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_9, "clicked",
                    G_CALLBACK (on_dtmf_9_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_star, "clicked",
                    G_CALLBACK (on_dtmf_star_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_0, "clicked",
                    G_CALLBACK (on_dtmf_0_clicked),
                    NULL);
  g_signal_connect ((gpointer) dtmf_pound, "clicked",
                    G_CALLBACK (on_dtmf_pound_clicked),
                    NULL);
  g_signal_connect ((gpointer) friendlist, "row_activated",
                    G_CALLBACK (on_friendlist_row_activated),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (app1, app1, "app1");
  GLADE_HOOKUP_OBJECT (app1, dock1, "dock1");
  GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[0].widget, "connexion1");
  GLADE_HOOKUP_OBJECT (app1, connexion1_menu_uiinfo[0].widget, "addresse1");
  GLADE_HOOKUP_OBJECT (app1, connexion1_menu_uiinfo[1].widget, "parametres1");
  GLADE_HOOKUP_OBJECT (app1, connexion1_menu_uiinfo[2].widget, "call_history");
  GLADE_HOOKUP_OBJECT (app1, connexion1_menu_uiinfo[3].widget, "separator1");
  GLADE_HOOKUP_OBJECT (app1, connexion1_menu_uiinfo[4].widget, "exit1");
  GLADE_HOOKUP_OBJECT (app1, menubar1_uiinfo[1].widget, "help1");
  GLADE_HOOKUP_OBJECT (app1, help1_menu_uiinfo[0].widget, "about1");
  GLADE_HOOKUP_OBJECT (app1, help1_menu_uiinfo[1].widget, "user_manual1");
  GLADE_HOOKUP_OBJECT (app1, frame6, "frame6");
  GLADE_HOOKUP_OBJECT (app1, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (app1, vbox24, "vbox24");
  GLADE_HOOKUP_OBJECT (app1, hbox15, "hbox15");
  GLADE_HOOKUP_OBJECT (app1, frame7, "frame7");
  GLADE_HOOKUP_OBJECT (app1, addressentry, "addressentry");
  GLADE_HOOKUP_OBJECT (app1, label1, "label1");
  GLADE_HOOKUP_OBJECT (app1, display_ab, "display_ab");
  GLADE_HOOKUP_OBJECT (app1, alignment22, "alignment22");
  GLADE_HOOKUP_OBJECT (app1, hbox36, "hbox36");
  GLADE_HOOKUP_OBJECT (app1, image33, "image33");
  GLADE_HOOKUP_OBJECT (app1, label108, "label108");
  GLADE_HOOKUP_OBJECT (app1, proxy_hbox, "proxy_hbox");
  GLADE_HOOKUP_OBJECT (app1, proxytouse_label, "proxytouse_label");
  GLADE_HOOKUP_OBJECT (app1, hbox2, "hbox2");
  GLADE_HOOKUP_OBJECT (app1, callbutton, "callbutton");
  GLADE_HOOKUP_OBJECT (app1, button14, "button14");
  GLADE_HOOKUP_OBJECT (app1, button18, "button18");
  GLADE_HOOKUP_OBJECT (app1, showmore, "showmore");
  GLADE_HOOKUP_OBJECT (app1, alignment5, "alignment5");
  GLADE_HOOKUP_OBJECT (app1, hbox17, "hbox17");
  GLADE_HOOKUP_OBJECT (app1, image12, "image12");
  GLADE_HOOKUP_OBJECT (app1, label60, "label60");
  GLADE_HOOKUP_OBJECT (app1, optioncontrols, "optioncontrols");
  GLADE_HOOKUP_OBJECT (app1, frame8, "frame8");
  GLADE_HOOKUP_OBJECT (app1, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (app1, label30, "label30");
  GLADE_HOOKUP_OBJECT (app1, play_vol, "play_vol");
  GLADE_HOOKUP_OBJECT (app1, label31, "label31");
  GLADE_HOOKUP_OBJECT (app1, rec_vol, "rec_vol");
  GLADE_HOOKUP_OBJECT (app1, label110, "label110");
  GLADE_HOOKUP_OBJECT (app1, ring_vol, "ring_vol");
  GLADE_HOOKUP_OBJECT (app1, label33, "label33");
  GLADE_HOOKUP_OBJECT (app1, vbox6, "vbox6");
  GLADE_HOOKUP_OBJECT (app1, presence_frame, "presence_frame");
  GLADE_HOOKUP_OBJECT (app1, presence_vbox, "presence_vbox");
  GLADE_HOOKUP_OBJECT (app1, presence_reachable, "presence_reachable");
  GLADE_HOOKUP_OBJECT (app1, hbox4, "hbox4");
  GLADE_HOOKUP_OBJECT (app1, radiobutton2, "radiobutton2");
  GLADE_HOOKUP_OBJECT (app1, minutesaway, "minutesaway");
  GLADE_HOOKUP_OBJECT (app1, label35, "label35");
  GLADE_HOOKUP_OBJECT (app1, radiobutton3, "radiobutton3");
  GLADE_HOOKUP_OBJECT (app1, radiobutton4, "radiobutton4");
  GLADE_HOOKUP_OBJECT (app1, radiobutton5, "radiobutton5");
  GLADE_HOOKUP_OBJECT (app1, radiobutton6, "radiobutton6");
  GLADE_HOOKUP_OBJECT (app1, hbox5, "hbox5");
  GLADE_HOOKUP_OBJECT (app1, label36, "label36");
  GLADE_HOOKUP_OBJECT (app1, contact_field, "contact_field");
  GLADE_HOOKUP_OBJECT (app1, label34, "label34");
  GLADE_HOOKUP_OBJECT (app1, frame19, "frame19");
  GLADE_HOOKUP_OBJECT (app1, vbox18, "vbox18");
  GLADE_HOOKUP_OBJECT (app1, dtmf_entry, "dtmf_entry");
  GLADE_HOOKUP_OBJECT (app1, table5, "table5");
  GLADE_HOOKUP_OBJECT (app1, dtmf_3, "dtmf_3");
  GLADE_HOOKUP_OBJECT (app1, dmtf_2, "dmtf_2");
  GLADE_HOOKUP_OBJECT (app1, dtmf_1, "dtmf_1");
  GLADE_HOOKUP_OBJECT (app1, dtmf_4, "dtmf_4");
  GLADE_HOOKUP_OBJECT (app1, dtmf_5, "dtmf_5");
  GLADE_HOOKUP_OBJECT (app1, dtmf_6, "dtmf_6");
  GLADE_HOOKUP_OBJECT (app1, dtmf_7, "dtmf_7");
  GLADE_HOOKUP_OBJECT (app1, dtmf_8, "dtmf_8");
  GLADE_HOOKUP_OBJECT (app1, dtmf_9, "dtmf_9");
  GLADE_HOOKUP_OBJECT (app1, dtmf_star, "dtmf_star");
  GLADE_HOOKUP_OBJECT (app1, dtmf_0, "dtmf_0");
  GLADE_HOOKUP_OBJECT (app1, dtmf_pound, "dtmf_pound");
  GLADE_HOOKUP_OBJECT (app1, label38, "label38");
  GLADE_HOOKUP_OBJECT (app1, vbox22, "vbox22");
  GLADE_HOOKUP_OBJECT (app1, scrolledwindow3, "scrolledwindow3");
  GLADE_HOOKUP_OBJECT (app1, friendlist, "friendlist");
  GLADE_HOOKUP_OBJECT (app1, label65, "label65");
  GLADE_HOOKUP_OBJECT (app1, appbar1, "appbar1");
  GLADE_HOOKUP_OBJECT_NO_REF (app1, tooltips, "tooltips");

  gtk_widget_grab_focus (appbar1);
  return app1;
}

GtkWidget*
create_about2 (void)
{
  const gchar *authors[] = {
    "Simon MORLAT",
    "Aymeric Moizard",
    "Sharath K Udupa",
    NULL
  };
  const gchar *documenters[] = {
    "Simon MORLAT",
    "Philippe Beau",
    NULL
  };
  gchar *translators = "it: Alberto Zanoni\nde: Jean Jacques Sarton\nfr: Simon Morlat\nes: Jesus Benitez\nja: Yamaguchi Yoshiya\npl: obert Nasiadek <darkone@darkone.pl>\npt_BR: Rafael Caesar Lenzi <rc_lenzi@yahoo.com.br>\nsv: Daniel Nylander <po@danielnylander.se>";
  GdkPixbuf *about2_logo_pixbuf;
  GtkWidget *about2;
  GdkPixbuf *about2_icon_pixbuf;

  about2_logo_pixbuf = create_pixbuf ("linphone/linphone.png");
  about2 = gnome_about_new ("Linphone", VERSION,
                        _("C: 2001\nMade in Old Europe"),
                        _("Linphone is a web-phone.\nIt is compatible with SIP and RTP protocols."),
                        authors,
                        documenters,
                        translators,
                        about2_logo_pixbuf);
  gtk_container_set_border_width (GTK_CONTAINER (about2), 5);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (about2), TRUE);
  about2_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (about2_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (about2), about2_icon_pixbuf);
      gdk_pixbuf_unref (about2_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (about2), GDK_WINDOW_TYPE_HINT_DIALOG);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (about2, about2, "about2");

  return about2;
}

static GnomeUIInfo convertwidget6_uiinfo[] =
{
  {
    GNOME_APP_UI_ITEM, N_("28k modem"),
    NULL,
    (gpointer) NULL, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("56k modem"),
    NULL,
    (gpointer) NULL, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("64k modem (numeris)"),
    NULL,
    (gpointer) NULL, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("ADSL or Cable modem"),
    NULL,
    (gpointer) NULL, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  {
    GNOME_APP_UI_ITEM, N_("Ethernet or equivalent"),
    NULL,
    (gpointer) NULL, NULL, NULL,
    GNOME_APP_PIXMAP_NONE, NULL,
    0, (GdkModifierType) 0, NULL
  },
  GNOMEUIINFO_END
};

GtkWidget*
create_prop1 (void)
{
  GtkWidget *prop1;
  GdkPixbuf *prop1_icon_pixbuf;
  GtkWidget *notebook1;
  GtkWidget *vbox9;
  GtkWidget *frame26;
  GtkWidget *alignment21;
  GtkWidget *vbox29;
  GtkWidget *enable_ipv6;
  GtkWidget *label105;
  GtkWidget *frame21;
  GtkWidget *vbox21;
  GtkWidget *label56;
  GtkWidget *enable_nat;
  GtkWidget *alignment3;
  GtkWidget *hbox14;
  GtkWidget *image10;
  GtkWidget *label58;
  GtkWidget *hbox13;
  GtkWidget *nat_label;
  GtkWidget *nat_address;
  GtkWidget *label55;
  GtkWidget *frame20;
  GtkWidget *table6;
  GtkWidget *audio_jittcomp;
  GtkObject *audioport_adj;
  GtkWidget *audioport;
  GtkWidget *label52;
  GtkWidget *label53;
  GtkWidget *label54;
  GtkWidget *frame25;
  GtkWidget *alignment20;
  GtkWidget *vbox28;
  GtkWidget *use_sipinfo;
  GtkWidget *label103;
  GtkWidget *network;
  GtkWidget *vbox12;
  GtkWidget *vbox20;
  GtkWidget *frame17;
  GtkWidget *vbox16;
  GtkWidget *table4;
  GtkWidget *label10;
  GtkWidget *combo3;
  GList *combo3_items = NULL;
  GtkWidget *rec_source;
  GtkWidget *label106;
  GtkWidget *play_card;
  GtkWidget *capt_card;
  GtkWidget *hbox20;
  GtkWidget *ringfileentry;
  GtkWidget *combo_entry1;
  GtkWidget *ringpreview;
  GtkWidget *alignment8;
  GtkWidget *hbox21;
  GtkWidget *image15;
  GtkWidget *label64;
  GtkWidget *label11;
  GtkWidget *ringsnddev_label;
  GtkWidget *label63;
  GtkWidget *ring_card;
  GtkWidget *label48;
  GtkWidget *sound;
  GtkWidget *vbox7;
  GtkWidget *frame10;
  GtkWidget *hbox6;
  GtkWidget *label13;
  GtkObject *sip_port_adj;
  GtkWidget *sip_port;
  GtkWidget *label43;
  GtkWidget *frame11;
  GtkWidget *vbox27;
  GtkWidget *hbox7;
  GtkWidget *label26;
  GtkWidget *label27;
  GtkWidget *user_name;
  GtkWidget *label28;
  GtkWidget *domain_name;
  GtkWidget *guess_hostname;
  GtkWidget *label44;
  GtkWidget *frame1;
  GtkWidget *vbox23;
  GtkWidget *scrolledwindow4;
  GtkWidget *proxy_list;
  GtkWidget *hbuttonbox6;
  GtkWidget *addproxy_button;
  GtkWidget *alignment12;
  GtkWidget *hbox25;
  GtkWidget *image19;
  GtkWidget *label77;
  GtkWidget *editproxy_button;
  GtkWidget *alignment13;
  GtkWidget *hbox26;
  GtkWidget *image20;
  GtkWidget *label78;
  GtkWidget *removeproxy_button;
  GtkWidget *alignment14;
  GtkWidget *hbox27;
  GtkWidget *image21;
  GtkWidget *label79;
  GtkWidget *label45;
  GtkWidget *frame24;
  GtkWidget *alignment18;
  GtkWidget *clear_auth_info;
  GtkWidget *alignment19;
  GtkWidget *hbox34;
  GtkWidget *image27;
  GtkWidget *label102;
  GtkWidget *label101;
  GtkWidget *sip_pref;
  GtkWidget *vbox13;
  GtkWidget *frame16;
  GtkWidget *hbox9;
  GtkWidget *vbox14;
  GtkWidget *label9;
  GtkWidget *scrolledwindow2;
  GtkWidget *au_codec_list;
  GtkWidget *hbuttonbox4;
  GtkWidget *aucodec_up;
  GtkWidget *aucodec_down;
  GtkWidget *aucodec_enable;
  GtkWidget *alignment1;
  GtkWidget *hbox11;
  GtkWidget *image4;
  GtkWidget *label50;
  GtkWidget *aucodec_disable;
  GtkWidget *alignment2;
  GtkWidget *hbox12;
  GtkWidget *image5;
  GtkWidget *label51;
  GtkWidget *frame14;
  GtkWidget *vbox10;
  GtkWidget *connection_type;
  GtkWidget *convertwidget6;
  GtkWidget *label41;
  GtkWidget *vbox17;
  GtkWidget *label22;
  GtkWidget *frame18;
  GtkWidget *codec_info;
  GtkWidget *label47;
  GtkWidget *label46;
  GtkWidget *codecs_pref;
  GtkAccelGroup *accel_group;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  accel_group = gtk_accel_group_new ();

  prop1 = gnome_property_box_new ();
  gtk_window_set_title (GTK_WINDOW (prop1), _("Parameters"));
  gtk_window_set_resizable (GTK_WINDOW (prop1), FALSE);
  prop1_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (prop1_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (prop1), prop1_icon_pixbuf);
      gdk_pixbuf_unref (prop1_icon_pixbuf);
    }

  notebook1 = GNOME_PROPERTY_BOX (prop1)->notebook;
  gtk_widget_show (notebook1);

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

  frame26 = gtk_frame_new (NULL);
  gtk_widget_show (frame26);
  gtk_box_pack_start (GTK_BOX (vbox9), frame26, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame26), 6);

  alignment21 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment21);
  gtk_container_add (GTK_CONTAINER (frame26), alignment21);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment21), 0, 0, 12, 0);

  vbox29 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox29);
  gtk_container_add (GTK_CONTAINER (alignment21), vbox29);

  enable_ipv6 = gtk_check_button_new_with_mnemonic (_("Use IPv6 network (if available)"));
  gtk_widget_show (enable_ipv6);
  gtk_box_pack_start (GTK_BOX (vbox29), enable_ipv6, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, enable_ipv6, _("Toggle this if you are on an ipv6 network and you wish linphone to use it."), NULL);

  label105 = gtk_label_new (_("Global"));
  gtk_widget_show (label105);
  gtk_frame_set_label_widget (GTK_FRAME (frame26), label105);
  gtk_label_set_use_markup (GTK_LABEL (label105), TRUE);

  frame21 = gtk_frame_new (NULL);
  gtk_widget_show (frame21);
  gtk_box_pack_start (GTK_BOX (vbox9), frame21, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame21), 5);

  vbox21 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox21);
  gtk_container_add (GTK_CONTAINER (frame21), vbox21);
  gtk_container_set_border_width (GTK_CONTAINER (vbox21), 6);

  label56 = gtk_label_new (_("This option is only for users in a private network, behind a gateway. If you are not in this situation, then leave this empty."));
  gtk_widget_show (label56);
  gtk_box_pack_start (GTK_BOX (vbox21), label56, TRUE, TRUE, 0);
  gtk_label_set_line_wrap (GTK_LABEL (label56), TRUE);
  gtk_misc_set_padding (GTK_MISC (label56), 0, 12);

  enable_nat = gtk_check_button_new ();
  gtk_widget_show (enable_nat);
  gtk_box_pack_start (GTK_BOX (vbox21), enable_nat, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (enable_nat), 6);

  alignment3 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment3);
  gtk_container_add (GTK_CONTAINER (enable_nat), alignment3);

  hbox14 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox14);
  gtk_container_add (GTK_CONTAINER (alignment3), hbox14);

  image10 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image10);
  gtk_box_pack_start (GTK_BOX (hbox14), image10, FALSE, FALSE, 0);

  label58 = gtk_label_new_with_mnemonic (_("Enable"));
  gtk_widget_show (label58);
  gtk_box_pack_start (GTK_BOX (hbox14), label58, FALSE, FALSE, 0);

  hbox13 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox13);
  gtk_box_pack_start (GTK_BOX (vbox21), hbox13, TRUE, TRUE, 0);

  nat_label = gtk_label_new (_("Firewall 's external ip address (in dot notations):"));
  gtk_widget_show (nat_label);
  gtk_box_pack_start (GTK_BOX (hbox13), nat_label, TRUE, TRUE, 0);
  gtk_widget_set_sensitive (nat_label, FALSE);
  gtk_label_set_justify (GTK_LABEL (nat_label), GTK_JUSTIFY_CENTER);

  nat_address = gtk_entry_new ();
  gtk_widget_show (nat_address);
  gtk_box_pack_start (GTK_BOX (hbox13), nat_address, TRUE, TRUE, 74);
  gtk_widget_set_sensitive (nat_address, FALSE);

  label55 = gtk_label_new (_("NAT traversal options (experimental)"));
  gtk_widget_show (label55);
  gtk_frame_set_label_widget (GTK_FRAME (frame21), label55);

  frame20 = gtk_frame_new (NULL);
  gtk_widget_show (frame20);
  gtk_box_pack_start (GTK_BOX (vbox9), frame20, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame20), 5);

  table6 = gtk_table_new (2, 2, FALSE);
  gtk_widget_show (table6);
  gtk_container_add (GTK_CONTAINER (frame20), table6);

  audio_jittcomp = gtk_hscale_new (GTK_ADJUSTMENT (gtk_adjustment_new (150, 60, 512, 10, 0, 0)));
  gtk_widget_show (audio_jittcomp);
  gtk_table_attach (GTK_TABLE (table6), audio_jittcomp, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 20, 0);
  gtk_scale_set_value_pos (GTK_SCALE (audio_jittcomp), GTK_POS_RIGHT);
  gtk_scale_set_digits (GTK_SCALE (audio_jittcomp), 0);

  audioport_adj = gtk_adjustment_new (7000, 5000, 65535, 1, 10, 10);
  audioport = gtk_spin_button_new (GTK_ADJUSTMENT (audioport_adj), 4, 0);
  gtk_widget_show (audioport);
  gtk_table_attach (GTK_TABLE (table6), audioport, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND), 20, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (audioport), TRUE);

  label52 = gtk_label_new (_("Number of buffered miliseconds (jitter compensation):"));
  gtk_widget_show (label52);
  gtk_table_attach (GTK_TABLE (table6), label52, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label52), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (label52), TRUE);

  label53 = gtk_label_new (_("RTP port used for audio:"));
  gtk_widget_show (label53);
  gtk_table_attach (GTK_TABLE (table6), label53, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label53), GTK_JUSTIFY_CENTER);

  label54 = gtk_label_new (_("RTP properties"));
  gtk_widget_show (label54);
  gtk_frame_set_label_widget (GTK_FRAME (frame20), label54);

  frame25 = gtk_frame_new (NULL);
  gtk_widget_show (frame25);
  gtk_box_pack_start (GTK_BOX (vbox9), frame25, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame25), 5);

  alignment20 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment20);
  gtk_container_add (GTK_CONTAINER (frame25), alignment20);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment20), 0, 0, 12, 0);

  vbox28 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox28);
  gtk_container_add (GTK_CONTAINER (alignment20), vbox28);

  use_sipinfo = gtk_check_button_new_with_mnemonic (_("Use SIP INFO message instead of RTP rfc2833 for DTMF transmitting"));
  gtk_widget_show (use_sipinfo);
  gtk_box_pack_start (GTK_BOX (vbox28), use_sipinfo, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, use_sipinfo, _("RTP-RFC2833 is the recommended way."), NULL);

  label103 = gtk_label_new (_("Other"));
  gtk_widget_show (label103);
  gtk_frame_set_label_widget (GTK_FRAME (frame25), label103);
  gtk_label_set_use_markup (GTK_LABEL (label103), TRUE);

  network = gtk_label_new (_("Network"));
  gtk_widget_show (network);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 0), network);
  gtk_label_set_justify (GTK_LABEL (network), GTK_JUSTIFY_CENTER);

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

  vbox20 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox20);
  gtk_box_pack_start (GTK_BOX (vbox12), vbox20, FALSE, TRUE, 0);

  frame17 = gtk_frame_new (NULL);
  gtk_widget_show (frame17);
  gtk_box_pack_start (GTK_BOX (vbox20), frame17, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame17), 10);

  vbox16 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox16);
  gtk_container_add (GTK_CONTAINER (frame17), vbox16);

  table4 = gtk_table_new (5, 2, FALSE);
  gtk_widget_show (table4);
  gtk_box_pack_start (GTK_BOX (vbox16), table4, TRUE, TRUE, 0);

  label10 = gtk_label_new (_("Playback sound device:"));
  gtk_widget_show (label10);
  gtk_table_attach (GTK_TABLE (table4), label10, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND),
                    (GtkAttachOptions) (GTK_EXPAND), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label10), 0, 0.5);

  combo3 = gtk_combo_new ();
  g_object_set_data (G_OBJECT (GTK_COMBO (combo3)->popwin),
                     "GladeParentKey", combo3);
  gtk_widget_show (combo3);
  gtk_table_attach (GTK_TABLE (table4), combo3, 1, 2, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_combo_set_value_in_list (GTK_COMBO (combo3), TRUE, FALSE);
  combo3_items = g_list_append (combo3_items, (gpointer) _("micro"));
  combo3_items = g_list_append (combo3_items, (gpointer) _("line"));
  combo3_items = g_list_append (combo3_items, (gpointer) "");
  gtk_combo_set_popdown_strings (GTK_COMBO (combo3), combo3_items);
  g_list_free (combo3_items);

  rec_source = GTK_COMBO (combo3)->entry;
  gtk_widget_show (rec_source);
  gtk_editable_set_editable (GTK_EDITABLE (rec_source), FALSE);

  label106 = gtk_label_new (_("Capture sound device:"));
  gtk_widget_show (label106);
  gtk_table_attach (GTK_TABLE (table4), label106, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label106), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label106), 0, 0.5);

  play_card = gtk_combo_box_new_text ();
  gtk_widget_show (play_card);
  gtk_table_attach (GTK_TABLE (table4), play_card, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  capt_card = gtk_combo_box_new_text ();
  gtk_widget_show (capt_card);
  gtk_table_attach (GTK_TABLE (table4), capt_card, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  hbox20 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox20);
  gtk_table_attach (GTK_TABLE (table4), hbox20, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 0, 0);

  ringfileentry = gnome_file_entry_new (NULL, _("Ring sound selection"));
  gtk_widget_show (ringfileentry);
  gtk_box_pack_start (GTK_BOX (hbox20), ringfileentry, TRUE, TRUE, 0);
  gnome_file_entry_set_modal (GNOME_FILE_ENTRY (ringfileentry), TRUE);

  combo_entry1 = gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (ringfileentry));
  gtk_widget_show (combo_entry1);

  ringpreview = gtk_button_new ();
  gtk_widget_show (ringpreview);
  gtk_box_pack_start (GTK_BOX (hbox20), ringpreview, FALSE, FALSE, 10);

  alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment8);
  gtk_container_add (GTK_CONTAINER (ringpreview), alignment8);

  hbox21 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox21);
  gtk_container_add (GTK_CONTAINER (alignment8), hbox21);

  image15 = gtk_image_new_from_stock ("gnome-stock-volume", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image15);
  gtk_box_pack_start (GTK_BOX (hbox21), image15, FALSE, FALSE, 0);

  label64 = gtk_label_new_with_mnemonic (_("Listen"));
  gtk_widget_show (label64);
  gtk_box_pack_start (GTK_BOX (hbox21), label64, FALSE, FALSE, 0);

  label11 = gtk_label_new (_("Recording source:"));
  gtk_widget_show (label11);
  gtk_table_attach (GTK_TABLE (table4), label11, 0, 1, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label11), 0, 0.5);

  ringsnddev_label = gtk_label_new (_("Ring sound device"));
  gtk_widget_show (ringsnddev_label);
  gtk_table_attach (GTK_TABLE (table4), ringsnddev_label, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (ringsnddev_label), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (ringsnddev_label), 0, 0.5);

  label63 = gtk_label_new (_("Ring sound:"));
  gtk_widget_show (label63);
  gtk_table_attach (GTK_TABLE (table4), label63, 0, 1, 4, 5,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label63), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label63), 0, 0.5);

  ring_card = gtk_combo_box_new_text ();
  gtk_widget_show (ring_card);
  gtk_table_attach (GTK_TABLE (table4), ring_card, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_FILL), 0, 0);

  label48 = gtk_label_new (_("Sound properties"));
  gtk_widget_show (label48);
  gtk_frame_set_label_widget (GTK_FRAME (frame17), label48);

  sound = gtk_label_new (_("Sound device"));
  gtk_widget_show (sound);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 1), sound);
  gtk_label_set_justify (GTK_LABEL (sound), GTK_JUSTIFY_CENTER);

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

  frame10 = gtk_frame_new (NULL);
  gtk_widget_show (frame10);
  gtk_box_pack_start (GTK_BOX (vbox7), frame10, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame10), 10);

  hbox6 = gtk_hbox_new (FALSE, 67);
  gtk_widget_show (hbox6);
  gtk_container_add (GTK_CONTAINER (frame10), hbox6);

  label13 = gtk_label_new (_("Run sip user agent on port:"));
  gtk_widget_show (label13);
  gtk_box_pack_start (GTK_BOX (hbox6), label13, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (label13), GTK_JUSTIFY_CENTER);

  sip_port_adj = gtk_adjustment_new (5060, 5000, 65535, 1, 10, 10);
  sip_port = gtk_spin_button_new (GTK_ADJUSTMENT (sip_port_adj), 4, 0);
  gtk_widget_show (sip_port);
  gtk_box_pack_start (GTK_BOX (hbox6), sip_port, TRUE, TRUE, 32);
  gtk_tooltips_set_tip (tooltips, sip_port, _("It is strongly recommended to use port 5060."), NULL);

  label43 = gtk_label_new (_("SIP port"));
  gtk_widget_show (label43);
  gtk_frame_set_label_widget (GTK_FRAME (frame10), label43);

  frame11 = gtk_frame_new (NULL);
  gtk_widget_show (frame11);
  gtk_box_pack_start (GTK_BOX (vbox7), frame11, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame11), 10);

  vbox27 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox27);
  gtk_container_add (GTK_CONTAINER (frame11), vbox27);

  hbox7 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox7);
  gtk_box_pack_start (GTK_BOX (vbox27), hbox7, TRUE, TRUE, 0);

  label26 = gtk_label_new (_("Your sip address:"));
  gtk_widget_show (label26);
  gtk_box_pack_start (GTK_BOX (hbox7), label26, TRUE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label26), GTK_JUSTIFY_CENTER);

  label27 = gtk_label_new (_("sip:"));
  gtk_widget_show (label27);
  gtk_box_pack_start (GTK_BOX (hbox7), label27, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label27), GTK_JUSTIFY_RIGHT);

  user_name = gtk_entry_new ();
  gtk_widget_show (user_name);
  gtk_box_pack_start (GTK_BOX (hbox7), user_name, FALSE, FALSE, 0);

  label28 = gtk_label_new (_("@"));
  gtk_widget_show (label28);
  gtk_box_pack_start (GTK_BOX (hbox7), label28, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label28), GTK_JUSTIFY_CENTER);

  domain_name = gtk_entry_new ();
  gtk_widget_show (domain_name);
  gtk_box_pack_start (GTK_BOX (hbox7), domain_name, FALSE, TRUE, 0);

  guess_hostname = gtk_check_button_new_with_mnemonic (_("Automatically guess a valid hostname"));
  gtk_widget_show (guess_hostname);
  gtk_box_pack_start (GTK_BOX (vbox27), guess_hostname, TRUE, TRUE, 0);

  label44 = gtk_label_new (_("Identity"));
  gtk_widget_show (label44);
  gtk_frame_set_label_widget (GTK_FRAME (frame11), label44);

  frame1 = gtk_frame_new (NULL);
  gtk_widget_show (frame1);
  gtk_box_pack_start (GTK_BOX (vbox7), frame1, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame1), 10);

  vbox23 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox23);
  gtk_container_add (GTK_CONTAINER (frame1), vbox23);

  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow4);
  gtk_box_pack_start (GTK_BOX (vbox23), scrolledwindow4, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_ETCHED_OUT);

  proxy_list = gtk_tree_view_new ();
  gtk_widget_show (proxy_list);
  gtk_container_add (GTK_CONTAINER (scrolledwindow4), proxy_list);

  hbuttonbox6 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox6);
  gtk_box_pack_start (GTK_BOX (vbox23), hbuttonbox6, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox6), 5);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox6), GTK_BUTTONBOX_SPREAD);

  addproxy_button = gtk_button_new ();
  gtk_widget_show (addproxy_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), addproxy_button);
  GTK_WIDGET_SET_FLAGS (addproxy_button, GTK_CAN_DEFAULT);

  alignment12 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment12);
  gtk_container_add (GTK_CONTAINER (addproxy_button), alignment12);

  hbox25 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox25);
  gtk_container_add (GTK_CONTAINER (alignment12), hbox25);

  image19 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image19);
  gtk_box_pack_start (GTK_BOX (hbox25), image19, FALSE, FALSE, 0);

  label77 = gtk_label_new_with_mnemonic (_("Add proxy/registrar"));
  gtk_widget_show (label77);
  gtk_box_pack_start (GTK_BOX (hbox25), label77, FALSE, FALSE, 0);

  editproxy_button = gtk_button_new ();
  gtk_widget_show (editproxy_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), editproxy_button);
  GTK_WIDGET_SET_FLAGS (editproxy_button, GTK_CAN_DEFAULT);

  alignment13 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment13);
  gtk_container_add (GTK_CONTAINER (editproxy_button), alignment13);

  hbox26 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox26);
  gtk_container_add (GTK_CONTAINER (alignment13), hbox26);

  image20 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image20);
  gtk_box_pack_start (GTK_BOX (hbox26), image20, FALSE, FALSE, 0);

  label78 = gtk_label_new_with_mnemonic (_("Edit"));
  gtk_widget_show (label78);
  gtk_box_pack_start (GTK_BOX (hbox26), label78, FALSE, FALSE, 0);

  removeproxy_button = gtk_button_new ();
  gtk_widget_show (removeproxy_button);
  gtk_container_add (GTK_CONTAINER (hbuttonbox6), removeproxy_button);
  GTK_WIDGET_SET_FLAGS (removeproxy_button, GTK_CAN_DEFAULT);

  alignment14 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment14);
  gtk_container_add (GTK_CONTAINER (removeproxy_button), alignment14);

  hbox27 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox27);
  gtk_container_add (GTK_CONTAINER (alignment14), hbox27);

  image21 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image21);
  gtk_box_pack_start (GTK_BOX (hbox27), image21, FALSE, FALSE, 0);

  label79 = gtk_label_new_with_mnemonic (_("Remove"));
  gtk_widget_show (label79);
  gtk_box_pack_start (GTK_BOX (hbox27), label79, FALSE, FALSE, 0);

  label45 = gtk_label_new (_("Remote services"));
  gtk_widget_show (label45);
  gtk_frame_set_label_widget (GTK_FRAME (frame1), label45);

  frame24 = gtk_frame_new (NULL);
  gtk_widget_show (frame24);
  gtk_box_pack_start (GTK_BOX (vbox7), frame24, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame24), 10);

  alignment18 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment18);
  gtk_container_add (GTK_CONTAINER (frame24), alignment18);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment18), 0, 0, 12, 0);

  clear_auth_info = gtk_button_new ();
  gtk_widget_show (clear_auth_info);
  gtk_container_add (GTK_CONTAINER (alignment18), clear_auth_info);

  alignment19 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment19);
  gtk_container_add (GTK_CONTAINER (clear_auth_info), alignment19);

  hbox34 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox34);
  gtk_container_add (GTK_CONTAINER (alignment19), hbox34);

  image27 = gtk_image_new_from_stock ("gtk-delete", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image27);
  gtk_box_pack_start (GTK_BOX (hbox34), image27, FALSE, FALSE, 0);

  label102 = gtk_label_new_with_mnemonic (_("Clear all stored authentication information (username,password...)"));
  gtk_widget_show (label102);
  gtk_box_pack_start (GTK_BOX (hbox34), label102, FALSE, FALSE, 0);

  label101 = gtk_label_new (_("Authentication information"));
  gtk_widget_show (label101);
  gtk_frame_set_label_widget (GTK_FRAME (frame24), label101);

  sip_pref = gtk_label_new (_("SIP"));
  gtk_widget_show (sip_pref);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 2), sip_pref);
  gtk_label_set_justify (GTK_LABEL (sip_pref), GTK_JUSTIFY_CENTER);

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

  frame16 = gtk_frame_new (NULL);
  gtk_widget_show (frame16);
  gtk_box_pack_start (GTK_BOX (vbox13), frame16, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame16), 10);

  hbox9 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox9);
  gtk_container_add (GTK_CONTAINER (frame16), hbox9);

  vbox14 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox14);
  gtk_box_pack_start (GTK_BOX (hbox9), vbox14, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbox14), 9);

  label9 = gtk_label_new (_("List of audio codecs, in order of preference:"));
  gtk_widget_show (label9);
  gtk_box_pack_start (GTK_BOX (vbox14), label9, FALSE, FALSE, 4);
  gtk_misc_set_alignment (GTK_MISC (label9), 0, 0.5);

  scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow2);
  gtk_box_pack_start (GTK_BOX (vbox14), scrolledwindow2, TRUE, TRUE, 0);
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow2, GTK_CAN_FOCUS);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_ETCHED_IN);

  au_codec_list = gtk_tree_view_new ();
  gtk_widget_show (au_codec_list);
  gtk_container_add (GTK_CONTAINER (scrolledwindow2), au_codec_list);

  hbuttonbox4 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox4);
  gtk_box_pack_start (GTK_BOX (vbox14), hbuttonbox4, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbuttonbox4), 10);

  aucodec_up = gtk_button_new_from_stock ("gtk-go-up");
  gtk_widget_show (aucodec_up);
  gtk_container_add (GTK_CONTAINER (hbuttonbox4), aucodec_up);
  GTK_WIDGET_SET_FLAGS (aucodec_up, GTK_CAN_DEFAULT);

  aucodec_down = gtk_button_new_from_stock ("gtk-go-down");
  gtk_widget_show (aucodec_down);
  gtk_container_add (GTK_CONTAINER (hbuttonbox4), aucodec_down);
  GTK_WIDGET_SET_FLAGS (aucodec_down, GTK_CAN_DEFAULT);

  aucodec_enable = gtk_button_new ();
  gtk_widget_show (aucodec_enable);
  gtk_container_add (GTK_CONTAINER (hbuttonbox4), aucodec_enable);
  GTK_WIDGET_SET_FLAGS (aucodec_enable, GTK_CAN_DEFAULT);

  alignment1 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment1);
  gtk_container_add (GTK_CONTAINER (aucodec_enable), alignment1);

  hbox11 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox11);
  gtk_container_add (GTK_CONTAINER (alignment1), hbox11);

  image4 = gtk_image_new_from_stock ("gtk-apply", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image4);
  gtk_box_pack_start (GTK_BOX (hbox11), image4, FALSE, FALSE, 0);

  label50 = gtk_label_new_with_mnemonic (_("Enable"));
  gtk_widget_show (label50);
  gtk_box_pack_start (GTK_BOX (hbox11), label50, FALSE, FALSE, 0);

  aucodec_disable = gtk_button_new ();
  gtk_widget_show (aucodec_disable);
  gtk_container_add (GTK_CONTAINER (hbuttonbox4), aucodec_disable);
  GTK_WIDGET_SET_FLAGS (aucodec_disable, GTK_CAN_DEFAULT);

  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment2);
  gtk_container_add (GTK_CONTAINER (aucodec_disable), alignment2);

  hbox12 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox12);
  gtk_container_add (GTK_CONTAINER (alignment2), hbox12);

  image5 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image5);
  gtk_box_pack_start (GTK_BOX (hbox12), image5, FALSE, FALSE, 0);

  label51 = gtk_label_new_with_mnemonic (_("Disable"));
  gtk_widget_show (label51);
  gtk_box_pack_start (GTK_BOX (hbox12), label51, FALSE, FALSE, 0);

  frame14 = gtk_frame_new (NULL);
  gtk_widget_show (frame14);
  gtk_box_pack_start (GTK_BOX (vbox14), frame14, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame14), 10);

  vbox10 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox10);
  gtk_container_add (GTK_CONTAINER (frame14), vbox10);

  connection_type = gtk_option_menu_new ();
  gtk_widget_show (connection_type);
  gtk_box_pack_start (GTK_BOX (vbox10), connection_type, FALSE, FALSE, 0);

  convertwidget6 = gtk_menu_new ();
  gnome_app_fill_menu (GTK_MENU_SHELL (convertwidget6), convertwidget6_uiinfo,
                       accel_group, FALSE, 0);

  gtk_option_menu_set_menu (GTK_OPTION_MENU (connection_type), convertwidget6);

  label41 = gtk_label_new (_("Connection type:"));
  gtk_widget_show (label41);
  gtk_frame_set_label_widget (GTK_FRAME (frame14), label41);

  vbox17 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox17);
  gtk_box_pack_start (GTK_BOX (hbox9), vbox17, TRUE, FALSE, 0);

  label22 = gtk_label_new (_("Note: Codecs in red are not usable regarding to your connection type to the internet."));
  gtk_widget_show (label22);
  gtk_box_pack_start (GTK_BOX (vbox17), label22, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (label22), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (label22), TRUE);
  gtk_misc_set_padding (GTK_MISC (label22), 15, 0);

  frame18 = gtk_frame_new (NULL);
  gtk_widget_show (frame18);
  gtk_box_pack_start (GTK_BOX (vbox17), frame18, TRUE, TRUE, 5);
  gtk_container_set_border_width (GTK_CONTAINER (frame18), 8);

  codec_info = gtk_label_new (_("No information availlable"));
  gtk_widget_show (codec_info);
  gtk_container_add (GTK_CONTAINER (frame18), codec_info);
  gtk_label_set_justify (GTK_LABEL (codec_info), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (codec_info), TRUE);
  gtk_misc_set_padding (GTK_MISC (codec_info), 10, 10);

  label47 = gtk_label_new (_("Codec information"));
  gtk_widget_show (label47);
  gtk_frame_set_label_widget (GTK_FRAME (frame18), label47);

  label46 = gtk_label_new (_("Audio codecs"));
  gtk_widget_show (label46);
  gtk_frame_set_label_widget (GTK_FRAME (frame16), label46);

  codecs_pref = gtk_label_new (_("Codecs"));
  gtk_widget_show (codecs_pref);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebook1), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebook1), 3), codecs_pref);
  gtk_label_set_justify (GTK_LABEL (codecs_pref), GTK_JUSTIFY_CENTER);

  g_signal_connect ((gpointer) prop1, "apply",
                    G_CALLBACK (on_propertybox1_apply),
                    NULL);
  g_signal_connect ((gpointer) prop1, "close",
                    G_CALLBACK (on_prop1_close),
                    NULL);
  g_signal_connect ((gpointer) prop1, "help",
                    G_CALLBACK (on_prop1_help),
                    NULL);
  g_signal_connect ((gpointer) prop1, "close",
                    G_CALLBACK (on_property_box_closed),
                    NULL);
  g_signal_connect ((gpointer) enable_ipv6, "toggled",
                    G_CALLBACK (on_enable_ipv6_toggled),
                    NULL);
  g_signal_connect ((gpointer) enable_nat, "toggled",
                    G_CALLBACK (on_enable_nat_toggled),
                    NULL);
  g_signal_connect ((gpointer) nat_address, "changed",
                    G_CALLBACK (on_nat_address_changed),
                    NULL);
  g_signal_connect ((gpointer) audio_jittcomp, "value_changed",
                    G_CALLBACK (on_audio_jittcomp_value_changed),
                    NULL);
  g_signal_connect ((gpointer) audioport, "changed",
                    G_CALLBACK (on_audioport_changed),
                    NULL);
  g_signal_connect ((gpointer) use_sipinfo, "toggled",
                    G_CALLBACK (on_use_sipinfo_toggled),
                    NULL);
  g_signal_connect ((gpointer) rec_source, "changed",
                    G_CALLBACK (on_source_changed),
                    NULL);
  g_signal_connect ((gpointer) play_card, "changed",
                    G_CALLBACK (on_play_card_changed),
                    NULL);
  g_signal_connect ((gpointer) capt_card, "changed",
                    G_CALLBACK (on_capt_card_changed),
                    NULL);
  g_signal_connect ((gpointer) ringfileentry, "changed",
                    G_CALLBACK (on_ringfileentry_changed),
                    NULL);
  g_signal_connect ((gpointer) ringpreview, "clicked",
                    G_CALLBACK (on_ringpreview_clicked),
                    NULL);
  g_signal_connect ((gpointer) ring_card, "changed",
                    G_CALLBACK (on_ring_card_changed),
                    NULL);
  g_signal_connect ((gpointer) sip_port, "changed",
                    G_CALLBACK (on_sipport_changed),
                    NULL);
  g_signal_connect ((gpointer) user_name, "changed",
                    G_CALLBACK (on_user_name_changed),
                    NULL);
  g_signal_connect ((gpointer) domain_name, "changed",
                    G_CALLBACK (on_domain_name_changed),
                    NULL);
  g_signal_connect ((gpointer) guess_hostname, "toggled",
                    G_CALLBACK (on_guess_hostname_toggled),
                    NULL);
  g_signal_connect ((gpointer) addproxy_button, "clicked",
                    G_CALLBACK (on_addproxy_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) editproxy_button, "clicked",
                    G_CALLBACK (on_editproxy_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) removeproxy_button, "clicked",
                    G_CALLBACK (on_removeproxy_button_clicked),
                    NULL);
  g_signal_connect ((gpointer) clear_auth_info, "clicked",
                    G_CALLBACK (on_clear_auth_info_clicked),
                    NULL);
  g_signal_connect ((gpointer) aucodec_up, "clicked",
                    G_CALLBACK (on_aucodec_up_clicked),
                    NULL);
  g_signal_connect ((gpointer) aucodec_down, "clicked",
                    G_CALLBACK (on_aucodec_down_clicked),
                    NULL);
  g_signal_connect ((gpointer) aucodec_enable, "clicked",
                    G_CALLBACK (on_aucodec_enable_clicked),
                    NULL);
  g_signal_connect ((gpointer) aucodec_disable, "clicked",
                    G_CALLBACK (on_aucodec_disable_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (prop1, prop1, "prop1");
  GLADE_HOOKUP_OBJECT_NO_REF (prop1, notebook1, "notebook1");
  GLADE_HOOKUP_OBJECT (prop1, vbox9, "vbox9");
  GLADE_HOOKUP_OBJECT (prop1, frame26, "frame26");
  GLADE_HOOKUP_OBJECT (prop1, alignment21, "alignment21");
  GLADE_HOOKUP_OBJECT (prop1, vbox29, "vbox29");
  GLADE_HOOKUP_OBJECT (prop1, enable_ipv6, "enable_ipv6");
  GLADE_HOOKUP_OBJECT (prop1, label105, "label105");
  GLADE_HOOKUP_OBJECT (prop1, frame21, "frame21");
  GLADE_HOOKUP_OBJECT (prop1, vbox21, "vbox21");
  GLADE_HOOKUP_OBJECT (prop1, label56, "label56");
  GLADE_HOOKUP_OBJECT (prop1, enable_nat, "enable_nat");
  GLADE_HOOKUP_OBJECT (prop1, alignment3, "alignment3");
  GLADE_HOOKUP_OBJECT (prop1, hbox14, "hbox14");
  GLADE_HOOKUP_OBJECT (prop1, image10, "image10");
  GLADE_HOOKUP_OBJECT (prop1, label58, "label58");
  GLADE_HOOKUP_OBJECT (prop1, hbox13, "hbox13");
  GLADE_HOOKUP_OBJECT (prop1, nat_label, "nat_label");
  GLADE_HOOKUP_OBJECT (prop1, nat_address, "nat_address");
  GLADE_HOOKUP_OBJECT (prop1, label55, "label55");
  GLADE_HOOKUP_OBJECT (prop1, frame20, "frame20");
  GLADE_HOOKUP_OBJECT (prop1, table6, "table6");
  GLADE_HOOKUP_OBJECT (prop1, audio_jittcomp, "audio_jittcomp");
  GLADE_HOOKUP_OBJECT (prop1, audioport, "audioport");
  GLADE_HOOKUP_OBJECT (prop1, label52, "label52");
  GLADE_HOOKUP_OBJECT (prop1, label53, "label53");
  GLADE_HOOKUP_OBJECT (prop1, label54, "label54");
  GLADE_HOOKUP_OBJECT (prop1, frame25, "frame25");
  GLADE_HOOKUP_OBJECT (prop1, alignment20, "alignment20");
  GLADE_HOOKUP_OBJECT (prop1, vbox28, "vbox28");
  GLADE_HOOKUP_OBJECT (prop1, use_sipinfo, "use_sipinfo");
  GLADE_HOOKUP_OBJECT (prop1, label103, "label103");
  GLADE_HOOKUP_OBJECT (prop1, network, "network");
  GLADE_HOOKUP_OBJECT (prop1, vbox12, "vbox12");
  GLADE_HOOKUP_OBJECT (prop1, vbox20, "vbox20");
  GLADE_HOOKUP_OBJECT (prop1, frame17, "frame17");
  GLADE_HOOKUP_OBJECT (prop1, vbox16, "vbox16");
  GLADE_HOOKUP_OBJECT (prop1, table4, "table4");
  GLADE_HOOKUP_OBJECT (prop1, label10, "label10");
  GLADE_HOOKUP_OBJECT (prop1, combo3, "combo3");
  GLADE_HOOKUP_OBJECT (prop1, rec_source, "rec_source");
  GLADE_HOOKUP_OBJECT (prop1, label106, "label106");
  GLADE_HOOKUP_OBJECT (prop1, play_card, "play_card");
  GLADE_HOOKUP_OBJECT (prop1, capt_card, "capt_card");
  GLADE_HOOKUP_OBJECT (prop1, hbox20, "hbox20");
  GLADE_HOOKUP_OBJECT (prop1, ringfileentry, "ringfileentry");
  GLADE_HOOKUP_OBJECT (prop1, combo_entry1, "combo_entry1");
  GLADE_HOOKUP_OBJECT (prop1, ringpreview, "ringpreview");
  GLADE_HOOKUP_OBJECT (prop1, alignment8, "alignment8");
  GLADE_HOOKUP_OBJECT (prop1, hbox21, "hbox21");
  GLADE_HOOKUP_OBJECT (prop1, image15, "image15");
  GLADE_HOOKUP_OBJECT (prop1, label64, "label64");
  GLADE_HOOKUP_OBJECT (prop1, label11, "label11");
  GLADE_HOOKUP_OBJECT (prop1, ringsnddev_label, "ringsnddev_label");
  GLADE_HOOKUP_OBJECT (prop1, label63, "label63");
  GLADE_HOOKUP_OBJECT (prop1, ring_card, "ring_card");
  GLADE_HOOKUP_OBJECT (prop1, label48, "label48");
  GLADE_HOOKUP_OBJECT (prop1, sound, "sound");
  GLADE_HOOKUP_OBJECT (prop1, vbox7, "vbox7");
  GLADE_HOOKUP_OBJECT (prop1, frame10, "frame10");
  GLADE_HOOKUP_OBJECT (prop1, hbox6, "hbox6");
  GLADE_HOOKUP_OBJECT (prop1, label13, "label13");
  GLADE_HOOKUP_OBJECT (prop1, sip_port, "sip_port");
  GLADE_HOOKUP_OBJECT (prop1, label43, "label43");
  GLADE_HOOKUP_OBJECT (prop1, frame11, "frame11");
  GLADE_HOOKUP_OBJECT (prop1, vbox27, "vbox27");
  GLADE_HOOKUP_OBJECT (prop1, hbox7, "hbox7");
  GLADE_HOOKUP_OBJECT (prop1, label26, "label26");
  GLADE_HOOKUP_OBJECT (prop1, label27, "label27");
  GLADE_HOOKUP_OBJECT (prop1, user_name, "user_name");
  GLADE_HOOKUP_OBJECT (prop1, label28, "label28");
  GLADE_HOOKUP_OBJECT (prop1, domain_name, "domain_name");
  GLADE_HOOKUP_OBJECT (prop1, guess_hostname, "guess_hostname");
  GLADE_HOOKUP_OBJECT (prop1, label44, "label44");
  GLADE_HOOKUP_OBJECT (prop1, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (prop1, vbox23, "vbox23");
  GLADE_HOOKUP_OBJECT (prop1, scrolledwindow4, "scrolledwindow4");
  GLADE_HOOKUP_OBJECT (prop1, proxy_list, "proxy_list");
  GLADE_HOOKUP_OBJECT (prop1, hbuttonbox6, "hbuttonbox6");
  GLADE_HOOKUP_OBJECT (prop1, addproxy_button, "addproxy_button");
  GLADE_HOOKUP_OBJECT (prop1, alignment12, "alignment12");
  GLADE_HOOKUP_OBJECT (prop1, hbox25, "hbox25");
  GLADE_HOOKUP_OBJECT (prop1, image19, "image19");
  GLADE_HOOKUP_OBJECT (prop1, label77, "label77");
  GLADE_HOOKUP_OBJECT (prop1, editproxy_button, "editproxy_button");
  GLADE_HOOKUP_OBJECT (prop1, alignment13, "alignment13");
  GLADE_HOOKUP_OBJECT (prop1, hbox26, "hbox26");
  GLADE_HOOKUP_OBJECT (prop1, image20, "image20");
  GLADE_HOOKUP_OBJECT (prop1, label78, "label78");
  GLADE_HOOKUP_OBJECT (prop1, removeproxy_button, "removeproxy_button");
  GLADE_HOOKUP_OBJECT (prop1, alignment14, "alignment14");
  GLADE_HOOKUP_OBJECT (prop1, hbox27, "hbox27");
  GLADE_HOOKUP_OBJECT (prop1, image21, "image21");
  GLADE_HOOKUP_OBJECT (prop1, label79, "label79");
  GLADE_HOOKUP_OBJECT (prop1, label45, "label45");
  GLADE_HOOKUP_OBJECT (prop1, frame24, "frame24");
  GLADE_HOOKUP_OBJECT (prop1, alignment18, "alignment18");
  GLADE_HOOKUP_OBJECT (prop1, clear_auth_info, "clear_auth_info");
  GLADE_HOOKUP_OBJECT (prop1, alignment19, "alignment19");
  GLADE_HOOKUP_OBJECT (prop1, hbox34, "hbox34");
  GLADE_HOOKUP_OBJECT (prop1, image27, "image27");
  GLADE_HOOKUP_OBJECT (prop1, label102, "label102");
  GLADE_HOOKUP_OBJECT (prop1, label101, "label101");
  GLADE_HOOKUP_OBJECT (prop1, sip_pref, "sip_pref");
  GLADE_HOOKUP_OBJECT (prop1, vbox13, "vbox13");
  GLADE_HOOKUP_OBJECT (prop1, frame16, "frame16");
  GLADE_HOOKUP_OBJECT (prop1, hbox9, "hbox9");
  GLADE_HOOKUP_OBJECT (prop1, vbox14, "vbox14");
  GLADE_HOOKUP_OBJECT (prop1, label9, "label9");
  GLADE_HOOKUP_OBJECT (prop1, scrolledwindow2, "scrolledwindow2");
  GLADE_HOOKUP_OBJECT (prop1, au_codec_list, "au_codec_list");
  GLADE_HOOKUP_OBJECT (prop1, hbuttonbox4, "hbuttonbox4");
  GLADE_HOOKUP_OBJECT (prop1, aucodec_up, "aucodec_up");
  GLADE_HOOKUP_OBJECT (prop1, aucodec_down, "aucodec_down");
  GLADE_HOOKUP_OBJECT (prop1, aucodec_enable, "aucodec_enable");
  GLADE_HOOKUP_OBJECT (prop1, alignment1, "alignment1");
  GLADE_HOOKUP_OBJECT (prop1, hbox11, "hbox11");
  GLADE_HOOKUP_OBJECT (prop1, image4, "image4");
  GLADE_HOOKUP_OBJECT (prop1, label50, "label50");
  GLADE_HOOKUP_OBJECT (prop1, aucodec_disable, "aucodec_disable");
  GLADE_HOOKUP_OBJECT (prop1, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (prop1, hbox12, "hbox12");
  GLADE_HOOKUP_OBJECT (prop1, image5, "image5");
  GLADE_HOOKUP_OBJECT (prop1, label51, "label51");
  GLADE_HOOKUP_OBJECT (prop1, frame14, "frame14");
  GLADE_HOOKUP_OBJECT (prop1, vbox10, "vbox10");
  GLADE_HOOKUP_OBJECT (prop1, connection_type, "connection_type");
  GLADE_HOOKUP_OBJECT (prop1, convertwidget6, "convertwidget6");
  GLADE_HOOKUP_OBJECT (prop1, convertwidget6_uiinfo[0].widget, "convertwidget7");
  GLADE_HOOKUP_OBJECT (prop1, convertwidget6_uiinfo[1].widget, "convertwidget8");
  GLADE_HOOKUP_OBJECT (prop1, convertwidget6_uiinfo[2].widget, "convertwidget9");
  GLADE_HOOKUP_OBJECT (prop1, convertwidget6_uiinfo[3].widget, "convertwidget10");
  GLADE_HOOKUP_OBJECT (prop1, convertwidget6_uiinfo[4].widget, "convertwidget11");
  GLADE_HOOKUP_OBJECT (prop1, label41, "label41");
  GLADE_HOOKUP_OBJECT (prop1, vbox17, "vbox17");
  GLADE_HOOKUP_OBJECT (prop1, label22, "label22");
  GLADE_HOOKUP_OBJECT (prop1, frame18, "frame18");
  GLADE_HOOKUP_OBJECT (prop1, codec_info, "codec_info");
  GLADE_HOOKUP_OBJECT (prop1, label47, "label47");
  GLADE_HOOKUP_OBJECT (prop1, label46, "label46");
  GLADE_HOOKUP_OBJECT (prop1, codecs_pref, "codecs_pref");
  GLADE_HOOKUP_OBJECT_NO_REF (prop1, tooltips, "tooltips");

  gtk_window_add_accel_group (GTK_WINDOW (prop1), accel_group);

  return prop1;
}

GtkWidget*
create_address_book (void)
{
  GtkWidget *address_book;
  GdkPixbuf *address_book_icon_pixbuf;
  GtkWidget *dialog_vbox7;
  GtkWidget *vbox1;
  GtkWidget *scrolledwindow1;
  GtkWidget *viewport1;
  GtkWidget *address_list;
  GtkWidget *dialog_action_area7;
  GtkWidget *hbuttonbox1;
  GtkWidget *add_address;
  GtkWidget *remove_address;
  GtkWidget *modify_address;
  GtkWidget *alignment15;
  GtkWidget *hbox29;
  GtkWidget *image22;
  GtkWidget *label93;
  GtkWidget *close_addbook;
  GtkWidget *select_address;
  GtkWidget *alignment7;
  GtkWidget *hbox19;
  GtkWidget *image14;
  GtkWidget *label62;

  address_book = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (address_book), _("Address Book"));
  gtk_window_set_default_size (GTK_WINDOW (address_book), -1, 305);
  address_book_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (address_book_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (address_book), address_book_icon_pixbuf);
      gdk_pixbuf_unref (address_book_icon_pixbuf);
    }

  dialog_vbox7 = GTK_DIALOG (address_book)->vbox;
  gtk_widget_show (dialog_vbox7);

  vbox1 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox1);
  gtk_box_pack_start (GTK_BOX (dialog_vbox7), vbox1, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (vbox1), 12);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (vbox1), scrolledwindow1, TRUE, TRUE, 0);
  GTK_WIDGET_UNSET_FLAGS (scrolledwindow1, GTK_CAN_FOCUS);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_IN);

  viewport1 = gtk_viewport_new (NULL, NULL);
  gtk_widget_show (viewport1);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), viewport1);

  address_list = gtk_tree_view_new ();
  gtk_widget_show (address_list);
  gtk_container_add (GTK_CONTAINER (viewport1), address_list);

  dialog_action_area7 = GTK_DIALOG (address_book)->action_area;
  gtk_widget_show (dialog_action_area7);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_SPREAD);

  hbuttonbox1 = gtk_hbutton_box_new ();
  gtk_widget_show (hbuttonbox1);
  gtk_container_add (GTK_CONTAINER (dialog_action_area7), hbuttonbox1);
  gtk_box_set_spacing (GTK_BOX (hbuttonbox1), 11);

  add_address = gtk_button_new_from_stock ("gtk-add");
  gtk_widget_show (add_address);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), add_address);
  GTK_WIDGET_SET_FLAGS (add_address, GTK_CAN_DEFAULT);
  gtk_button_set_relief (GTK_BUTTON (add_address), GTK_RELIEF_HALF);

  remove_address = gtk_button_new_from_stock ("gtk-delete");
  gtk_widget_show (remove_address);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), remove_address);
  GTK_WIDGET_SET_FLAGS (remove_address, GTK_CAN_DEFAULT);
  gtk_button_set_relief (GTK_BUTTON (remove_address), GTK_RELIEF_HALF);

  modify_address = gtk_button_new ();
  gtk_widget_show (modify_address);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), modify_address);
  GTK_WIDGET_SET_FLAGS (modify_address, GTK_CAN_DEFAULT);

  alignment15 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment15);
  gtk_container_add (GTK_CONTAINER (modify_address), alignment15);

  hbox29 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox29);
  gtk_container_add (GTK_CONTAINER (alignment15), hbox29);

  image22 = gtk_image_new_from_stock ("gtk-justify-center", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image22);
  gtk_box_pack_start (GTK_BOX (hbox29), image22, FALSE, FALSE, 0);

  label93 = gtk_label_new_with_mnemonic (_("Edit"));
  gtk_widget_show (label93);
  gtk_box_pack_start (GTK_BOX (hbox29), label93, FALSE, FALSE, 0);

  close_addbook = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (close_addbook);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), close_addbook);
  GTK_WIDGET_SET_FLAGS (close_addbook, GTK_CAN_DEFAULT);

  select_address = gtk_button_new ();
  gtk_widget_show (select_address);
  gtk_container_add (GTK_CONTAINER (hbuttonbox1), select_address);
  GTK_WIDGET_SET_FLAGS (select_address, GTK_CAN_DEFAULT);

  alignment7 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment7);
  gtk_container_add (GTK_CONTAINER (select_address), alignment7);

  hbox19 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox19);
  gtk_container_add (GTK_CONTAINER (alignment7), hbox19);

  image14 = gtk_image_new_from_stock ("gtk-quit", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image14);
  gtk_box_pack_start (GTK_BOX (hbox19), image14, FALSE, FALSE, 0);

  label62 = gtk_label_new_with_mnemonic (_("Select"));
  gtk_widget_show (label62);
  gtk_box_pack_start (GTK_BOX (hbox19), label62, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) add_address, "clicked",
                    G_CALLBACK (on_add_address_clicked),
                    NULL);
  g_signal_connect ((gpointer) remove_address, "clicked",
                    G_CALLBACK (on_remove_address_clicked),
                    NULL);
  g_signal_connect ((gpointer) modify_address, "clicked",
                    G_CALLBACK (on_modify_address_clicked),
                    NULL);
  g_signal_connect ((gpointer) close_addbook, "clicked",
                    G_CALLBACK (address_book_close),
                    NULL);
  g_signal_connect ((gpointer) select_address, "clicked",
                    G_CALLBACK (on_select_address_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (address_book, address_book, "address_book");
  GLADE_HOOKUP_OBJECT_NO_REF (address_book, dialog_vbox7, "dialog_vbox7");
  GLADE_HOOKUP_OBJECT (address_book, vbox1, "vbox1");
  GLADE_HOOKUP_OBJECT (address_book, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (address_book, viewport1, "viewport1");
  GLADE_HOOKUP_OBJECT (address_book, address_list, "address_list");
  GLADE_HOOKUP_OBJECT_NO_REF (address_book, dialog_action_area7, "dialog_action_area7");
  GLADE_HOOKUP_OBJECT (address_book, hbuttonbox1, "hbuttonbox1");
  GLADE_HOOKUP_OBJECT (address_book, add_address, "add_address");
  GLADE_HOOKUP_OBJECT (address_book, remove_address, "remove_address");
  GLADE_HOOKUP_OBJECT (address_book, modify_address, "modify_address");
  GLADE_HOOKUP_OBJECT (address_book, alignment15, "alignment15");
  GLADE_HOOKUP_OBJECT (address_book, hbox29, "hbox29");
  GLADE_HOOKUP_OBJECT (address_book, image22, "image22");
  GLADE_HOOKUP_OBJECT (address_book, label93, "label93");
  GLADE_HOOKUP_OBJECT (address_book, close_addbook, "close_addbook");
  GLADE_HOOKUP_OBJECT (address_book, select_address, "select_address");
  GLADE_HOOKUP_OBJECT (address_book, alignment7, "alignment7");
  GLADE_HOOKUP_OBJECT (address_book, hbox19, "hbox19");
  GLADE_HOOKUP_OBJECT (address_book, image14, "image14");
  GLADE_HOOKUP_OBJECT (address_book, label62, "label62");

  return address_book;
}

GtkWidget*
create_altressource (void)
{
  GtkWidget *altressource;
  GdkPixbuf *altressource_icon_pixbuf;
  GtkWidget *dialog_vbox10;
  GtkWidget *vbox19;
  GtkWidget *label49;
  GtkWidget *alt_href;
  GtkWidget *dialog_action_area10;
  GtkWidget *closebutton1;

  altressource = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (altressource), _("Information"));
  gtk_window_set_resizable (GTK_WINDOW (altressource), FALSE);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (altressource), TRUE);
  altressource_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (altressource_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (altressource), altressource_icon_pixbuf);
      gdk_pixbuf_unref (altressource_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (altressource), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox10 = GTK_DIALOG (altressource)->vbox;
  gtk_widget_show (dialog_vbox10);

  vbox19 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox19);
  gtk_box_pack_start (GTK_BOX (dialog_vbox10), vbox19, TRUE, TRUE, 0);

  label49 = gtk_label_new (_("User is not reachable at the moment but he invites you to contact him using the following alternate ressource:"));
  gtk_widget_show (label49);
  gtk_box_pack_start (GTK_BOX (vbox19), label49, TRUE, TRUE, 10);
  gtk_label_set_justify (GTK_LABEL (label49), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (label49), TRUE);
  gtk_misc_set_padding (GTK_MISC (label49), 25, 5);

  alt_href = gtk_button_new_with_mnemonic (_("None."));
  gtk_widget_show (alt_href);
  gtk_box_pack_start (GTK_BOX (vbox19), alt_href, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (alt_href), 12);
  gtk_button_set_relief (GTK_BUTTON (alt_href), GTK_RELIEF_NONE);

  dialog_action_area10 = GTK_DIALOG (altressource)->action_area;
  gtk_widget_show (dialog_action_area10);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END);

  closebutton1 = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (closebutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (altressource), closebutton1, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (closebutton1, GTK_CAN_DEFAULT);

  g_signal_connect_swapped ((gpointer) alt_href, "clicked",
                            G_CALLBACK (on_alt_href_clicked),
                            GTK_OBJECT (altressource));
  g_signal_connect ((gpointer) alt_href, "realize",
                    G_CALLBACK (on_alt_href_realize),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (altressource, altressource, "altressource");
  GLADE_HOOKUP_OBJECT_NO_REF (altressource, dialog_vbox10, "dialog_vbox10");
  GLADE_HOOKUP_OBJECT (altressource, vbox19, "vbox19");
  GLADE_HOOKUP_OBJECT (altressource, label49, "label49");
  GLADE_HOOKUP_OBJECT (altressource, alt_href, "alt_href");
  GLADE_HOOKUP_OBJECT_NO_REF (altressource, dialog_action_area10, "dialog_action_area10");
  GLADE_HOOKUP_OBJECT (altressource, closebutton1, "closebutton1");

  return altressource;
}

GtkWidget*
create_proxy_config_box (void)
{
  GtkWidget *proxy_config_box;
  GdkPixbuf *proxy_config_box_icon_pixbuf;
  GtkWidget *dialog_vbox12;
  GtkWidget *frame22;
  GtkWidget *table8;
  GtkWidget *reg_sendregister;
  GtkWidget *label82;
  GtkWidget *reg_route;
  GtkWidget *reg_proxy;
  GtkWidget *label83;
  GtkWidget *label84;
  GtkWidget *reg_identity;
  GtkWidget *label85;
  GtkObject *reg_expires_adj;
  GtkWidget *reg_expires;
  GtkWidget *label81;
  GtkWidget *label104;
  GtkWidget *publish;
  GtkWidget *label86;
  GtkWidget *dialog_action_area12;
  GtkWidget *helpbutton1;
  GtkWidget *okbutton2;

  proxy_config_box = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (proxy_config_box), _("Proxy/Registrar configuration box"));
  gtk_window_set_modal (GTK_WINDOW (proxy_config_box), TRUE);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (proxy_config_box), TRUE);
  proxy_config_box_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (proxy_config_box_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (proxy_config_box), proxy_config_box_icon_pixbuf);
      gdk_pixbuf_unref (proxy_config_box_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (proxy_config_box), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox12 = GTK_DIALOG (proxy_config_box)->vbox;
  gtk_widget_show (dialog_vbox12);

  frame22 = gtk_frame_new (NULL);
  gtk_widget_show (frame22);
  gtk_box_pack_start (GTK_BOX (dialog_vbox12), frame22, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame22), 8);

  table8 = gtk_table_new (7, 2, FALSE);
  gtk_widget_show (table8);
  gtk_container_add (GTK_CONTAINER (frame22), table8);

  reg_sendregister = gtk_check_button_new_with_mnemonic ("");
  gtk_widget_show (reg_sendregister);
  gtk_table_attach (GTK_TABLE (table8), reg_sendregister, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (reg_sendregister), TRUE);

  label82 = gtk_label_new (_("Route (optional):"));
  gtk_widget_show (label82);
  gtk_table_attach (GTK_TABLE (table8), label82, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label82), 0, 0.5);

  reg_route = gtk_entry_new ();
  gtk_widget_show (reg_route);
  gtk_table_attach (GTK_TABLE (table8), reg_route, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_max_length (GTK_ENTRY (reg_route), 256);

  reg_proxy = gtk_entry_new ();
  gtk_widget_show (reg_proxy);
  gtk_table_attach (GTK_TABLE (table8), reg_proxy, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_max_length (GTK_ENTRY (reg_proxy), 250);
  gtk_entry_set_text (GTK_ENTRY (reg_proxy), _("sip:"));

  label83 = gtk_label_new (_("SIP Proxy:"));
  gtk_widget_show (label83);
  gtk_table_attach (GTK_TABLE (table8), label83, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label83), 0, 0.5);

  label84 = gtk_label_new (_("SIP Identity:"));
  gtk_widget_show (label84);
  gtk_table_attach (GTK_TABLE (table8), label84, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label84), 0, 0.5);

  reg_identity = gtk_entry_new ();
  gtk_widget_show (reg_identity);
  gtk_table_attach (GTK_TABLE (table8), reg_identity, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_max_length (GTK_ENTRY (reg_identity), 256);
  gtk_entry_set_text (GTK_ENTRY (reg_identity), _("sip:"));

  label85 = gtk_label_new (_("Registration Period:"));
  gtk_widget_show (label85);
  gtk_table_attach (GTK_TABLE (table8), label85, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label85), 0, 0.5);

  reg_expires_adj = gtk_adjustment_new (900, 120, 72000, 1, 10, 10);
  reg_expires = gtk_spin_button_new (GTK_ADJUSTMENT (reg_expires_adj), 1, 0);
  gtk_widget_show (reg_expires);
  gtk_table_attach (GTK_TABLE (table8), reg_expires, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (reg_expires), TRUE);

  label81 = gtk_label_new (_("Send registration:"));
  gtk_widget_show (label81);
  gtk_table_attach (GTK_TABLE (table8), label81, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label81), 0, 0.5);

  label104 = gtk_label_new (_("Publish presence information:"));
  gtk_widget_show (label104);
  gtk_table_attach (GTK_TABLE (table8), label104, 0, 1, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label104), 0, 0.5);

  publish = gtk_check_button_new_with_mnemonic ("");
  gtk_widget_show (publish);
  gtk_table_attach (GTK_TABLE (table8), publish, 1, 2, 6, 7,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label86 = gtk_label_new (_("Proxy/Registrar configuration box"));
  gtk_widget_show (label86);
  gtk_frame_set_label_widget (GTK_FRAME (frame22), label86);

  dialog_action_area12 = GTK_DIALOG (proxy_config_box)->action_area;
  gtk_widget_show (dialog_action_area12);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area12), GTK_BUTTONBOX_END);

  helpbutton1 = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_show (helpbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (proxy_config_box), helpbutton1, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (helpbutton1, GTK_CAN_DEFAULT);

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

  g_signal_connect ((gpointer) proxy_config_box, "response",
                    G_CALLBACK (on_proxy_config_box_response),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (proxy_config_box, proxy_config_box, "proxy_config_box");
  GLADE_HOOKUP_OBJECT_NO_REF (proxy_config_box, dialog_vbox12, "dialog_vbox12");
  GLADE_HOOKUP_OBJECT (proxy_config_box, frame22, "frame22");
  GLADE_HOOKUP_OBJECT (proxy_config_box, table8, "table8");
  GLADE_HOOKUP_OBJECT (proxy_config_box, reg_sendregister, "reg_sendregister");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label82, "label82");
  GLADE_HOOKUP_OBJECT (proxy_config_box, reg_route, "reg_route");
  GLADE_HOOKUP_OBJECT (proxy_config_box, reg_proxy, "reg_proxy");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label83, "label83");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label84, "label84");
  GLADE_HOOKUP_OBJECT (proxy_config_box, reg_identity, "reg_identity");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label85, "label85");
  GLADE_HOOKUP_OBJECT (proxy_config_box, reg_expires, "reg_expires");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label81, "label81");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label104, "label104");
  GLADE_HOOKUP_OBJECT (proxy_config_box, publish, "publish");
  GLADE_HOOKUP_OBJECT (proxy_config_box, label86, "label86");
  GLADE_HOOKUP_OBJECT_NO_REF (proxy_config_box, dialog_action_area12, "dialog_action_area12");
  GLADE_HOOKUP_OBJECT (proxy_config_box, helpbutton1, "helpbutton1");
  GLADE_HOOKUP_OBJECT (proxy_config_box, okbutton2, "okbutton2");

  gtk_widget_grab_focus (proxy_config_box);
  return proxy_config_box;
}

GtkWidget*
create_contact_box (void)
{
  GtkWidget *contact_box;
  GdkPixbuf *contact_box_icon_pixbuf;
  GtkWidget *dialog_vbox13;
  GtkWidget *frame23;
  GtkWidget *vbox25;
  GtkWidget *table10;
  GtkWidget *sipaddr;
  GtkWidget *name;
  GtkWidget *label89;
  GtkWidget *label90;
  GtkWidget *label91;
  GtkWidget *label92;
  GtkWidget *send_subscribe;
  GtkWidget *label88;
  GtkWidget *dialog_action_area13;
  GtkWidget *helpbutton2;
  GtkWidget *cancelbutton2;
  GtkWidget *okbutton3;

  contact_box = gtk_dialog_new ();
  GTK_WIDGET_SET_FLAGS (contact_box, GTK_CAN_FOCUS);
  gtk_window_set_title (GTK_WINDOW (contact_box), _("Edit contact information"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (contact_box), TRUE);
  contact_box_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (contact_box_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (contact_box), contact_box_icon_pixbuf);
      gdk_pixbuf_unref (contact_box_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (contact_box), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox13 = GTK_DIALOG (contact_box)->vbox;
  gtk_widget_show (dialog_vbox13);

  frame23 = gtk_frame_new (NULL);
  gtk_widget_show (frame23);
  gtk_box_pack_start (GTK_BOX (dialog_vbox13), frame23, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame23), 6);

  vbox25 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox25);
  gtk_container_add (GTK_CONTAINER (frame23), vbox25);

  table10 = gtk_table_new (4, 2, TRUE);
  gtk_widget_show (table10);
  gtk_box_pack_start (GTK_BOX (vbox25), table10, TRUE, TRUE, 0);

  sipaddr = gtk_entry_new ();
  gtk_widget_show (sipaddr);
  gtk_table_attach (GTK_TABLE (table10), sipaddr, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_text (GTK_ENTRY (sipaddr), _("sip:"));

  name = gtk_entry_new ();
  gtk_widget_show (name);
  gtk_table_attach (GTK_TABLE (table10), name, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label89 = gtk_label_new (_("Name:"));
  gtk_widget_show (label89);
  gtk_table_attach (GTK_TABLE (table10), label89, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label89), 0, 0.5);

  label90 = gtk_label_new (_("Sip address:"));
  gtk_widget_show (label90);
  gtk_table_attach (GTK_TABLE (table10), label90, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label90), 0, 0.5);

  label91 = gtk_label_new (_("Proxy to use:"));
  gtk_widget_show (label91);
  gtk_table_attach (GTK_TABLE (table10), label91, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label91), 0, 0.5);

  label92 = gtk_label_new (_("Subscribe policy:"));
  gtk_widget_show (label92);
  gtk_table_attach (GTK_TABLE (table10), label92, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label92), 0, 0.5);

  send_subscribe = gtk_check_button_new_with_mnemonic (_("Send subscription (see person's online status)"));
  gtk_widget_show (send_subscribe);
  gtk_box_pack_start (GTK_BOX (vbox25), send_subscribe, TRUE, TRUE, 0);

  label88 = gtk_label_new (_("Contact information"));
  gtk_widget_show (label88);
  gtk_frame_set_label_widget (GTK_FRAME (frame23), label88);

  dialog_action_area13 = GTK_DIALOG (contact_box)->action_area;
  gtk_widget_show (dialog_action_area13);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area13), GTK_BUTTONBOX_END);

  helpbutton2 = gtk_button_new_from_stock ("gtk-help");
  gtk_widget_show (helpbutton2);
  gtk_dialog_add_action_widget (GTK_DIALOG (contact_box), helpbutton2, GTK_RESPONSE_HELP);
  GTK_WIDGET_SET_FLAGS (helpbutton2, GTK_CAN_DEFAULT);

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

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

  g_signal_connect ((gpointer) contact_box, "response",
                    G_CALLBACK (on_contact_box_response),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (contact_box, contact_box, "contact_box");
  GLADE_HOOKUP_OBJECT_NO_REF (contact_box, dialog_vbox13, "dialog_vbox13");
  GLADE_HOOKUP_OBJECT (contact_box, frame23, "frame23");
  GLADE_HOOKUP_OBJECT (contact_box, vbox25, "vbox25");
  GLADE_HOOKUP_OBJECT (contact_box, table10, "table10");
  GLADE_HOOKUP_OBJECT (contact_box, sipaddr, "sipaddr");
  GLADE_HOOKUP_OBJECT (contact_box, name, "name");
  GLADE_HOOKUP_OBJECT (contact_box, label89, "label89");
  GLADE_HOOKUP_OBJECT (contact_box, label90, "label90");
  GLADE_HOOKUP_OBJECT (contact_box, label91, "label91");
  GLADE_HOOKUP_OBJECT (contact_box, label92, "label92");
  GLADE_HOOKUP_OBJECT (contact_box, send_subscribe, "send_subscribe");
  GLADE_HOOKUP_OBJECT (contact_box, label88, "label88");
  GLADE_HOOKUP_OBJECT_NO_REF (contact_box, dialog_action_area13, "dialog_action_area13");
  GLADE_HOOKUP_OBJECT (contact_box, helpbutton2, "helpbutton2");
  GLADE_HOOKUP_OBJECT (contact_box, cancelbutton2, "cancelbutton2");
  GLADE_HOOKUP_OBJECT (contact_box, okbutton3, "okbutton3");

  return contact_box;
}

GtkWidget*
create_inc_subscr_dialog (void)
{
  GtkWidget *inc_subscr_dialog;
  GdkPixbuf *inc_subscr_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox14;
  GtkWidget *hbox32;
  GtkWidget *image25;
  GtkWidget *subscr_label;
  GtkWidget *dialog_action_area14;
  GtkWidget *button15;
  GtkWidget *alignment17;
  GtkWidget *hbox31;
  GtkWidget *image24;
  GtkWidget *label95;
  GtkWidget *button16;
  GtkWidget *alignment16;
  GtkWidget *hbox30;
  GtkWidget *image23;
  GtkWidget *label94;

  inc_subscr_dialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (inc_subscr_dialog), _("New incoming subscription"));
  inc_subscr_dialog_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (inc_subscr_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (inc_subscr_dialog), inc_subscr_dialog_icon_pixbuf);
      gdk_pixbuf_unref (inc_subscr_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (inc_subscr_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox14 = GTK_DIALOG (inc_subscr_dialog)->vbox;
  gtk_widget_show (dialog_vbox14);

  hbox32 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox32);
  gtk_box_pack_start (GTK_BOX (dialog_vbox14), hbox32, TRUE, TRUE, 0);

  image25 = gtk_image_new_from_stock ("gtk-dialog-warning", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image25);
  gtk_box_pack_start (GTK_BOX (hbox32), image25, FALSE, TRUE, 0);

  subscr_label = gtk_label_new (_("You have received a new subscription..."));
  gtk_widget_show (subscr_label);
  gtk_box_pack_start (GTK_BOX (hbox32), subscr_label, TRUE, TRUE, 0);
  gtk_label_set_line_wrap (GTK_LABEL (subscr_label), TRUE);
  gtk_misc_set_padding (GTK_MISC (subscr_label), 14, 9);

  dialog_action_area14 = GTK_DIALOG (inc_subscr_dialog)->action_area;
  gtk_widget_show (dialog_action_area14);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area14), GTK_BUTTONBOX_SPREAD);

  button15 = gtk_button_new ();
  gtk_widget_show (button15);
  gtk_dialog_add_action_widget (GTK_DIALOG (inc_subscr_dialog), button15, GTK_RESPONSE_REJECT);
  GTK_WIDGET_SET_FLAGS (button15, GTK_CAN_DEFAULT);

  alignment17 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment17);
  gtk_container_add (GTK_CONTAINER (button15), alignment17);

  hbox31 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox31);
  gtk_container_add (GTK_CONTAINER (alignment17), hbox31);

  image24 = gtk_image_new_from_stock ("gtk-stop", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image24);
  gtk_box_pack_start (GTK_BOX (hbox31), image24, FALSE, FALSE, 0);

  label95 = gtk_label_new_with_mnemonic (_("Refuse"));
  gtk_widget_show (label95);
  gtk_box_pack_start (GTK_BOX (hbox31), label95, FALSE, FALSE, 0);

  button16 = gtk_button_new ();
  gtk_widget_show (button16);
  gtk_dialog_add_action_widget (GTK_DIALOG (inc_subscr_dialog), button16, GTK_RESPONSE_ACCEPT);
  GTK_WIDGET_SET_FLAGS (button16, GTK_CAN_DEFAULT);

  alignment16 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment16);
  gtk_container_add (GTK_CONTAINER (button16), alignment16);

  hbox30 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox30);
  gtk_container_add (GTK_CONTAINER (alignment16), hbox30);

  image23 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image23);
  gtk_box_pack_start (GTK_BOX (hbox30), image23, FALSE, FALSE, 0);

  label94 = gtk_label_new_with_mnemonic (_("Accept"));
  gtk_widget_show (label94);
  gtk_box_pack_start (GTK_BOX (hbox30), label94, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) inc_subscr_dialog, "response",
                    G_CALLBACK (on_inc_subscr_dialog_response),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (inc_subscr_dialog, inc_subscr_dialog, "inc_subscr_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (inc_subscr_dialog, dialog_vbox14, "dialog_vbox14");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, hbox32, "hbox32");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, image25, "image25");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, subscr_label, "subscr_label");
  GLADE_HOOKUP_OBJECT_NO_REF (inc_subscr_dialog, dialog_action_area14, "dialog_action_area14");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, button15, "button15");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, alignment17, "alignment17");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, hbox31, "hbox31");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, image24, "image24");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, label95, "label95");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, button16, "button16");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, alignment16, "alignment16");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, hbox30, "hbox30");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, image23, "image23");
  GLADE_HOOKUP_OBJECT (inc_subscr_dialog, label94, "label94");

  return inc_subscr_dialog;
}

GtkWidget*
create_authentication_dialog (void)
{
  GtkWidget *authentication_dialog;
  GdkPixbuf *authentication_dialog_icon_pixbuf;
  GtkWidget *dialog_vbox15;
  GtkWidget *vbox26;
  GtkWidget *hbox33;
  GtkWidget *image26;
  GtkWidget *question;
  GtkWidget *table11;
  GtkWidget *realm;
  GtkWidget *username;
  GtkWidget *passwd;
  GtkWidget *userid;
  GtkWidget *label100;
  GtkWidget *label99;
  GtkWidget *label98;
  GtkWidget *label97;
  GtkWidget *dialog_action_area15;
  GtkWidget *cancelbutton3;
  GtkWidget *okbutton4;

  authentication_dialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (authentication_dialog), _("Authentication requested"));
  gtk_window_set_destroy_with_parent (GTK_WINDOW (authentication_dialog), TRUE);
  authentication_dialog_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (authentication_dialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (authentication_dialog), authentication_dialog_icon_pixbuf);
      gdk_pixbuf_unref (authentication_dialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (authentication_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox15 = GTK_DIALOG (authentication_dialog)->vbox;
  gtk_widget_show (dialog_vbox15);

  vbox26 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox26);
  gtk_box_pack_start (GTK_BOX (dialog_vbox15), vbox26, TRUE, TRUE, 0);

  hbox33 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox33);
  gtk_box_pack_start (GTK_BOX (vbox26), hbox33, FALSE, FALSE, 0);

  image26 = gtk_image_new_from_stock ("gtk-dialog-question", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image26);
  gtk_box_pack_start (GTK_BOX (hbox33), image26, TRUE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image26), 16, 0);

  question = gtk_label_new (_("Authentication required for realm"));
  gtk_widget_show (question);
  gtk_box_pack_start (GTK_BOX (hbox33), question, TRUE, TRUE, 0);
  gtk_label_set_justify (GTK_LABEL (question), GTK_JUSTIFY_CENTER);
  gtk_misc_set_padding (GTK_MISC (question), 29, 14);

  table11 = gtk_table_new (5, 2, FALSE);
  gtk_widget_show (table11);
  gtk_box_pack_start (GTK_BOX (vbox26), table11, TRUE, TRUE, 0);

  realm = gtk_entry_new ();
  gtk_widget_show (realm);
  gtk_table_attach (GTK_TABLE (table11), realm, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_editable_set_editable (GTK_EDITABLE (realm), FALSE);

  username = gtk_entry_new ();
  gtk_widget_show (username);
  gtk_table_attach (GTK_TABLE (table11), username, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  passwd = gtk_entry_new ();
  gtk_widget_show (passwd);
  gtk_table_attach (GTK_TABLE (table11), passwd, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_entry_set_visibility (GTK_ENTRY (passwd), FALSE);

  userid = gtk_entry_new ();
  gtk_widget_show (userid);
  gtk_table_attach (GTK_TABLE (table11), userid, 1, 2, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);

  label100 = gtk_label_new (_("userid:"));
  gtk_widget_show (label100);
  gtk_table_attach (GTK_TABLE (table11), label100, 0, 1, 3, 4,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label100), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label100), 0, 0.5);

  label99 = gtk_label_new (_("password:"));
  gtk_widget_show (label99);
  gtk_table_attach (GTK_TABLE (table11), label99, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_EXPAND),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label99), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label99), 0, 0.5);

  label98 = gtk_label_new (_("username:"));
  gtk_widget_show (label98);
  gtk_table_attach (GTK_TABLE (table11), label98, 0, 1, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label98), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label98), 0, 0.5);

  label97 = gtk_label_new (_("realm:"));
  gtk_widget_show (label97);
  gtk_table_attach (GTK_TABLE (table11), label97, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_EXPAND),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_justify (GTK_LABEL (label97), GTK_JUSTIFY_CENTER);
  gtk_misc_set_alignment (GTK_MISC (label97), 0, 0.5);

  dialog_action_area15 = GTK_DIALOG (authentication_dialog)->action_area;
  gtk_widget_show (dialog_action_area15);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area15), GTK_BUTTONBOX_END);

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

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

  g_signal_connect ((gpointer) authentication_dialog, "response",
                    G_CALLBACK (on_authentication_dialog_response),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (authentication_dialog, authentication_dialog, "authentication_dialog");
  GLADE_HOOKUP_OBJECT_NO_REF (authentication_dialog, dialog_vbox15, "dialog_vbox15");
  GLADE_HOOKUP_OBJECT (authentication_dialog, vbox26, "vbox26");
  GLADE_HOOKUP_OBJECT (authentication_dialog, hbox33, "hbox33");
  GLADE_HOOKUP_OBJECT (authentication_dialog, image26, "image26");
  GLADE_HOOKUP_OBJECT (authentication_dialog, question, "question");
  GLADE_HOOKUP_OBJECT (authentication_dialog, table11, "table11");
  GLADE_HOOKUP_OBJECT (authentication_dialog, realm, "realm");
  GLADE_HOOKUP_OBJECT (authentication_dialog, username, "username");
  GLADE_HOOKUP_OBJECT (authentication_dialog, passwd, "passwd");
  GLADE_HOOKUP_OBJECT (authentication_dialog, userid, "userid");
  GLADE_HOOKUP_OBJECT (authentication_dialog, label100, "label100");
  GLADE_HOOKUP_OBJECT (authentication_dialog, label99, "label99");
  GLADE_HOOKUP_OBJECT (authentication_dialog, label98, "label98");
  GLADE_HOOKUP_OBJECT (authentication_dialog, label97, "label97");
  GLADE_HOOKUP_OBJECT_NO_REF (authentication_dialog, dialog_action_area15, "dialog_action_area15");
  GLADE_HOOKUP_OBJECT (authentication_dialog, cancelbutton3, "cancelbutton3");
  GLADE_HOOKUP_OBJECT (authentication_dialog, okbutton4, "okbutton4");

  return authentication_dialog;
}

GtkWidget*
create_call_logs (void)
{
  GtkWidget *call_logs;
  GdkPixbuf *call_logs_icon_pixbuf;
  GtkWidget *dialog_vbox16;
  GtkWidget *scrolledwindow5;
  GtkWidget *logview;
  GtkWidget *dialog_action_area16;
  GtkWidget *closebutton2;

  call_logs = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (call_logs), _("Linphone - Call history"));
  gtk_window_set_default_size (GTK_WINDOW (call_logs), 240, 240);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (call_logs), TRUE);
  call_logs_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (call_logs_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (call_logs), call_logs_icon_pixbuf);
      gdk_pixbuf_unref (call_logs_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (call_logs), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox16 = GTK_DIALOG (call_logs)->vbox;
  gtk_widget_show (dialog_vbox16);

  scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow5);
  gtk_box_pack_start (GTK_BOX (dialog_vbox16), scrolledwindow5, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);

  logview = gtk_text_view_new ();
  gtk_widget_show (logview);
  gtk_container_add (GTK_CONTAINER (scrolledwindow5), logview);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (logview), FALSE);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (logview), FALSE);

  dialog_action_area16 = GTK_DIALOG (call_logs)->action_area;
  gtk_widget_show (dialog_action_area16);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area16), GTK_BUTTONBOX_END);

  closebutton2 = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (closebutton2);
  gtk_dialog_add_action_widget (GTK_DIALOG (call_logs), closebutton2, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (closebutton2, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) call_logs, "response",
                    G_CALLBACK (on_call_logs_response),
                    NULL);
  g_signal_connect ((gpointer) call_logs, "destroy",
                    G_CALLBACK (on_call_logs_destroy),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (call_logs, call_logs, "call_logs");
  GLADE_HOOKUP_OBJECT_NO_REF (call_logs, dialog_vbox16, "dialog_vbox16");
  GLADE_HOOKUP_OBJECT (call_logs, scrolledwindow5, "scrolledwindow5");
  GLADE_HOOKUP_OBJECT (call_logs, logview, "logview");
  GLADE_HOOKUP_OBJECT_NO_REF (call_logs, dialog_action_area16, "dialog_action_area16");
  GLADE_HOOKUP_OBJECT (call_logs, closebutton2, "closebutton2");

  return call_logs;
}

GtkWidget*
create_chatroom (void)
{
  GtkWidget *chatroom;
  GdkPixbuf *chatroom_icon_pixbuf;
  GtkWidget *vbox30;
  GtkWidget *scrolledwindow6;
  GtkWidget *chattext;
  GtkWidget *hbox35;
  GtkWidget *label107;
  GtkWidget *chatentry;
  GtkWidget *button17;

  chatroom = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_window_set_title (GTK_WINDOW (chatroom), _("Chat Room"));
  gtk_window_set_default_size (GTK_WINDOW (chatroom), 400, 400);
  gtk_window_set_destroy_with_parent (GTK_WINDOW (chatroom), TRUE);
  chatroom_icon_pixbuf = create_pixbuf ("linphone/linphone2.xpm");
  if (chatroom_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (chatroom), chatroom_icon_pixbuf);
      gdk_pixbuf_unref (chatroom_icon_pixbuf);
    }

  vbox30 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox30);
  gtk_container_add (GTK_CONTAINER (chatroom), vbox30);

  scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow6);
  gtk_box_pack_start (GTK_BOX (vbox30), scrolledwindow6, TRUE, TRUE, 0);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_SHADOW_IN);

  chattext = gtk_text_view_new ();
  gtk_widget_show (chattext);
  gtk_container_add (GTK_CONTAINER (scrolledwindow6), chattext);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (chattext), FALSE);

  hbox35 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox35);
  gtk_box_pack_start (GTK_BOX (vbox30), hbox35, FALSE, TRUE, 0);

  label107 = gtk_label_new (_("Text:"));
  gtk_widget_show (label107);
  gtk_box_pack_start (GTK_BOX (hbox35), label107, FALSE, FALSE, 0);

  chatentry = gtk_entry_new ();
  gtk_widget_show (chatentry);
  gtk_box_pack_start (GTK_BOX (hbox35), chatentry, TRUE, TRUE, 0);

  button17 = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (button17);
  gtk_box_pack_start (GTK_BOX (vbox30), button17, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) chatroom, "destroy",
                    G_CALLBACK (on_chatroom_destroy),
                    NULL);
  g_signal_connect ((gpointer) chatentry, "activate",
                    G_CALLBACK (on_chatentry_activate),
                    NULL);
  g_signal_connect ((gpointer) button17, "clicked",
                    G_CALLBACK (on_chatbox_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (chatroom, chatroom, "chatroom");
  GLADE_HOOKUP_OBJECT (chatroom, vbox30, "vbox30");
  GLADE_HOOKUP_OBJECT (chatroom, scrolledwindow6, "scrolledwindow6");
  GLADE_HOOKUP_OBJECT (chatroom, chattext, "chattext");
  GLADE_HOOKUP_OBJECT (chatroom, hbox35, "hbox35");
  GLADE_HOOKUP_OBJECT (chatroom, label107, "label107");
  GLADE_HOOKUP_OBJECT (chatroom, chatentry, "chatentry");
  GLADE_HOOKUP_OBJECT (chatroom, button17, "button17");

  gtk_widget_grab_focus (chatentry);
  return chatroom;
}


Generated by  Doxygen 1.6.0   Back to index