Changeset 294

Show
Ignore:
Timestamp:
11/14/07 11:44:44 (10 months ago)
Author:
jordi
Message:

Based on a patch by Valery Koval <Valery.Koval@innovinn.com> I've made that pressing Control+ and Control- from the numeric keypad also works to zoom in and out respectively.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/data/epdfview-ui.xml

    r277 r294  
    5959 
    6060  <accelerator name="SlashAccelerator" action="Slash"/> 
     61  <accelerator name="KPAddAccelerator" action="KPAdd"/> 
     62  <accelerator name="KPSubtractAccelerator" action="KPSubtract"/> 
    6163</ui> 
  • trunk/src/gtk/MainView.cxx

    r293 r294  
    160160    // Accelerator keys. 
    161161    { "Slash", GTK_STOCK_FIND, NULL, "slash", NULL, 
    162       G_CALLBACK (main_window_find_cb) } 
     162      G_CALLBACK (main_window_find_cb) }, 
     163 
     164    { "KPAdd", GTK_STOCK_ZOOM_IN, NULL, "<control>KP_Add", NULL, 
     165      G_CALLBACK (main_window_zoom_in_cb) }, 
     166 
     167    { "KPSubtract", GTK_STOCK_ZOOM_OUT, NULL, "<control>KP_Subtract", 
     168      NULL, 
     169      G_CALLBACK (main_window_zoom_out_cb) } 
    163170}; 
    164171