...
 
Commits (20)
env:
global:
- PACKAGE_NAME=<package_name>
before_install:
- export BUILD_VERSION=$(date "+%Y%m%d").$TRAVIS_BUILD_NUMBER
- export PACKAGE_NAME_VERSION=$PACKAGE_NAME.$BUILD_VERSION.deb
script:
- dpkg-deb --build $PACKAGE_NAME
- mv $PACKAGE_NAME.deb $PACKAGE_NAME_VERSION
after_success:
- ls -l $PACKAGE_NAME_VERSION
- md5sum $PACKAGE_NAME_VERSION
- dpkg --contents $PACKAGE_NAME_VERSION
# Todo
* fully remove tab in gsettings
* import tab from file
* export tab into file
* sync tab from file at opening & saving
* sync tab on file update
* add some editing options
* sync tab from file at opening & saving (waiting if needed ...)
* sync tab on file update (waiting if needed ...)
# Done
* Add & remove tab
* Saving title and content automaticly
* Edit tab title
* fully remove tab in gsettings
* add some editing options
* import tab from file
* export tab into file
AC_INIT([quickpad], [0.1.0], [Didier prolhac <dev@thepozer.net>])
AC_INIT([quickpad], [0.7.1], [Didier prolhac <dev@thepozer.net>])
AC_CONFIG_SRCDIR([src/quickpad_main.c])
AM_INIT_AUTOMAKE([-Wall foreign])
AM_SILENT_RULES([yes])
......@@ -11,7 +11,9 @@ IT_PROG_INTLTOOL([0.40])
GLIB_GSETTINGS
PKG_CHECK_MODULES([QUICKPAD], [glib-2.0 gtk+-3.0 gtksourceview-3.0 dconf], , exit)
PKG_CHECK_MODULES([GTK], [glib-2.0 gtk+-3.0], , exit)
PKG_CHECK_MODULES([SOURCEVIEW], [gtksourceview-3.0], , exit)
PKG_CHECK_MODULES([DCONF], [dconf], , exit)
# Needed by intltool
GETTEXT_PACKAGE=${PACKAGE_TARNAME}
......
......@@ -4,8 +4,8 @@ Encoding=UTF-8
Type=Application
_Name=QuickPad
_Comment=Quick note editor
Icon=accessories-text-editor
Icon=emblem-documents
Exec=quickpad
StartupNotify=false
Terminal=false
Categories=GTK;Development;Utility;Editor
Categories=GTK;Utility;Editor
quickpad for Debian
------------------
<possible notes regarding this package - if none, delete this file>
-- Didier Prolhac <dev@thepozer.net> Sun, 27 Jan 2019 02:28:23 +0100
quickpad for Debian
------------------
<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>
-- Didier Prolhac <dev@thepozer.net> Sun, 27 Jan 2019 02:28:23 +0100
quickpad (0.8.0-1) unstable; urgency=medium
* Initial release
-- Didier Prolhac <dev@thepozer.net> Sun, 27 Jan 2019 02:28:23 +0100
Source: quickpad
Section: unknown
Priority: optional
Maintainer: Didier Prolhac <dev@thepozer.net>
Build-Depends: debhelper (>= 11), autotools-dev
Standards-Version: 4.1.3
Homepage: <insert the upstream URL, if relevant>
Vcs-Browser: https://github.com/thepozer/quickpad
Vcs-Git: https://github.com/thepozer/quickpad.git
Package: quickpad
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Quick note editor
It is a tabbed editor to save text on long time without file (in gsettings).
Usefull to save temporary text along multiple working session for example.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: quickpad
Source: <url://example.com>
Files: *
Copyright: <years> <put author's name and email here>
<years> <likewise for another author>
License: <special license>
<Put the license of the package here indented by 1 space>
<This follows the format of Description: lines in control file>
.
<Including paragraphs>
# If you want to use GPL v2 or later for the /debian/* files use
# the following clauses, or change it to suit. Delete these two lines
Files: debian/*
Copyright: 2019 Didier Prolhac <dev@thepozer.net>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2019 Didier Prolhac <dev@thepozer.net>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH Quickpad SECTION "January 27 2019"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
quickpad \- program to do something
.SH SYNOPSIS
.B quickpad
.RI [ options ] " files" ...
.br
.B bar
.RI [ options ] " files" ...
.SH DESCRIPTION
This manual page documents briefly the
.B quickpad
and
.B bar
commands.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBquickpad\fP is a program that...
.SH OPTIONS
These programs follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
For a complete description, see the Info files.
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-v, \-\-version
Show version of program.
.SH SEE ALSO
.BR bar (1),
.BR baz (1).
.br
The programs are documented fully by
.IR "The Rise and Fall of a Fooish Bar" ,
available via the Info system.
<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!-- Process this file with docbook-to-man to generate an nroff manual
page: `docbook-to-man manpage.sgml > manpage.1'. You may view
the manual page with: `docbook-to-man manpage.sgml | nroff -man |
less'. A typical entry in a Makefile or Makefile.am is:
manpage.1: manpage.sgml
docbook-to-man $< > $@
The docbook-to-man binary is found in the docbook-to-man package.
Please remember that if you create the nroff version in one of the
debian/rules file targets (such as build), you will need to include
docbook-to-man in your Build-Depends control field.
-->
<!-- Fill in your name for FIRSTNAME and SURNAME. -->
<!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
<!ENTITY dhsurname "<surname>SURNAME</surname>">
<!-- Please adjust the date whenever revising the manpage. -->
<!ENTITY dhdate "<date>January 27 2019</date>">
<!-- SECTION should be 1-8, maybe w/ subsection other parameters are
allowed: see man(7), man(1). -->
<!ENTITY dhsection "<manvolnum>SECTION</manvolnum>">
<!ENTITY dhemail "<email>dev@thepozer.net</email>">
<!ENTITY dhusername "Didier Prolhac">
<!ENTITY dhucpackage "<refentrytitle>Quickpad</refentrytitle>">
<!ENTITY dhpackage "quickpad">
<!ENTITY debian "<productname>Debian</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
<!ENTITY gpl "&gnu; <acronym>GPL</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2003</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>program to do something</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><option>-e <replaceable>this</replaceable></option></arg>
<arg><option>--example <replaceable>that</replaceable></option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>This manual page documents briefly the
<command>&dhpackage;</command> and <command>bar</command>
commands.</para>
<para>This manual page was written for the &debian; distribution
because the original program does not have a manual page.
Instead, it has documentation in the &gnu;
<application>Info</application> format; see below.</para>
<para><command>&dhpackage;</command> is a program that...</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<para>These programs follow the usual &gnu; command line syntax,
with long options starting with two dashes (`-'). A summary of
options is included below. For a complete description, see the
<application>Info</application> files.</para>
<variablelist>
<varlistentry>
<term><option>-h</option>
<option>--help</option>
</term>
<listitem>
<para>Show summary of options.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option>
<option>--version</option>
</term>
<listitem>
<para>Show version of program.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>bar (1), baz (1).</para>
<para>The programs are documented fully by <citetitle>The Rise and
Fall of a Fooish Bar</citetitle> available via the
<application>Info</application> system.</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>This manual page was written by &dhusername; &dhemail; for
the &debian; system (and may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the &gnu; General Public License, Version 2 any
later version published by the Free Software Foundation.
</para>
<para>
On Debian systems, the complete text of the GNU General Public
License can be found in /usr/share/common-licenses/GPL.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
This diff is collapsed.
?package(quickpad):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\
title="quickpad" command="/usr/bin/quickpad"
#!/bin/sh
# postinst script for quickpad
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# postrm script for quickpad
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# preinst script for quickpad
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <new-preinst> `install'
# * <new-preinst> `install' <old-version>
# * <new-preinst> `upgrade' <old-version>
# * <old-preinst> `abort-upgrade' <new-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
install|upgrade)
;;
abort-upgrade)
;;
*)
echo "preinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# prerm script for quickpad
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
README.source
README.Debian
#
# Regular cron jobs for the quickpad package
#
0 4 * * * root [ -x /usr/bin/quickpad_maintenance ] && /usr/bin/quickpad_maintenance
Document: quickpad
Title: Debian quickpad Manual
Author: <insert document author here>
Abstract: This manual describes what quickpad is
and how it can be used to
manage online manuals on Debian systems.
Section: unknown
Format: debiandoc-sgml
Files: /usr/share/doc/quickpad/quickpad.sgml.gz
Format: postscript
Files: /usr/share/doc/quickpad/quickpad.ps.gz
Format: text
Files: /usr/share/doc/quickpad/quickpad.text.gz
Format: HTML
Index: /usr/share/doc/quickpad/html/index.html
Files: /usr/share/doc/quickpad/html/*.html
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 4 file
version=4
# PGP signature mangle, so foo.tar.gz has foo.tar.gz.sig
#opts="pgpsigurlmangle=s%$%.sig%"
# HTTP site (basic)
#http://example.com/downloads.html \
# files/quickpad-([\d\.]+)\.tar\.gz debian uupdate
# Uncomment to examine an FTP server
#ftp://ftp.example.com/pub/quickpad-(.*)\.tar\.gz debian uupdate
# SourceForge hosted projects
# http://sf.net/quickpad/ quickpad-(.*)\.tar\.gz debian uupdate
# GitHub hosted projects
#opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%<project>-$1.tar.gz%" \
# https://github.com/<user>/quickpad/tags \
# (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate
# PyPI
# https://pypi.debian.net/quickpad/quickpad-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
# Direct Git
# opts="mode=git" http://git.example.com/quickpad.git \
# refs/tags/v([\d\.]+) debian uupdate
# Uncomment to find new files on GooglePages
# http://example.googlepages.com/foo.html quickpad-(.*)\.tar\.gz
src/quickpad_main.c
src/quickpad_app.c
src/quickpad_window.c
src/quickpad.wnd-main.glade
data/quickpad.desktop.in
......@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gmysqlcc 0.5.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-01 10:48+0200\n"
"PO-Revision-Date: 2018-06-01 10:49+0200\n"
"POT-Creation-Date: 2018-06-17 00:27+0200\n"
"PO-Revision-Date: 2018-06-17 00:27+0200\n"
"Last-Translator: Didier Prolhac <dev@thepozer.net>\n"
"Language-Team: français <dev@thepozer.net>\n"
"Language: en\n"
......@@ -19,10 +19,76 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Gtranslator 2.91.7\n"
#: ../data/quickpad.desktop.in.h:1
#: ../src/quickpad_window.c:155
msgid ""
"Small/simple notes editor.\n"
"Don't have to save them manualy"
msgstr ""
"Small/simple notes editor.\n"
"Don't have to save them manualy"
#: ../src/quickpad_window.c:156
msgid "(c) 2018 Didier Prolhac"
msgstr "(c) 2018 Didier Prolhac"
#: ../src/quickpad_window.c:157
msgid "MIT"
msgstr "MIT"
#: ../src/quickpad_window.c:162 ../data/quickpad.desktop.in.h:1
msgid "QuickPad"
msgstr "QuickPad"
#: ../src/quickpad_window.c:175
msgid "New pad"
msgstr "New pad"
#: ../src/quickpad_window.c:192
#, c-format
msgid "Error importing file '%s' : (%i) %s"
msgstr "Error importing file '%s' : (%i) %s"
#: ../src/quickpad_window.c:208
#, c-format
msgid "Error writing export '%s' : (%i) %s"
msgstr "Error writing export '%s' : (%i) %s"
#: ../src/quickpad_window.c:254
msgid "Open File"
msgstr "Open File"
#: ../src/quickpad_window.c:255 ../src/quickpad_window.c:258
msgid "_Cancel"
msgstr "_Cancel"
#: ../src/quickpad_window.c:255
msgid "_Open"
msgstr "_Open"
#: ../src/quickpad_window.c:257
msgid "Save File"
msgstr "Save File"
#: ../src/quickpad_window.c:258
msgid "_Save"
msgstr "_Save"
#: ../src/quickpad_window.c:266
msgid "New file"
msgstr "New file"
#: ../src/quickpad.wnd-main.glade.h:1
msgid "Line numbers"
msgstr "Line numbers"
#: ../src/quickpad.wnd-main.glade.h:2
msgid "Highlight current line"
msgstr "Highlight current line"
#: ../src/quickpad.wnd-main.glade.h:3
msgid "Quickpad"
msgstr "Quickpad"
#: ../data/quickpad.desktop.in.h:2
msgid "Quick note editor"
msgstr "Quick note editor"
......
......@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: gmysqlcc 0.5.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-01 10:48+0200\n"
"PO-Revision-Date: 2018-06-01 10:49+0200\n"
"POT-Creation-Date: 2018-06-17 00:27+0200\n"
"PO-Revision-Date: 2018-06-17 00:30+0200\n"
"Last-Translator: Didier Prolhac <dev@thepozer.net>\n"
"Language-Team: français <dev@thepozer.net>\n"
"Language: fr\n"
......@@ -19,10 +19,76 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Gtranslator 2.91.7\n"
#: ../data/quickpad.desktop.in.h:1
#: ../src/quickpad_window.c:155
msgid ""
"Small/simple notes editor.\n"
"Don't have to save them manualy"
msgstr ""
"Simple et petit éditeur de notes.\n"
"Pas besoin de les enregistrer manuellement"
#: ../src/quickpad_window.c:156
msgid "(c) 2018 Didier Prolhac"
msgstr "(c) 2018 Didier Prolhac"
#: ../src/quickpad_window.c:157
msgid "MIT"
msgstr "MIT"
#: ../src/quickpad_window.c:162 ../data/quickpad.desktop.in.h:1
msgid "QuickPad"
msgstr "QuickPad"
#: ../src/quickpad_window.c:175
msgid "New pad"
msgstr "Nouveau pad"
#: ../src/quickpad_window.c:192
#, c-format
msgid "Error importing file '%s' : (%i) %s"
msgstr "Error importing file '%s' : (%i) %s"
#: ../src/quickpad_window.c:208
#, c-format
msgid "Error writing export '%s' : (%i) %s"
msgstr "Error writing export '%s' : (%i) %s"
#: ../src/quickpad_window.c:254
msgid "Open File"
msgstr "Ouvrir un fichier"
#: ../src/quickpad_window.c:255 ../src/quickpad_window.c:258
msgid "_Cancel"
msgstr "_Annuler"
#: ../src/quickpad_window.c:255
msgid "_Open"
msgstr "_Ouvrir"
#: ../src/quickpad_window.c:257
msgid "Save File"
msgstr "Enregistre un fichier"
#: ../src/quickpad_window.c:258
msgid "_Save"
msgstr "_Enregistrer"
#: ../src/quickpad_window.c:266
msgid "New file"
msgstr "Nouveau fichier"
#: ../src/quickpad.wnd-main.glade.h:1
msgid "Line numbers"
msgstr "Numéros de lignes"
#: ../src/quickpad.wnd-main.glade.h:2
msgid "Highlight current line"
msgstr "Surligne la ligne courante"
#: ../src/quickpad.wnd-main.glade.h:3
msgid "Quickpad"
msgstr "Quickpad"
#: ../data/quickpad.desktop.in.h:2
msgid "Quick note editor"
msgstr "Quick note editeur"
msgstr "Editeur de note rapide"
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-01 10:48+0200\n"
"POT-Creation-Date: 2018-06-17 00:27+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -17,10 +17,74 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../data/quickpad.desktop.in.h:1
#: ../src/quickpad_window.c:155
msgid ""
"Small/simple notes editor.\n"
"Don't have to save them manualy"
msgstr ""
#: ../src/quickpad_window.c:156
msgid "(c) 2018 Didier Prolhac"
msgstr ""
#: ../src/quickpad_window.c:157
msgid "MIT"
msgstr ""
#: ../src/quickpad_window.c:162 ../data/quickpad.desktop.in.h:1
msgid "QuickPad"
msgstr ""
#: ../src/quickpad_window.c:175
msgid "New pad"
msgstr ""
#: ../src/quickpad_window.c:192
#, c-format
msgid "Error importing file '%s' : (%i) %s"
msgstr ""
#: ../src/quickpad_window.c:208
#, c-format
msgid "Error writing export '%s' : (%i) %s"
msgstr ""
#: ../src/quickpad_window.c:254
msgid "Open File"
msgstr ""
#: ../src/quickpad_window.c:255 ../src/quickpad_window.c:258
msgid "_Cancel"
msgstr ""
#: ../src/quickpad_window.c:255
msgid "_Open"
msgstr ""
#: ../src/quickpad_window.c:257
msgid "Save File"
msgstr ""
#: ../src/quickpad_window.c:258
msgid "_Save"
msgstr ""
#: ../src/quickpad_window.c:266
msgid "New file"
msgstr ""
#: ../src/quickpad.wnd-main.glade.h:1
msgid "Line numbers"
msgstr ""
#: ../src/quickpad.wnd-main.glade.h:2
msgid "Highlight current line"
msgstr ""
#: ../src/quickpad.wnd-main.glade.h:3
msgid "Quickpad"
msgstr ""
#: ../data/quickpad.desktop.in.h:2
msgid "Quick note editor"
msgstr ""
AM_CFLAGS = $(QUICKPAD_CFLAGS) -rdynamic
AM_CFLAGS = $(GTK_CFLAGS) $(SOURCEVIEW_CFLAGS) $(DCONF_CFLAGS) -rdynamic
AM_CPPFLAGS = -DLOCALEDIR=\""$(localedir)"\"
bin_PROGRAMS = quickpad
quickpad_LDADD = $(QUICKPAD_LIBS)
quickpad_LDADD = $(GTK_LIBS) $(SOURCEVIEW_LIBS) $(DCONF_LIBS)
quickpad_SOURCES = quickpad.gresources.h \
quickpad.gresources.c \
quickpad_main.c \
......
......@@ -6,10 +6,30 @@
<summary>Tab counter</summary>
<description>Tab counter</description>
</key>
<key name="tabs" type="as">
<default>[]</default>
<summary>Tabs id list</summary>
<description>Tabs id list</description>
<key name="line-numbers" type="b">
<default>false</default>
<summary>Line numbers</summary>
<description>Line numbers</description>
</key>
<key name="highlight-current-line" type="b">
<default>false</default>
<summary>Highlight Current Line</summary>
<description>Highlight Current Line</description>
</key>
<key name="night-mode" type="b">
<default>false</default>
<summary>Nignt mode</summary>
<description>Night mode</description>
</key>
<key name="tab-size" type="i">
<default>2</default>
<summary>Nignt mode</summary>
<description>Night mode</description>
</key>
<key name="tab-space" type="b">
<default>false</default>
<summary>Tab with space</summary>
<description>Tab with space</description>
</key>
</schema>
<schema id="net.thepozer.quickpad.tab">
......@@ -18,6 +38,11 @@
<summary>Tab id</summary>
<description>Tab id</description>
</key>
<key name="order" type="i">
<default>0</default>
<summary>Order id</summary>
<description>Order id</description>
</key>
<key name="title" type="s">
<default>'New tab'</default>
<summary>Tab title</summary>
......
This diff is collapsed.
......@@ -3,9 +3,9 @@
#include "quickpad_window.h"
struct _QuickpadApp {
GtkApplication parent;
GSettings * pSettings;
GtkApplication parent;
GSettings * pSettings;
};
G_DEFINE_TYPE(QuickpadApp, quickpad_app, GTK_TYPE_APPLICATION);
......@@ -13,32 +13,31 @@ G_DEFINE_TYPE(QuickpadApp, quickpad_app, GTK_TYPE_APPLICATION);
static void quickpad_app_init (QuickpadApp * pApp) {}
static void quickpad_app_activate (GApplication * pApp) {
QuickpadAppWindow * pWindow;
QuickpadAppWindow * pWindow;
pWindow = quickpad_app_window_new(QUICKPAD_APP(pApp));
gtk_window_present (GTK_WINDOW(pWindow));
pWindow = quickpad_app_window_new(QUICKPAD_APP(pApp));
gtk_window_present(GTK_WINDOW(pWindow));
}
static void quickpad_app_class_init(QuickpadAppClass *class)
{
G_APPLICATION_CLASS (class)->activate = quickpad_app_activate;
static void quickpad_app_class_init(QuickpadAppClass *class) {
G_APPLICATION_CLASS (class)->activate = quickpad_app_activate;
}
QuickpadApp * quickpad_app_new (void) {
QuickpadApp * pApp = NULL;
pApp = g_object_new (QUICKPAD_TYPE_APP, "application-id", "net.thepozer.quickpad", "flags", G_APPLICATION_HANDLES_OPEN, NULL);
pApp->pSettings = g_settings_new ("net.thepozer.quickpad");
return pApp;
QuickpadApp * pApp = NULL;
pApp = g_object_new (QUICKPAD_TYPE_APP, "application-id", "net.thepozer.quickpad", "flags", NULL, NULL);
pApp->pSettings = g_settings_new ("net.thepozer.quickpad");
return pApp;
}
GSettings * quickpad_app_get_settings (QuickpadApp * pApp) {
return pApp->pSettings;
return pApp->pSettings;
}
void quickpad_app_quit (QuickpadApp * pApp) {
g_application_quit(G_APPLICATION(pApp));
g_application_quit(G_APPLICATION(pApp));
}
......@@ -4,12 +4,12 @@
#include "quickpad_app.h"
int main (int argc, char *argv []) {
/* Set up internationalization */
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
g_resources_register(quickpad_get_resource());
return g_application_run(G_APPLICATION(quickpad_app_new()), argc, argv);
/* Set up internationalization */
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
g_resources_register(quickpad_get_resource());
return g_application_run(G_APPLICATION(quickpad_app_new()), argc, argv);
}
This diff is collapsed.