Changeset 40

Show
Ignore:
Timestamp:
04/12/06 10:36:54 (3 years ago)
Author:
jordi
Message:

Added the stock icon for the zoom to page (from the Gnome Icon Theme) and the icons for the rotate right and left (from the Gimp's libgimpwidget library).

Location:
trunk
Files:
7 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.am

    r3 r40  
    11# Process this file with automake to produce a Makefile.in file. 
    2 SUBDIRS = intl po m4 src doc 
     2SUBDIRS = data intl po m4 src doc 
    33if build_tests 
    44SUBDIRS += tests 
  • trunk/configure.ac

    r32 r40  
    4444AC_CONFIG_FILES([   \ 
    4545Makefile    \ 
     46data/Makefile   \ 
    4647m4/Makefile \ 
    4748intl/Makefile   \ 
  • trunk/src/gtk/MainView.cxx

    r39 r40  
    1515// along with this program; if not, write to the Free Software 
    1616// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
     17 
    1718#include <string.h> 
    1819#include <gettext.h> 
     
    2122#include <MainPter.h> 
    2223#include <DocumentPage.h> 
     24#include "StockIcons.h" 
    2325#include "MainView.h" 
    2426 
     
    5052    IMainView (pter) 
    5153{ 
     54    // Initialize the stock items. 
     55    epdfview_stock_icons_init (); 
     56    // Create the main window. 
    5257    m_MainWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); 
    5358    // Connect already the destroy signal. 
     
    313318        { "ZoomOut", GTK_STOCK_ZOOM_OUT, _("Zoom _Out"), "minus", NULL, G_CALLBACK (main_window_zoom_out_cb) }, 
    314319        { "ZoomFit", GTK_STOCK_ZOOM_FIT, _("Zoom to _Fit"), NULL, NULL, G_CALLBACK (main_window_zoom_fit_cb) }, 
    315         { "ZoomWidth", NULL, _("Zoom to _Width"), NULL, NULL, G_CALLBACK (main_window_zoom_width_cb) }, 
    316         { "RotateRight", GTK_STOCK_REDO, _("Rotate _Right"), NULL, NULL, G_CALLBACK (main_window_rotate_right)}, 
    317         { "RotateLeft", GTK_STOCK_UNDO, _("Rotate Left"), NULL, NULL, G_CALLBACK (main_window_rotate_left)}, 
     320        { "ZoomWidth", EPDFVIEW_STOCK_ZOOM_WIDTH, _("Zoom to _Width"), NULL, NULL, G_CALLBACK (main_window_zoom_width_cb) }, 
     321        { "RotateRight", EPDFVIEW_STOCK_ROTATE_RIGHT, _("Rotate _Right"), NULL, NULL, G_CALLBACK (main_window_rotate_right)}, 
     322        { "RotateLeft", EPDFVIEW_STOCK_ROTATE_LEFT, _("Rotate _Left"), NULL, NULL, G_CALLBACK (main_window_rotate_left)}, 
    318323        { "GoToFirstPage", GTK_STOCK_GOTO_FIRST, _("_First Page"), "Home", NULL, G_CALLBACK (main_window_go_to_first_page_cb) }, 
    319324        { "GoToNextPage", GTK_STOCK_GO_FORWARD, _("_Next Page"), "Page_Down", NULL, G_CALLBACK (main_window_go_to_next_page_cb) }, 
  • trunk/src/gtk/Makefile.am

    r33 r40  
    33libshell_gtk_a_SOURCES =    \ 
    44    MainView.cxx    \ 
    5     MainView.h 
     5    MainView.h      \ 
     6    StockIcons.cxx  \ 
     7    StockIcons.h 
    68 
    79libshell_gtk_a_CXXFLAGS =   \ 
     10    -DDATADIR='"$(datadir)"'    \ 
    811    -I$(top_srcdir)/src \ 
    912    $(GTK2_CFLAGS)