Changeset 45 for trunk/src/gtk/MainView.cxx
- Timestamp:
- 04/12/06 16:17:43 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/gtk/MainView.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gtk/MainView.cxx
r44 r45 31 31 // Constants. 32 32 static gint CURRENT_PAGE_POS = 5; 33 static gint PAGE_VIEW_PADDING = 12; 34 static gint SCROLLBARS_SIZE = 20; 33 35 34 36 // Forward delarations. … … 370 372 g_assert (NULL != width && "Tried to save the width to a NULL pointer."); 371 373 g_assert (NULL != height && "Tried to save the height to a NULL pointer."); 372 373 *width = m_PageView->allocation.width - 12; 374 *height = m_PageViewScroll->allocation.height - 12; 374 375 gint scrollSize = SCROLLBARS_SIZE + PAGE_VIEW_PADDING * 2; 376 *width = m_PageViewScroll->allocation.width - scrollSize; 377 *height = m_PageViewScroll->allocation.height - scrollSize; 375 378 } 376 379 … … 420 423 GTK_POLICY_AUTOMATIC); 421 424 m_PageView = gtk_image_new (); 425 gtk_misc_set_padding (GTK_MISC (m_PageView), 426 PAGE_VIEW_PADDING, PAGE_VIEW_PADDING); 422 427 gtk_scrolled_window_add_with_viewport ( 423 428 GTK_SCROLLED_WINDOW (m_PageViewScroll), m_PageView); … … 431 436 { 432 437 GtkActionGroup *actionGroup = gtk_action_group_new ("ePDFView"); 438 // Set the translation domain for labels and tooltips. 439 gtk_action_group_set_translation_domain (actionGroup, PACKAGE); 433 440 // The data passed to all actions is the presenter 434 441 gtk_action_group_add_actions (actionGroup, g_NormalEntries,
