]> www.fi.muni.cz Git - evince.git/commitdiff
constify some vars. ditto.
authorPaolo Borelli <pborelli@katamail.com>
Mon, 18 Apr 2005 14:45:18 +0000 (14:45 +0000)
committerPaolo Borelli <pborelli@src.gnome.org>
Mon, 18 Apr 2005 14:45:18 +0000 (14:45 +0000)
2005-04-18  Paolo Borelli  <pborelli@katamail.com>

* shell/ev-stock-icons.c: constify some vars.
* shell/ev-window.c: ditto.

ChangeLog
shell/ev-stock-icons.c
shell/ev-window.c

index 7e829279a8148b9d1dd14702754cbd107faf1817..fd2a33f49d1f44df7761930e326ea080b3296a13 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
-2005-04-18  Marco Pesenti Gritti <mpg@redhat.com>
+2005-04-18  Paolo Borelli  <pborelli@katamail.com>
 
-       * ps/ps-document.c: (get_page_orientation):
-
-       Respect document orientation
+       * shell/ev-stock-icons.c: constify some vars.
+       * shell/ev-window.c: ditto.
 
 2005-04-17  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
 
index f60697d1061fe293d75f9d4ae50613bfec74685b..2dc9a8857f471971e4a56fdcf2de0b251e58a76e 100644 (file)
@@ -35,7 +35,7 @@ typedef struct {
 } EvStockIcon;
 
 /* Evince stock icons from gnome-icon-theme */
-static EvStockIcon stock_icons [] = {
+static const EvStockIcon stock_icons [] = {
        { EV_STOCK_ZOOM_PAGE,        "stock_zoom-page" },
        { EV_STOCK_ZOOM_WIDTH,       "stock_zoom-page-width" },
        { EV_STOCK_LEAVE_FULLSCREEN, "stock_leave-fullscreen" }
index ec17680d18e50ec0c3e12cf8badbc2aec369f759..ed21fffc0b85a069ee46665af43fe11532bee40e 100644 (file)
@@ -135,7 +135,7 @@ struct _EvWindowPrivate {
        EggRecentViewGtk *recent_view;
 };
 
-static GtkTargetEntry ev_drop_types[] = {
+static const GtkTargetEntry ev_drop_types[] = {
        { "text/uri-list", 0, 0 }
 };
 
@@ -712,7 +712,7 @@ start_loading_document (EvWindow   *ev_window,
 static gboolean
 is_file_supported (const gchar *mime_type)
 {
-       static char *supported_types [] = {
+       static const char * const supported_types [] = {
                "application/pdf",
                "application/postscript",
                "application/x-dvi",
@@ -722,7 +722,7 @@ is_file_supported (const gchar *mime_type)
                NULL
        };
        gint   i;
-       
+
        g_return_val_if_fail (mime_type != NULL, FALSE);
 
        if (mime_type_supported_by_gdk_pixbuf (mime_type))
@@ -2094,7 +2094,7 @@ ev_window_class_init (EvWindowClass *ev_window_class)
 }
 
 /* Normal items */
-static GtkActionEntry entries[] = {
+static const GtkActionEntry entries[] = {
        { "File", NULL, N_("_File") },
         { "Edit", NULL, N_("_Edit") },
        { "View", NULL, N_("_View") },
@@ -2176,7 +2176,7 @@ static GtkActionEntry entries[] = {
 };
 
 /* Toggle items */
-static GtkToggleActionEntry toggle_entries[] = {
+static const GtkToggleActionEntry toggle_entries[] = {
        /* View Menu */
        { "ViewToolbar", NULL, N_("_Toolbar"), "<shift><control>T",
          N_("Show or hide the toolbar"),
@@ -2198,7 +2198,7 @@ static GtkToggleActionEntry toggle_entries[] = {
           G_CALLBACK (ev_window_cmd_view_page_width) },
 };
 
-static GtkRadioActionEntry page_view_entries[] = {
+static const GtkRadioActionEntry page_view_entries[] = {
        { "SinglePage", GTK_STOCK_DND, N_("Single"), NULL,
          N_("Show the document one page at a time"),
          PAGE_MODE_SINGLE_PAGE },