Changeset 26 for trunk/tests/DumbMainView.cxx
- Timestamp:
- 04/11/06 11:40:45 (3 years ago)
- Files:
-
- 1 modified
-
trunk/tests/DumbMainView.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/DumbMainView.cxx
r25 r26 40 40 m_SensitiveZoomWidth = TRUE; 41 41 m_Shown = FALSE; 42 m_ShownError = FALSE; 42 43 m_Title = g_strdup (""); 43 44 } … … 116 117 117 118 void 119 DumbMainView::showErrorMessage (const gchar *title, const gchar *body) 120 { 121 m_ShownError = TRUE; 122 } 123 124 void 118 125 DumbMainView::showPage (DocumentPage *page) 119 126 { … … 136 143 DumbMainView::hasImagePageView () 137 144 { 138 return NULL != m_DocumentPage; 145 gboolean shown = (NULL != m_DocumentPage); 146 // The next time, it will be FALSE unless it's shown again. 147 m_DocumentPage = NULL; 148 149 return shown; 139 150 } 140 151 … … 215 226 } 216 227 } 228 229 gboolean 230 DumbMainView::shownError () 231 { 232 gboolean shown = m_ShownError; 233 // It's like the user clicked the "OK" button. No shown anymore, until 234 // the next error. 235 m_ShownError = FALSE; 236 237 return shown; 238 }
