]> www.fi.muni.cz Git - evince.git/blobdiff - previewer/ev-previewer-window.c
[l10n]Fixes on Catalan translation
[evince.git] / previewer / ev-previewer-window.c
index 91e25a8a16800efa70a913d354b221874ddc9d9d..734941edc99679924d40fd0b3202a2402f80e762 100644 (file)
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #include <config.h>
@@ -96,6 +96,13 @@ ev_previewer_window_error_dialog_run (EvPreviewerWindow *window,
 }
 #endif
 
+static void
+ev_previewer_window_close (GtkAction         *action,
+                          EvPreviewerWindow *window)
+{
+       gtk_widget_destroy (GTK_WIDGET (window));
+}
+
 static void
 ev_previewer_window_previous_page (GtkAction         *action,
                                   EvPreviewerWindow *window)
@@ -271,6 +278,9 @@ ev_previewer_window_print (GtkAction         *action,
 #endif
 
 static const GtkActionEntry action_entries[] = {
+       { "FileCloseWindow", GTK_STOCK_CLOSE, NULL, "<control>W",
+         NULL,
+         G_CALLBACK (ev_previewer_window_close) },
        { "GoPreviousPage", GTK_STOCK_GO_UP, N_("_Previous Page"), "<control>Page_Up",
           N_("Go to the previous page"),
           G_CALLBACK (ev_previewer_window_previous_page) },
@@ -477,7 +487,7 @@ data_dir (void)
        datadir = g_build_filename (dir, "share", "evince", NULL);
        g_free (dir);
 #else
-       datadir = g_strdup (DATADIR);
+       datadir = g_strdup (EVINCEDATADIR);
 #endif
 
        return datadir;