Mark zathura->global.page_padding as deprecated.

This commit is contained in:
Sebastian Ramacher 2012-03-16 15:56:37 +01:00
parent 9fe03f72e2
commit 75b7ce0bc9
3 changed files with 14 additions and 5 deletions

View file

@ -147,7 +147,7 @@ endif
install-headers: ${PROJECT}.pc
$(ECHO) installing header files
$(QUIET)mkdir -p ${DESTDIR}${INCLUDEDIR}/${PROJECT}
$(QUIET)install -m 644 zathura.h document.h version.h ${DESTDIR}${INCLUDEDIR}/${PROJECT}
$(QUIET)install -m 644 zathura.h document.h version.h macros.h ${DESTDIR}${INCLUDEDIR}/${PROJECT}
$(ECHO) installing pkgconfig file
$(QUIET)mkdir -p ${DESTDIR}${LIBDIR}/pkgconfig
$(QUIET)install -m 644 ${PROJECT}.pc ${DESTDIR}${LIBDIR}/pkgconfig

11
macros.h Normal file
View file

@ -0,0 +1,11 @@
/* See LICENSE file for license and copyright information */
#ifndef ZATHURA_MACROS_H
#define ZATHURA_MACROS_H
#include <girara/macros.h>
#define UNUSED(x) GIRARA_UNUSED(x)
#define DEPRECATED(x) GIRARA_DEPRECATED(x)
#endif

View file

@ -5,10 +5,8 @@
#include <stdbool.h>
#include <girara/types.h>
#include <girara/macros.h>
#include <gtk/gtk.h>
#define UNUSED(x) GIRARA_UNUSED(x)
#include "macros.h"
enum { NEXT, PREVIOUS, LEFT, RIGHT, UP, DOWN, BOTTOM, TOP, HIDE, HIGHLIGHT,
DELETE_LAST_WORD, DELETE_LAST_CHAR, DEFAULT, ERROR, WARNING, NEXT_GROUP,
@ -84,7 +82,7 @@ typedef struct zathura_s
struct
{
unsigned int page_padding; /**< Padding between the pages */
unsigned int DEPRECATED(page_padding); /**< Padding between the pages */
bool recolor; /**< Recoloring mode switch */
bool update_page_number; /**< Update current page number */
} global;