Bugs and ideas:
* Sergei Sarbash <sarbash.s@gmail.com>
* Julien Valroff <julien@kirya.net>
+ * Iffan Arzanul Haq <arzanulhaq@gmail.com>
Packages:
- Arch Linux:
* Victor Feight <vrfeight3@gmail.com>
+ * jsteel <jsteel@vorx.com>
- Gentoo Linux:
* Joshua Saddler <nightmorph@gentoo.org>
* maelnor
- - Fedora Linux
+ - Fedora Linux:
* Filip Pytloun <filip.pytloun@stickfish.com>
+ - Debian:
+ * Julien Valroff <julien@debian.org>
+2011-09-05: v1.0:
+- Fix bug with external viewer when mark_today is false
++ Add ability to show week numbers — show_week_numbers option
+
2011-08-24: v0.9:
- Fix license text not included in distribution
- Fix last `=` was treated as separator of key/value in config, not the first
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for gsimplecal 0.9.
+# Generated by GNU Autoconf 2.68 for gsimplecal 1.0.
#
# Report bugs to <https://github.com/dmedvinsky/gsimplecal/issues>.
#
# Identity of this package.
PACKAGE_NAME='gsimplecal'
PACKAGE_TARNAME='gsimplecal'
-PACKAGE_VERSION='0.9'
-PACKAGE_STRING='gsimplecal 0.9'
+PACKAGE_VERSION='1.0'
+PACKAGE_STRING='gsimplecal 1.0'
PACKAGE_BUGREPORT='https://github.com/dmedvinsky/gsimplecal/issues'
PACKAGE_URL='https://github.com/dmedvinsky/gsimplecal'
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures gsimplecal 0.9 to adapt to many kinds of systems.
+\`configure' configures gsimplecal 1.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of gsimplecal 0.9:";;
+ short | recursive ) echo "Configuration of gsimplecal 1.0:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-gsimplecal configure 0.9
+gsimplecal configure 1.0
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by gsimplecal $as_me 0.9, which was
+It was created by gsimplecal $as_me 1.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE='gsimplecal'
- VERSION='0.9'
+ VERSION='1.0'
cat >>confdefs.h <<_ACEOF
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by gsimplecal $as_me 0.9, which was
+This file was extended by gsimplecal $as_me 1.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-gsimplecal config.status 0.9
+gsimplecal config.status 1.0
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
AC_PREREQ([2.65])
AC_INIT([gsimplecal],
- [0.9],
+ [1.0],
[https://github.com/dmedvinsky/gsimplecal/issues],
[gsimplecal],
[https://github.com/dmedvinsky/gsimplecal])
To make it, you should create
.nh
\fB$XDG_CONFIG_HOME/gsimplecal/config\fP
-.ny
file (usually it will be
.nh
~/.config/gsimplecal/config)
-.ny
with the following contents:
.IP
.br
mark_today = 1
.br
-external_viewer = sunbird --cool-arg --date="%Y-%m-%d"
+show_week_numbers = 0
+.br
+external_viewer = sunbird -showdate "%Y-%m-%d"
.br
clock_format = %a %d %b %H:%M
.br
selection, i.e. when you click on the other day, today will remain marked
somehow, e.g. in bold print).
+.TP 5
+\fBshow_week_numbers\fP: 1 or 0, defaults to 0.
+Sets whether week numbers are shown in the calendar.
+
.TP 5
\fBexternal_viewer\fP: string, defaults to empty string.
Command line to run when doubleclicking a date. This string is strftime'd
Currently the shell is hardcoded to
.nh
/bin/sh
-.ny
though. I hope that will do for all the users, but if you've got a trouble,
please file a ticket (see \fIREPORTING BUGS\fP).
Please, report any issues to the gsimplecal issue tracker, available at:
.nh
https://github.com/dmedvinsky/gsimplecal/issues
-.ny
.SH AUTHOR
Calendar::Calendar()
{
widget = gtk_calendar_new();
- gtk_calendar_set_display_options(GTK_CALENDAR(widget),
- (GtkCalendarDisplayOptions)(GTK_CALENDAR_SHOW_HEADING +
- GTK_CALENDAR_SHOW_DAY_NAMES));
Config* config = Config::getInstance();
+ g_object_set(widget,
+ "show-heading", true,
+ "show-day-names", true,
+ "show-details", false,
+ "show-week-numbers", config->show_week_numbers,
+ NULL);
if (config->mark_today) {
// Store today date to be able to mark it after month changes.
gtk_calendar_get_date((GtkCalendar*)widget,
markToday();
gtk_signal_connect(GTK_OBJECT(widget), "month-changed",
GTK_SIGNAL_FUNC(monthChangedCb), (gpointer)this);
- gtk_signal_connect(GTK_OBJECT(widget), "day-selected-double-click",
- GTK_SIGNAL_FUNC(dayDoubleClickCb), (gpointer)this);
}
+ gtk_signal_connect(GTK_OBJECT(widget), "day-selected-double-click",
+ GTK_SIGNAL_FUNC(dayDoubleClickCb), (gpointer)this);
gtk_widget_show(widget);
}
mainwindow_skip_taskbar = true;
mainwindow_position = GTK_WIN_POS_MOUSE;
mark_today = true;
+ show_week_numbers = false;
}
bool Config::getFile()
}
} else if (var == "external_viewer") {
external_viewer = val;
+ } else if (var == "show_week_numbers") {
+ if (!fromString<bool>(show_week_numbers, val)) {
+ show_week_numbers = false;
+ }
}
}
vector<ClockInfo*> clocks;
bool mark_today;
string external_viewer;
+ bool show_week_numbers;
bool mainwindow_decorated;
bool mainwindow_keep_above;