Skip to content

Commit

Permalink
Bump pqiv version to 2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipberndt committed Feb 25, 2017
1 parent b63f7c4 commit c603edb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,19 @@ endif
ifeq ($(GTK_VERSION), 0)
ifeq ($(shell $(PKG_CONFIG) --errors-to-stdout --print-errors "$(LIBS_GTK3)"), )
LIBS=$(LIBS_GTK3)
GDK_LIB=gdk-3.0
else
LIBS=$(LIBS_GTK2)
GDK_LIB=gdk-2.0
endif
endif
ifeq ($(GTK_VERSION), 2)
LIBS=$(LIBS_GTK2)
GDK_LIB=gdk-2.0
endif
ifeq ($(GTK_VERSION), 3)
LIBS=$(LIBS_GTK3)
GDK_LIB=gdk-3.0
endif
LIBS+=$(LIBS_GENERAL)

Expand All @@ -92,7 +96,7 @@ else
endif

# We need X11 to workaround a bug, see http://stackoverflow.com/questions/18647475
ifeq ($(filter x11, $(shell pkg-config --print-requires-private gdk-2.0)), x11)
ifeq ($(filter x11, $(shell pkg-config --errors-to-stdout --print-requires-private $(GDK_LIB))), x11)
LIBS+=x11
endif

Expand Down Expand Up @@ -203,7 +207,7 @@ pqiv.desktop: $(HEADERS)
echo "[Desktop Entry]"; \
echo "Version=1.0"; \
echo "Type=Application"; \
echo "Comment=Simple image viewer"; \
echo "Comment=Powerful quick image viewer"; \
echo "Name=pqiv"; \
echo "NoDisplay=true"; \
echo "Icon=emblem-photos"; \
Expand Down
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Known bugs
Changelog
---------

pqiv 2.8 (WIP)
pqiv 2.8
* Added option --allow-empty-window: Show pqiv even if no images can be loaded
* Explicitly allow to load all files from a directory multiple times
* Allow to use --libdir option in configure to override .so-files location
Expand Down
4 changes: 2 additions & 2 deletions pqiv.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" vim:filetype=groff
.TH pqiv 1 "January 2017" "2.7"
.TH pqiv 1 "February 2017" "2.8"
.SH NAME
pqiv \- quick image viewer
pqiv \- powerful quick image viewer
.\"
.SH SYNOPSIS
\fBpqiv\fR [options] [filename(s)...]
Expand Down
6 changes: 3 additions & 3 deletions pqiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ void parse_configuration_file() {/*{{{*/
}/*}}}*/
void parse_command_line() {/*{{{*/
GOptionContext *parser = g_option_context_new("FILES");
g_option_context_set_summary(parser, "A minimalist image viewer\npqiv version " PQIV_VERSION PQIV_VERSION_DEBUG " by Phillip Berndt");
g_option_context_set_summary(parser, "Powerful quick image viewer\npqiv version " PQIV_VERSION PQIV_VERSION_DEBUG " by Phillip Berndt");
g_option_context_set_help_enabled(parser, TRUE);
g_option_context_set_ignore_unknown_options(parser, FALSE);
g_option_context_add_main_entries(parser, options, NULL);
Expand Down Expand Up @@ -1888,8 +1888,8 @@ GInputStream *image_loader_stream_file(file_t *file, GError **error_pointer) {/*
data = g_memory_input_stream_new_from_bytes(bytes_source);
#else
gsize size = 0;
gpointer *data = g_memdup(g_bytes_get_data(bytes_source, &size), size);
data = g_memory_input_stream_new_from_data(data, size, g_free);
gpointer *mem_data = g_memdup(g_bytes_get_data(bytes_source, &size), size);
data = g_memory_input_stream_new_from_data(mem_data, size, g_free);
#endif

g_bytes_unref(bytes_source);
Expand Down
2 changes: 1 addition & 1 deletion pqiv.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "lib/bostree.h"

#ifndef PQIV_VERSION
#define PQIV_VERSION "2.7.4"
#define PQIV_VERSION "2.8"
#endif

#define FILE_FLAGS_ANIMATION (guint)(1)
Expand Down

0 comments on commit c603edb

Please sign in to comment.