summaryrefslogtreecommitdiffstats
path: root/gnome2-apps
diff options
context:
space:
mode:
authorVlad Glagolev2016-07-28 19:12:02 -0400
committerVlad Glagolev2016-07-28 19:12:02 -0400
commit3dda6585f522c172116e6c1a68da500c60ceadfb (patch)
treee7662b1a9974622c9aac5e2b3ddb151901f6d0d9 /gnome2-apps
parentceeac5aae8e2a43691007023a06e8ed4c75edb43 (diff)
osmo: added official patch fixing today status
Diffstat (limited to 'gnome2-apps')
-rwxr-xr-xgnome2-apps/osmo/DETAILS2
-rw-r--r--gnome2-apps/osmo/HISTORY5
-rwxr-xr-xgnome2-apps/osmo/PRE_BUILD1
-rw-r--r--gnome2-apps/osmo/refresh.patch86
4 files changed, 93 insertions, 1 deletions
diff --git a/gnome2-apps/osmo/DETAILS b/gnome2-apps/osmo/DETAILS
index 8417169c39..c44f403b8c 100755
--- a/gnome2-apps/osmo/DETAILS
+++ b/gnome2-apps/osmo/DETAILS
@@ -1,6 +1,6 @@
SPELL=osmo
VERSION=0.2.14
- PATCHLEVEL=2
+ PATCHLEVEL=3
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_GPG=gurus.gpg:$SOURCE.sig:WORKS_FOR_ME
SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
diff --git a/gnome2-apps/osmo/HISTORY b/gnome2-apps/osmo/HISTORY
index 36bb494f89..e7c925ab9d 100644
--- a/gnome2-apps/osmo/HISTORY
+++ b/gnome2-apps/osmo/HISTORY
@@ -1,3 +1,8 @@
+2016-07-20 Vlad Glagolev <stealth@sourcemage.org>
+ * DETAILS: PATCHLEVEL++
+ * PRE_BUILD: apply the patch
+ * refresh.patch: added, official patch to fix today's status
+
2015-10-20 Vlad Glagolev <stealth@sourcemage.org>
* DETAILS: PATCHLEVEL++
* warning.patch: replaced with official patch
diff --git a/gnome2-apps/osmo/PRE_BUILD b/gnome2-apps/osmo/PRE_BUILD
index 77774d619e..2cc4fa46a9 100755
--- a/gnome2-apps/osmo/PRE_BUILD
+++ b/gnome2-apps/osmo/PRE_BUILD
@@ -1,4 +1,5 @@
default_pre_build &&
cd "${SOURCE_DIRECTORY}" &&
+patch -p0 < "${SPELL_DIRECTORY}/refresh.patch" &&
patch -p0 < "${SPELL_DIRECTORY}/warning.patch"
diff --git a/gnome2-apps/osmo/refresh.patch b/gnome2-apps/osmo/refresh.patch
new file mode 100644
index 0000000000..1362b41f7a
--- /dev/null
+++ b/gnome2-apps/osmo/refresh.patch
@@ -0,0 +1,86 @@
+--- src/check_events.c.orig
++++ src/check_events.c
+@@ -679,6 +679,14 @@
+ #endif /* TASKS_ENABLED */
+
+ /*------------------------------------------------------------------------------*/
++static void
++refresh_calendar(GUI *appGUI) {
++ if (appGUI->current_tab == PAGE_CALENDAR) {
++ /* redraw calendar to move the Today marker */
++ gtk_widget_queue_draw(appGUI->cal->calendar);
++ }
++}
++/*------------------------------------------------------------------------------*/
+
+ gboolean
+ time_handler (gpointer data)
+@@ -716,6 +724,7 @@
+ #ifdef TASKS_ENABLED
+ refresh_tasks (appGUI);
+ #endif /* TASKS_ENABLED */
++ refresh_calendar(appGUI);
+
+ /* update systray status */
+ gui_systray_update_icon (appGUI);
+--- src/calendar.c.orig
++++ src/calendar.c
+@@ -510,13 +510,7 @@
+ update_clock (GUI *appGUI)
+ {
+ #ifdef HAVE_LIBWEBKIT
+-GDate *date;
+-gboolean current_date;
+-
+- date = appGUI->cal->date;
+- current_date = (g_date_get_julian (date) == utl_date_get_current_julian ());
+-
+- if (current_date && config.di_show_current_time) {
++ if (config.di_show_current_time) {
+ cal_set_day_info (appGUI);
+ }
+
+@@ -544,7 +538,6 @@
+ gchar tmpbuf[BUFFER_SIZE];
+ GDate *date;
+ guint dday, dmonth, dyear;
+-gboolean current_date;
+ gint edays, i;
+ gchar *text;
+
+@@ -553,8 +546,6 @@
+ dday = g_date_get_day (date);
+ dmonth = g_date_get_month (date) - 1;
+ dyear = g_date_get_year (date);
+-
+- current_date = (g_date_get_julian (date) == utl_date_get_current_julian ());
+
+ #ifdef HAVE_LIBWEBKIT
+
+@@ -592,7 +583,7 @@
+ /* body */
+ output = utl_strconcat (output, "<table><tr>", NULL);
+
+- if (current_date && config.di_show_current_time) {
++ if (config.di_show_current_time) {
+ gchar *tstr = utl_time_print_default (utl_time_get_current_seconds (), config.di_show_current_time_seconds);
+ g_snprintf (tmpbuf, BUFFER_SIZE, "<th>%s:</th><td>", _("Current time"));
+ output = utl_strconcat (output, tmpbuf, tstr, "</td>", NULL);
+@@ -766,7 +757,7 @@
+
+ i = 0;
+
+- if (current_date && config.di_show_current_time) {
++ if (config.di_show_current_time) {
+ g_snprintf (tmpbuf, BUFFER_SIZE, "<b>%s:</b>", _("Current time"));
+ label = gtk_label_new (tmpbuf);
+ gtk_widget_show (label);
+@@ -867,7 +858,7 @@
+ i = 0;
+
+ appGUI->cal->time_label = gtk_label_new (NULL);
+- if (current_date && config.di_show_current_time) {
++ if (config.di_show_current_time) {
+ update_clock (appGUI);
+ gtk_widget_show (appGUI->cal->time_label);
+ gtk_grid_attach (GTK_GRID (table), appGUI->cal->time_label, 1, i, 2, 1);