Changeset 64 for trunk/src/gtk/MainView.cxx
- Timestamp:
- 04/14/06 15:05:24 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/gtk/MainView.cxx (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gtk/MainView.cxx
r57 r64 41 41 static void main_window_go_to_page_cb (GtkWidget *, gpointer); 42 42 static void main_window_go_to_previous_page_cb (GtkWidget *, gpointer); 43 static void main_window_rotate_left (GtkWidget *, gpointer); 44 static void main_window_rotate_right (GtkWidget *, gpointer); 43 static void main_window_reload_cb (GtkWidget *, gpointer); 44 static void main_window_rotate_left_cb (GtkWidget *, gpointer); 45 static void main_window_rotate_right_cb (GtkWidget *, gpointer); 45 46 static void main_window_open_file_cb (GtkWidget *, gpointer); 46 47 static void main_window_quit_cb (GtkWidget *, gpointer); … … 60 61 { "OpenFile", GTK_STOCK_OPEN, N_("_Open"), "<control>O", 61 62 N_("Open a PDF document"), 62 G_CALLBACK (main_window_open_file_cb) }, 63 G_CALLBACK (main_window_open_file_cb) }, 64 65 { "ReloadFile", GTK_STOCK_REFRESH, N_("_Reload"), "<control>R", 66 N_("Reload the current document"), 67 G_CALLBACK (main_window_reload_cb) }, 63 68 64 69 { "Quit", GTK_STOCK_CLOSE, N_("_Close"), "<control>W", … … 84 89 { "RotateRight", EPDFVIEW_STOCK_ROTATE_RIGHT, N_("Rotate _Right"), NULL, 85 90 N_("Rotate the document 90 degrees clockwise"), 86 G_CALLBACK (main_window_rotate_right ) },91 G_CALLBACK (main_window_rotate_right_cb) }, 87 92 88 93 { "RotateLeft", EPDFVIEW_STOCK_ROTATE_LEFT, N_("Rotate _Left"), NULL, 89 94 N_("Rotate the document 90 degrees counter-clockwise"), 90 G_CALLBACK (main_window_rotate_left ) },95 G_CALLBACK (main_window_rotate_left_cb) }, 91 96 92 97 { "GoToFirstPage", GTK_STOCK_GOTO_FIRST, N_("_First Page"), "<control>Home", … … 274 279 275 280 void 281 MainView::sensitiveReload (gboolean sensitive) 282 { 283 GtkAction *reload = 284 gtk_ui_manager_get_action (m_UIManager, "/MenuBar/FileMenu/ReloadFile"); 285 gtk_action_set_sensitive (reload, sensitive); 286 } 287 288 void 276 289 MainView::sensitiveRotateLeft (gboolean sensitive) 277 290 { … … 629 642 630 643 /// 644 /// @brief The user tried to reload the current document. 645 /// 646 void 647 main_window_reload_cb (GtkWidget *widget, gpointer data) 648 { 649 g_assert ( NULL != data && "The data parameter is NULL."); 650 651 MainPter *pter = (MainPter *)data; 652 pter->reloadActivated (); 653 } 654 655 /// 631 656 /// @brief The user tried to rotate the document counter-clockwise. 632 657 /// 633 658 void 634 main_window_rotate_left (GtkWidget *widget, gpointer data)659 main_window_rotate_left_cb (GtkWidget *widget, gpointer data) 635 660 { 636 661 g_assert ( NULL != data && "The data parameter is NULL."); … … 644 669 /// 645 670 void 646 main_window_rotate_right (GtkWidget *widget, gpointer data)671 main_window_rotate_right_cb (GtkWidget *widget, gpointer data) 647 672 { 648 673 g_assert ( NULL != data && "The data parameter is NULL.");
