diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-10 10:04:57 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-05-10 10:04:57 +0000 |
commit | 11bcca81a4a11946602c73266f6c09f2ff26f0b2 (patch) | |
tree | f666a9efeec9be987df3353bec1c9cf50a46b00e /crashrep/source/unx/interface.cxx | |
parent | 09d9ef032d2d895d7dcf9791cf26479f72d087f7 (diff) |
INTEGRATION: CWS crashreport01 (1.3.8); FILE MERGED
2004/04/16 13:59:13 hro 1.3.8.2: #110526# Read configuration from environment
2004/03/17 13:19:22 hro 1.3.8.1: #110526# Enable UI less crash reporting
Diffstat (limited to 'crashrep/source/unx/interface.cxx')
-rwxr-xr-x | crashrep/source/unx/interface.cxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/crashrep/source/unx/interface.cxx b/crashrep/source/unx/interface.cxx index 61873e09f6af..0dc0d72e6add 100755 --- a/crashrep/source/unx/interface.cxx +++ b/crashrep/source/unx/interface.cxx @@ -2,9 +2,9 @@ * * $RCSfile: interface.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: vg $ $Date: 2003-12-17 19:27:23 $ + * last change: $Author: hr $ $Date: 2004-05-10 11:04:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -236,7 +236,7 @@ gint WizardDialog::button_clicked( GtkWidget* pButton, WizardDialog* pThis ) if( pThis->m_nCurrentPage != -1 ) pThis->m_aPages[pThis->m_nCurrentPage]->update(); - if( send_crash_report( *pThis, pThis->getSettings() ) ) + if( send_crash_report( pThis, pThis->getSettings() ) ) gtk_main_quit(); } @@ -353,6 +353,11 @@ MainPage::MainPage( WizardDialog* pParent ) : WizardPage( pParent ) gtk_label_set_mnemonic_widget( GTK_LABEL(m_pEditLabel), m_pEdit ); + hash_map<string, string>::iterator aIter; + aIter = rSettings.find( "TITLE" ); + if( aIter != rSettings.end() ) + gtk_entry_set_text( GTK_ENTRY(m_pEdit), aIter->second.c_str() ); + m_pEntryVBox = gtk_vbox_new( FALSE, 5 ); gtk_widget_show( m_pEntryVBox ); gtk_box_pack_start( GTK_BOX(m_pLeftColumn), m_pEntryVBox, TRUE, TRUE, 0 ); @@ -373,6 +378,14 @@ MainPage::MainPage( WizardDialog* pParent ) : WizardPage( pParent ) gtk_text_view_set_wrap_mode( GTK_TEXT_VIEW(m_pEntry), GTK_WRAP_WORD ); gtk_container_add( GTK_CONTAINER(m_pScrolledEntry), m_pEntry ); + aIter = rSettings.find( "DESCRIPTION" ); + if( aIter != rSettings.end() ) + { + GtkTextBuffer* pBuffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(m_pEntry) ); + gtk_text_buffer_set_text( pBuffer, aIter->second.c_str(), -1 ); + } + + gtk_label_set_mnemonic_widget( GTK_LABEL(m_pEntryLabel), m_pEntry ); m_pDetails = gtk_button_new_with_mnemonic( StringResource::get( "%SHOW_REPORT_BUTTON%" ) ); @@ -404,7 +417,6 @@ MainPage::MainPage( WizardDialog* pParent ) : WizardPage( pParent ) //gtk_box_pack_start( GTK_BOX(m_pPageContents), m_pCheck, FALSE, FALSE, 5 ); gtk_box_pack_start( GTK_BOX(m_pLeftColumn), m_pCheck, FALSE, FALSE, 5 ); - hash_map<string, string>::iterator aIter; aIter = rSettings.find( "CONTACT" ); if( aIter != rSettings.end() ) { |