~ubuntu-branches/ubuntu/karmic/vmware-view-open-client/karmic

« back to all changes in this revision

Viewing changes to loginDlg.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-04-17 20:43:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090417204300-kfj5m144zva0gbgc
Tags: 3.1.0-160969+dfsg-1
* Merging upstream version 3.1.0-160969+dfsg.
* Upgrading package to standards 3.8.1.
* Adding build-depends to intltool.
* Adding build-depends to libicu.
* Rediffing doc-pdf.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 */
30
30
 
31
31
 
 
32
#include <glib/gi18n.h>
 
33
 
 
34
 
32
35
#include "loginDlg.hh"
33
36
#include "util.hh"
34
37
 
59
62
     mUsername(GTK_ENTRY(gtk_entry_new())),
60
63
     mPasswd(GTK_ENTRY(gtk_entry_new())),
61
64
     mDomain(GTK_COMBO_BOX(gtk_combo_box_new_text())),
62
 
     mLogin(Util::CreateButton(GTK_STOCK_OK,
63
 
                               CDK_MSG(login, "_Login").c_str()))
 
65
     mLogin(Util::CreateButton(GTK_STOCK_OK, _("_Login")))
64
66
{
65
67
   GtkLabel *l;
66
68
 
69
71
   gtk_table_set_row_spacings(mTable, VM_SPACING);
70
72
   gtk_table_set_col_spacings(mTable, VM_SPACING);
71
73
 
72
 
   l = GTK_LABEL(gtk_label_new_with_mnemonic(
73
 
      CDK_MSG(username, "_Username:").c_str()));
 
74
   l = GTK_LABEL(gtk_label_new_with_mnemonic(_("_Username:")));
74
75
   gtk_widget_show(GTK_WIDGET(l));
75
76
   gtk_table_attach(mTable, GTK_WIDGET(l), 0, 1, 0, 1, GTK_FILL, GTK_FILL,
76
77
                    0, 0);
82
83
   gtk_entry_set_activates_default(mUsername, true);
83
84
   AddRequiredEntry(mUsername);
84
85
 
85
 
   l = GTK_LABEL(gtk_label_new_with_mnemonic(
86
 
      CDK_MSG(password, "_Password:").c_str()));
 
86
   l = GTK_LABEL(gtk_label_new_with_mnemonic(_("_Password:")));
87
87
   gtk_widget_show(GTK_WIDGET(l));
88
88
   gtk_table_attach(mTable, GTK_WIDGET(l), 0, 1, 1, 2, GTK_FILL, GTK_FILL,
89
89
                    0, 0);
97
97
   gtk_entry_set_activates_default(mPasswd, true);
98
98
   AddRequiredEntry(mPasswd);
99
99
 
100
 
   l = GTK_LABEL(gtk_label_new_with_mnemonic(
101
 
      CDK_MSG(domain, "_Domain:").c_str()));
 
100
   l = GTK_LABEL(gtk_label_new_with_mnemonic(_("_Domain:")));
102
101
   gtk_widget_show(GTK_WIDGET(l));
103
102
   gtk_table_attach(mTable, GTK_WIDGET(l), 0, 1, 2, 3, GTK_FILL, GTK_FILL,
104
103
                    0, 0);
115
114
   g_signal_connect(G_OBJECT(mLogin), "clicked",
116
115
                    G_CALLBACK(&LoginDlg::OnLogin), this);
117
116
 
 
117
   GtkButton *help = GetHelpButton();
 
118
 
118
119
   GtkWidget *actionArea = Util::CreateActionArea(mLogin, GetCancelButton(),
119
 
                                                  NULL);
 
120
                                                  help, NULL);
120
121
   gtk_widget_show(actionArea);
121
122
   gtk_table_attach_defaults(mTable, GTK_WIDGET(actionArea), 0, 2, 3, 4);
 
123
   gtk_button_box_set_child_secondary(GTK_BUTTON_BOX(actionArea),
 
124
                                      GTK_WIDGET(help), true);
122
125
 
123
126
   UpdateForwardButton(this);
124
127
}