Changeset e056a898bf91e96d0aaf2289e858bb5953fcde1c
- Timestamp:
- 12/11/09 20:48:02 (3 years ago)
- Author:
- Benjamin Herr <ben@…>
- git-author:
- Benjamin Herr <ben@0x539.de> / 2009-12-11T20:47:31Z+0100
- Parents:
- c5cb29d4d328f0f803f3bcbd5a65fc89ed548ddd
- Children:
- ebdf1bb92e95822954357f05e4f10674f3189109
- git-committer:
- Benjamin Herr <ben@0x539.de> / 2009-12-11T20:48:02Z+0100
- Message:
-
Removed superfluous code, added some padding to password dialog.
- Location:
- code
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rc5cb29d
|
re056a89
|
|
| 32 | 32 | #endif |
| 33 | 33 | |
| 34 | | namespace |
| 35 | | { |
| 36 | | Glib::ustring prompt_password(Gtk::Window& parent, |
| 37 | | Gsasl_session* session) |
| 38 | | { |
| 39 | | InfXmppConnection* xmpp = |
| 40 | | INF_XMPP_CONNECTION(gsasl_session_hook_get(session)); |
| 41 | | gchar* remote_id; |
| 42 | | g_object_get(G_OBJECT(xmpp), "remote-id", &remote_id, NULL); |
| 43 | | Glib::ustring remote_id_(remote_id); |
| 44 | | g_free(remote_id); |
| 45 | | Gobby::PasswordDialog dialog(parent, remote_id_); |
| 46 | | dialog.add_button(Gtk::Stock::OK, Gtk::RESPONSE_ACCEPT); |
| 47 | | dialog.add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); |
| 48 | | if(dialog.run() != Gtk::RESPONSE_ACCEPT) |
| 49 | | return ""; |
| 50 | | return dialog.get_password(); |
| 51 | | } |
| 52 | | } |
| 53 | | |
| 54 | 34 | gint compare_func(GtkTreeModel* model, GtkTreeIter* first, GtkTreeIter* second, gpointer user_data) |
| 55 | 35 | { |
-
|
rc5cb29d
|
re056a89
|
|
| 25 | 25 | const Glib::ustring& remote_id): |
| 26 | 26 | Gtk::Dialog(_("Password required"), parent), m_box(false, 6), |
| | 27 | m_rightbox(false, 16), |
| | 28 | m_promptbox(false, 8), |
| 27 | 29 | m_image(Gtk::Stock::DIALOG_AUTHENTICATION, Gtk::ICON_SIZE_DIALOG), |
| 28 | 30 | m_intro_label(Glib::ustring::compose( |