Fix a problem where gnomecal would crash on the first of every month, and
correct the link to gnomecal's help documentation. Bump PORTREVISION. PR: 38773 (help docs) Obtained from: gnome-pim CVS (crash fix)
This commit is contained in:
parent
02cf4a3dc2
commit
dfcd75d164
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60434
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gnomepim
|
||||
PORTVERSION= 1.4.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= deskutils gnome
|
||||
MASTER_SITES= http://www.marcuscom.com/downloads/ \
|
||||
http://www.eskil.org/gnome-pilot/download/tarballs/ \
|
||||
|
6
deskutils/gnome-pim/files/patch-gncal_doc_C_topic.dat
Normal file
6
deskutils/gnome-pim/files/patch-gncal_doc_C_topic.dat
Normal file
@ -0,0 +1,6 @@
|
||||
--- gncal/doc/C/topic.dat.orig Sat Jun 1 13:10:13 2002
|
||||
+++ gncal/doc/C/topic.dat Sat Jun 1 13:10:21 2002
|
||||
@@ -1,2 +1,2 @@
|
||||
-gnomecal.html Manual
|
||||
+index.html Manual
|
||||
cmdline.html Command line options
|
27
deskutils/gnome-pim/files/patch-gncal_gnome-cal.c
Normal file
27
deskutils/gnome-pim/files/patch-gncal_gnome-cal.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- gncal/gnome-cal.c.orig Sat Jun 1 13:08:01 2002
|
||||
+++ gncal/gnome-cal.c Sat Jun 1 13:09:41 2002
|
||||
@@ -76,7 +76,13 @@
|
||||
static GtkWidget *
|
||||
get_current_page (GnomeCalendar *gcal)
|
||||
{
|
||||
- return GTK_NOTEBOOK (gcal->notebook)->cur_page->child;
|
||||
+ GtkNotebookPage *page;
|
||||
+
|
||||
+ page = GTK_NOTEBOOK (gcal->notebook)->cur_page;
|
||||
+ if (page)
|
||||
+ return page->child;
|
||||
+ else
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
char *
|
||||
@@ -111,6 +117,9 @@
|
||||
g_return_if_fail (new_time != -1);
|
||||
|
||||
current = get_current_page (gcal);
|
||||
+ if (!current)
|
||||
+ return;
|
||||
+
|
||||
new_time = time_day_begin (new_time);
|
||||
|
||||
if (current == gcal->day_view) {
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= gnomepim
|
||||
PORTVERSION= 1.4.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= deskutils gnome
|
||||
MASTER_SITES= http://www.marcuscom.com/downloads/ \
|
||||
http://www.eskil.org/gnome-pilot/download/tarballs/ \
|
||||
|
6
deskutils/gnomepim/files/patch-gncal_doc_C_topic.dat
Normal file
6
deskutils/gnomepim/files/patch-gncal_doc_C_topic.dat
Normal file
@ -0,0 +1,6 @@
|
||||
--- gncal/doc/C/topic.dat.orig Sat Jun 1 13:10:13 2002
|
||||
+++ gncal/doc/C/topic.dat Sat Jun 1 13:10:21 2002
|
||||
@@ -1,2 +1,2 @@
|
||||
-gnomecal.html Manual
|
||||
+index.html Manual
|
||||
cmdline.html Command line options
|
27
deskutils/gnomepim/files/patch-gncal_gnome-cal.c
Normal file
27
deskutils/gnomepim/files/patch-gncal_gnome-cal.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- gncal/gnome-cal.c.orig Sat Jun 1 13:08:01 2002
|
||||
+++ gncal/gnome-cal.c Sat Jun 1 13:09:41 2002
|
||||
@@ -76,7 +76,13 @@
|
||||
static GtkWidget *
|
||||
get_current_page (GnomeCalendar *gcal)
|
||||
{
|
||||
- return GTK_NOTEBOOK (gcal->notebook)->cur_page->child;
|
||||
+ GtkNotebookPage *page;
|
||||
+
|
||||
+ page = GTK_NOTEBOOK (gcal->notebook)->cur_page;
|
||||
+ if (page)
|
||||
+ return page->child;
|
||||
+ else
|
||||
+ return NULL;
|
||||
}
|
||||
|
||||
char *
|
||||
@@ -111,6 +117,9 @@
|
||||
g_return_if_fail (new_time != -1);
|
||||
|
||||
current = get_current_page (gcal);
|
||||
+ if (!current)
|
||||
+ return;
|
||||
+
|
||||
new_time = time_day_begin (new_time);
|
||||
|
||||
if (current == gcal->day_view) {
|
Loading…
Reference in New Issue
Block a user