aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@nuclecu.unam.mx>1998-10-10 09:42:45 +0800
committerArturo Espinosa <unammx@src.gnome.org>1998-10-10 09:42:45 +0800
commit548c52f284b48fabbda3795838293a0a5ba63bea (patch)
tree4ed4bfa576fd2116124580b721c88082db0a16f0 /calendar
parente1dccc7c4f58b419b0ef66728a717783643806ae (diff)
downloadgsoc2013-evolution-548c52f284b48fabbda3795838293a0a5ba63bea.tar.gz
gsoc2013-evolution-548c52f284b48fabbda3795838293a0a5ba63bea.tar.zst
gsoc2013-evolution-548c52f284b48fabbda3795838293a0a5ba63bea.zip
Create a list of children and lay them out nicely. Lots of functions added
1998-10-09 Federico Mena Quintero <federico@nuclecu.unam.mx> * month-view.c (month_view_update): Create a list of children and lay them out nicely. Lots of functions added for this purpose. (adjust_segment): Main event segment adjustment routine. (adjust_children): Adjusts all the children in the month view. (child_create_segments): Creates the segments for a particular event. (layout_children): Uses the generic layout engine to organize the children. svn path=/trunk/; revision=438
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog9
-rw-r--r--calendar/TODO2
-rw-r--r--calendar/gui/month-view.c208
-rw-r--r--calendar/month-view.c208
4 files changed, 407 insertions, 20 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index a3309c2ba5..def4c6dc1c 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,12 @@
+1998-10-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * month-view.c (month_view_update): Create a list of children and
+ lay them out nicely. Lots of functions added for this purpose.
+ (adjust_segment): Main event segment adjustment routine.
+ (adjust_children): Adjusts all the children in the month view.
+ (child_create_segments): Creates the segments for a particular event.
+ (layout_children): Uses the generic layout engine to organize the children.
+
1998-10-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-todo.c (clist_row_selected): Set the sensitivity of the
diff --git a/calendar/TODO b/calendar/TODO
index 7c33183b5e..81a657d658 100644
--- a/calendar/TODO
+++ b/calendar/TODO
@@ -47,3 +47,5 @@ General:
- If you leave the calendar running overnight, the "current day"
marker in the GnomeMonthItems does not get updated.
+
+- Add categories support. Color-coded categories.
diff --git a/calendar/gui/month-view.c b/calendar/gui/month-view.c
index 0e0c706a25..6c425ecfeb 100644
--- a/calendar/gui/month-view.c
+++ b/calendar/gui/month-view.c
@@ -7,6 +7,7 @@
#include <config.h>
#include <libgnomeui/gnome-canvas-text.h>
+#include "layout.h"
#include "month-view.h"
#include "main.h"
#include "mark.h"
@@ -22,6 +23,8 @@
struct child {
iCalObject *ico; /* The calendar object this child refers to */
time_t start, end; /* Start and end times for the instance of the event */
+ int slot_start; /* The first slot this child uses */
+ int slots_used; /* The number of slots occupied by this child */
GList *segments; /* The list of segments needed to display this child */
};
@@ -46,13 +49,6 @@ static void month_view_size_allocate (GtkWidget *widget,
static GnomeCanvasClass *parent_class;
-/* Adjusts the child events of the month view to the appropriate size and position */
-static void
-adjust_children (MonthView *mv)
-{
-
-}
-
GtkType
month_view_get_type (void)
{
@@ -147,6 +143,89 @@ month_view_size_request (GtkWidget *widget, GtkRequisition *requisition)
requisition->height = 150;
}
+/* Adjusts a single segment from a child */
+static void
+adjust_segment (MonthView *mv, struct child *child, struct segment *seg)
+{
+ struct tm start, end;
+ GnomeCanvasItem *start_item, *end_item;
+ GnomeCanvasItem *item;
+ int start_day_index, end_day_index;
+ double ix1, iy1, ix2, iy2;
+ double ly2;
+ double width, height;
+ time_t day_begin, day_end;
+ double start_factor, end_factor;
+ double slot_height;
+
+ /* Find the days that the segment intersects and get their bounds */
+
+ start = *localtime (&seg->start);
+ end = *localtime (&seg->end);
+
+ start_day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (mv->mitem), start.tm_mday);
+ g_assert (start_day_index != -1);
+
+ end_day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (mv->mitem), end.tm_mday);
+ g_assert (end_day_index != -1);
+
+ start_item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem),
+ start_day_index + GNOME_MONTH_ITEM_DAY_GROUP);
+ end_item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem),
+ end_day_index + GNOME_MONTH_ITEM_DAY_GROUP);
+
+ gnome_canvas_item_get_bounds (start_item, &ix1, &iy1, NULL, &iy2);
+ gnome_canvas_item_get_bounds (end_item, NULL, NULL, &ix2, NULL);
+
+ /* Get the lower edge of the day label */
+
+ item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem), start_day_index + GNOME_MONTH_ITEM_DAY_LABEL);
+ gnome_canvas_item_get_bounds (item, NULL, NULL, NULL, &ly2);
+
+ /* Calculate usable space */
+
+ iy1 += ly2;
+ width = ix2 - ix1;
+ height = iy2 - iy1;
+
+ /* Set the segment's item coordinates */
+
+ day_begin = time_day_begin (seg->start);
+ day_end = time_day_end (seg->end);
+
+ start_factor = (double) (seg->start - day_begin) / (day_end - day_begin);
+ end_factor = (double) (seg->end - day_begin) / (day_end - day_begin);
+
+ slot_height = height / mv->num_slots;
+
+ gnome_canvas_item_set (seg->item,
+ "x1", ix1 + width * start_factor,
+ "y1", iy1 + slot_height * child->slot_start,
+ "x2", ix1 + width * end_factor,
+ "y2", iy1 + slot_height * (child->slot_start + child->slots_used),
+ NULL);
+}
+
+/* Adjusts the child events of the month view to the appropriate size and position */
+static void
+adjust_children (MonthView *mv)
+{
+ GList *children;
+ struct child *child;
+ GList *segments;
+ struct segment *seg;
+
+ for (children = mv->children; children; children = children->next) {
+ child = children->data;
+
+ for (segments = child->segments; segments; segments = segments->next) {
+ seg = segments->data;
+
+ adjust_segment (mv, child, seg);
+ }
+ }
+}
+
static void
month_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
{
@@ -193,7 +272,19 @@ month_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
static void
child_destroy (MonthView *mv, struct child *child)
{
- /* FIXME: destroy the list of segments */
+ GList *list;
+ struct segment *seg;
+
+ /* Destroy the segments */
+
+ for (list = child->segments; list; list = list->next) {
+ seg = list->data;
+
+ gtk_object_destroy (GTK_OBJECT (seg->item));
+ g_free (seg);
+ }
+
+ g_list_free (child->segments);
/* Destroy the child */
@@ -208,7 +299,61 @@ child_destroy (MonthView *mv, struct child *child)
static void
child_create_segments (MonthView *mv, struct child *child)
{
- /* FIXME */
+ time_t t;
+ time_t month_begin, month_end;
+ time_t week_begin, week_end;
+ time_t left, right;
+ struct segment *seg;
+
+ /* Get the month's extents */
+
+ t = time_from_day (mv->year, mv->month, 1);
+ month_begin = time_month_begin (t);
+ month_end = time_month_end (t);
+
+ /* Get the first week of the event */
+
+ t = MAX (child->start, month_begin);
+ week_begin = time_week_begin (t);
+
+ if (week_starts_on_monday)
+ time_add_day (week_begin, 1);
+
+ week_end = time_add_week (week_begin, 1);
+
+ /* Loop until the event ends or the month ends -- the segments list is created in reverse
+ * order.
+ */
+
+ do {
+ seg = g_new (struct segment, 1);
+
+ /* Clip the child to this week */
+
+ left = MAX (week_begin, month_begin);
+ right = MIN (week_end, month_end);
+
+ seg->start = MAX (child->start, left);
+ seg->end = MIN (child->end, right);
+
+ seg->item = gnome_canvas_item_new (GNOME_CANVAS_GROUP (mv->mitem),
+ gnome_canvas_rect_get_type (),
+ "fill_color", color_spec_from_prop (COLOR_PROP_MARK_DAY_BG),
+ "outline_color", "black",
+ "width_pixels", 0,
+ NULL);
+
+ child->segments = g_list_prepend (child->segments, seg);
+
+ /* Next week */
+
+ week_begin = time_add_week (week_begin, 1);
+ week_end = time_add_week (week_end, 1);
+ } while ((child->end > week_begin) && (week_begin < month_end));
+
+ /* Reverse the list to put it in increasing order */
+
+ child->segments = g_list_reverse (child->segments);
}
/* Comparison function used to create the sorted list of children. Sorts first by increasing start
@@ -253,6 +398,45 @@ add_event (iCalObject *ico, time_t start, time_t end, void *data)
/* Add it to the list of children */
mv->children = g_list_insert_sorted (mv->children, child, child_compare);
+
+ return TRUE; /* means "we are not yet finished" */
+}
+
+/* Time query function for the layout engine */
+static void
+child_query_func (GList *list, time_t *start, time_t *end)
+{
+ struct child *child;
+
+ child = list->data;
+
+ *start = child->start;
+ *end = child->end;
+}
+
+/* Uses the generic event layout engine to set the children's layout information */
+static void
+layout_children (MonthView *mv)
+{
+ GList *list;
+ struct child *child;
+ int *allocations;
+ int *slots;
+ int i;
+
+ layout_events (mv->children, child_query_func, &mv->num_slots, &allocations, &slots);
+
+ if (mv->num_slots == 0)
+ return;
+
+ for (list = mv->children, i = 0; list; list = list->next, i++) {
+ child = list->data;
+ child->slot_start = allocations[i];
+ child->slots_used = slots[i];
+ }
+
+ g_free (allocations);
+ g_free (slots);
}
void
@@ -280,6 +464,7 @@ month_view_update (MonthView *mv, iCalObject *object, int flags)
month_end = time_month_end (t);
calendar_iterate (mv->calendar->cal, month_begin, month_end, add_event, mv);
+ layout_children (mv);
adjust_children (mv);
}
@@ -351,8 +536,9 @@ month_view_set (MonthView *mv, time_t month)
"month", mv->month,
NULL);
- /* FIXME: update events */
+ /* Update events */
+ month_view_update (mv, NULL, 0);
mark_current_day (mv);
}
@@ -377,4 +563,6 @@ month_view_colors_changed (MonthView *mv)
colorify_month_item (GNOME_MONTH_ITEM (mv->mitem), default_color_func, NULL);
mark_current_day (mv);
+
+ /* FIXME: set children to the marked color */
}
diff --git a/calendar/month-view.c b/calendar/month-view.c
index 0e0c706a25..6c425ecfeb 100644
--- a/calendar/month-view.c
+++ b/calendar/month-view.c
@@ -7,6 +7,7 @@
#include <config.h>
#include <libgnomeui/gnome-canvas-text.h>
+#include "layout.h"
#include "month-view.h"
#include "main.h"
#include "mark.h"
@@ -22,6 +23,8 @@
struct child {
iCalObject *ico; /* The calendar object this child refers to */
time_t start, end; /* Start and end times for the instance of the event */
+ int slot_start; /* The first slot this child uses */
+ int slots_used; /* The number of slots occupied by this child */
GList *segments; /* The list of segments needed to display this child */
};
@@ -46,13 +49,6 @@ static void month_view_size_allocate (GtkWidget *widget,
static GnomeCanvasClass *parent_class;
-/* Adjusts the child events of the month view to the appropriate size and position */
-static void
-adjust_children (MonthView *mv)
-{
-
-}
-
GtkType
month_view_get_type (void)
{
@@ -147,6 +143,89 @@ month_view_size_request (GtkWidget *widget, GtkRequisition *requisition)
requisition->height = 150;
}
+/* Adjusts a single segment from a child */
+static void
+adjust_segment (MonthView *mv, struct child *child, struct segment *seg)
+{
+ struct tm start, end;
+ GnomeCanvasItem *start_item, *end_item;
+ GnomeCanvasItem *item;
+ int start_day_index, end_day_index;
+ double ix1, iy1, ix2, iy2;
+ double ly2;
+ double width, height;
+ time_t day_begin, day_end;
+ double start_factor, end_factor;
+ double slot_height;
+
+ /* Find the days that the segment intersects and get their bounds */
+
+ start = *localtime (&seg->start);
+ end = *localtime (&seg->end);
+
+ start_day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (mv->mitem), start.tm_mday);
+ g_assert (start_day_index != -1);
+
+ end_day_index = gnome_month_item_day2index (GNOME_MONTH_ITEM (mv->mitem), end.tm_mday);
+ g_assert (end_day_index != -1);
+
+ start_item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem),
+ start_day_index + GNOME_MONTH_ITEM_DAY_GROUP);
+ end_item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem),
+ end_day_index + GNOME_MONTH_ITEM_DAY_GROUP);
+
+ gnome_canvas_item_get_bounds (start_item, &ix1, &iy1, NULL, &iy2);
+ gnome_canvas_item_get_bounds (end_item, NULL, NULL, &ix2, NULL);
+
+ /* Get the lower edge of the day label */
+
+ item = gnome_month_item_num2child (GNOME_MONTH_ITEM (mv->mitem), start_day_index + GNOME_MONTH_ITEM_DAY_LABEL);
+ gnome_canvas_item_get_bounds (item, NULL, NULL, NULL, &ly2);
+
+ /* Calculate usable space */
+
+ iy1 += ly2;
+ width = ix2 - ix1;
+ height = iy2 - iy1;
+
+ /* Set the segment's item coordinates */
+
+ day_begin = time_day_begin (seg->start);
+ day_end = time_day_end (seg->end);
+
+ start_factor = (double) (seg->start - day_begin) / (day_end - day_begin);
+ end_factor = (double) (seg->end - day_begin) / (day_end - day_begin);
+
+ slot_height = height / mv->num_slots;
+
+ gnome_canvas_item_set (seg->item,
+ "x1", ix1 + width * start_factor,
+ "y1", iy1 + slot_height * child->slot_start,
+ "x2", ix1 + width * end_factor,
+ "y2", iy1 + slot_height * (child->slot_start + child->slots_used),
+ NULL);
+}
+
+/* Adjusts the child events of the month view to the appropriate size and position */
+static void
+adjust_children (MonthView *mv)
+{
+ GList *children;
+ struct child *child;
+ GList *segments;
+ struct segment *seg;
+
+ for (children = mv->children; children; children = children->next) {
+ child = children->data;
+
+ for (segments = child->segments; segments; segments = segments->next) {
+ seg = segments->data;
+
+ adjust_segment (mv, child, seg);
+ }
+ }
+}
+
static void
month_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
{
@@ -193,7 +272,19 @@ month_view_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
static void
child_destroy (MonthView *mv, struct child *child)
{
- /* FIXME: destroy the list of segments */
+ GList *list;
+ struct segment *seg;
+
+ /* Destroy the segments */
+
+ for (list = child->segments; list; list = list->next) {
+ seg = list->data;
+
+ gtk_object_destroy (GTK_OBJECT (seg->item));
+ g_free (seg);
+ }
+
+ g_list_free (child->segments);
/* Destroy the child */
@@ -208,7 +299,61 @@ child_destroy (MonthView *mv, struct child *child)
static void
child_create_segments (MonthView *mv, struct child *child)
{
- /* FIXME */
+ time_t t;
+ time_t month_begin, month_end;
+ time_t week_begin, week_end;
+ time_t left, right;
+ struct segment *seg;
+
+ /* Get the month's extents */
+
+ t = time_from_day (mv->year, mv->month, 1);
+ month_begin = time_month_begin (t);
+ month_end = time_month_end (t);
+
+ /* Get the first week of the event */
+
+ t = MAX (child->start, month_begin);
+ week_begin = time_week_begin (t);
+
+ if (week_starts_on_monday)
+ time_add_day (week_begin, 1);
+
+ week_end = time_add_week (week_begin, 1);
+
+ /* Loop until the event ends or the month ends -- the segments list is created in reverse
+ * order.
+ */
+
+ do {
+ seg = g_new (struct segment, 1);
+
+ /* Clip the child to this week */
+
+ left = MAX (week_begin, month_begin);
+ right = MIN (week_end, month_end);
+
+ seg->start = MAX (child->start, left);
+ seg->end = MIN (child->end, right);
+
+ seg->item = gnome_canvas_item_new (GNOME_CANVAS_GROUP (mv->mitem),
+ gnome_canvas_rect_get_type (),
+ "fill_color", color_spec_from_prop (COLOR_PROP_MARK_DAY_BG),
+ "outline_color", "black",
+ "width_pixels", 0,
+ NULL);
+
+ child->segments = g_list_prepend (child->segments, seg);
+
+ /* Next week */
+
+ week_begin = time_add_week (week_begin, 1);
+ week_end = time_add_week (week_end, 1);
+ } while ((child->end > week_begin) && (week_begin < month_end));
+
+ /* Reverse the list to put it in increasing order */
+
+ child->segments = g_list_reverse (child->segments);
}
/* Comparison function used to create the sorted list of children. Sorts first by increasing start
@@ -253,6 +398,45 @@ add_event (iCalObject *ico, time_t start, time_t end, void *data)
/* Add it to the list of children */
mv->children = g_list_insert_sorted (mv->children, child, child_compare);
+
+ return TRUE; /* means "we are not yet finished" */
+}
+
+/* Time query function for the layout engine */
+static void
+child_query_func (GList *list, time_t *start, time_t *end)
+{
+ struct child *child;
+
+ child = list->data;
+
+ *start = child->start;
+ *end = child->end;
+}
+
+/* Uses the generic event layout engine to set the children's layout information */
+static void
+layout_children (MonthView *mv)
+{
+ GList *list;
+ struct child *child;
+ int *allocations;
+ int *slots;
+ int i;
+
+ layout_events (mv->children, child_query_func, &mv->num_slots, &allocations, &slots);
+
+ if (mv->num_slots == 0)
+ return;
+
+ for (list = mv->children, i = 0; list; list = list->next, i++) {
+ child = list->data;
+ child->slot_start = allocations[i];
+ child->slots_used = slots[i];
+ }
+
+ g_free (allocations);
+ g_free (slots);
}
void
@@ -280,6 +464,7 @@ month_view_update (MonthView *mv, iCalObject *object, int flags)
month_end = time_month_end (t);
calendar_iterate (mv->calendar->cal, month_begin, month_end, add_event, mv);
+ layout_children (mv);
adjust_children (mv);
}
@@ -351,8 +536,9 @@ month_view_set (MonthView *mv, time_t month)
"month", mv->month,
NULL);
- /* FIXME: update events */
+ /* Update events */
+ month_view_update (mv, NULL, 0);
mark_current_day (mv);
}
@@ -377,4 +563,6 @@ month_view_colors_changed (MonthView *mv)
colorify_month_item (GNOME_MONTH_ITEM (mv->mitem), default_color_func, NULL);
mark_current_day (mv);
+
+ /* FIXME: set children to the marked color */
}
| Obtained from: upstream xorg-server Security: 8441957c-f9b4-11e0-a78a-bcaec565249c * - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)amdmi32011-09-241-2/+2 | | | | | | | | | - Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead PR: 157936 Submitted by: myself Exp-runs by: pav Approved by: pav * Mark as broken on recent i386-9: fails to compile.linimon2011-08-291-1/+7 | * Remove USE_GNOME=gnometarget from ports. It has been a empty keyword sincekwm2011-08-121-1/+0 | | | | | | | mid 2008. PR: ports/159624 Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru> * Fix the "exaGetPixmapFirstPixel called for invalid bpp" problem. This bugkwm2011-08-072-1/+27 | | | | | | | | | is more visible with XFCE. PR: ports/156721 Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> Obtained from: xorg-server upstream With hat: x11@ * Unbreak this -- random automake fallout not shown up on amd64 -exp runsade2011-03-212-1/+7 | | | | Reported by: erwin * - Get Rid MD5 supportmiwi2011-03-194-5/+0 | * - point x2x to its new homebapt2011-03-113-2/+3 | | | | - while here remove MD5 from distinfo * Revert "dix: use the event mask of the grab for TryClientEvents."naddy2011-02-282-0/+90 | | | | | | | | | | http://cgit.freedesktop.org/xorg/xserver/commit/?id=018c878e9495b21146c8f38617fdd1bf6d8cc73b This fixes delivery of button press events to clients. In particular, it fixes irrecoverable focus loss in mwm(1). Approved by: miwi Obtained from: Xorg upstream * - Please welcome Xorg 7.5.1miwi2011-02-2613-41/+15 | | | | | | | | | | | | | | | | | | | | | | | | The X-Server has been patched to the latest 1.7.X series, drivers and fonts have been updated to the latest versions. This update includes some components from Xorg 7.6 with a lot of improvements, and it seems that the performance is much better than the old version. Also this Update fix build issues with clang and binutils 2.17.50 in current, remove 6.X gruft and de-author pkg-descr. I would like to thank: Beat Gaetzi Dima Panov Koop Mast Eitan Adler and all Testers. PR: ports/147646 ports/148035 ports/148744 ports/150223 ports/152889 ports/154457 * - There's no nv(4x) manpage in xorg-server distribution anymore.stas2011-01-251-1/+0 | | | | | Reported by: nathanw Feature safe: yes * - Fix build on powerpc64.stas2011-01-251-1/+1 | | | | | | PR: ports/147568, ports/153644 Submitted by: nwhitehorn, Matthew Rezny <mrezny@hexaneinc.com> Feature safe: yes * - DISTNAME= ${PORTNAME}-${PORTVERSION} is the default and not needed.pgollucci2010-12-301-1/+0 | | | | | | | PR: ports/153292 Submitted by: myself (pgollucci) Tested by: -exp run by pav Approved by: portmgr (pav) * Sync to new bsd.autotools.mkade2010-12-041-1/+1 | * Punt autoconf267->autoconf268ade2010-10-161-1/+1 | * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-2/+2 | | | | | Approved by: portmgr (for Mk/bsd.port.mk part) Tested by: Multiple -exp runs * - Fix build on ppcmiwi2010-05-051-11/+0 | | | | Submitted by: Andreas Tobler * - Update to Xorg 7.5miwi2010-05-0113-46/+37 | | | | | | | | | | | | | | | | | | | | | | | | | | | The Intel drivers was patched to work with the new server. The drivers for Vesa, NV,NVIDIA and ATI have been tested thoroughfully and seem to work fine. A complete changelog of Xorg 7.5 can you read here: http://www.x.org/releases/X11R7.5/ A note to FreeBSD 6.X users: We strongly recommend you to update your system to 7.x or above. For updating try portupgrade -af \* or: portmaster -af Please report any problems and issus to x11 (at) FreeBSD.org. Thanks to beat@, rnoland@, fluffy@, stas@ and all testers for their help and Feeback. Tested by: Community and 2x exp-runs * Given that HAL doesn't work on sparc64 and always needs to be disabledmarius2010-02-081-2/+11 | | | | | | there anyway change the default to off for that architecture. Approved by: rnoland * Update xorg-server and friends to 1.6.5.rnoland2010-02-0711-44/+20 | * For ports maintained by ports@FreeBSD.org, remove names and/ordougb2009-12-211-3/+0 | | | | | | | | e-mail addresses from the pkg-descr file that could reasonably be mistaken for maintainer contact information in order to avoid confusion on the part of users looking for support. As a pleasant side effect this also avoids confusion and/or frustration for people who are no longer maintaining those ports. * Mark BROKEN on 9.x: does not builderwin2009-12-161-0/+4 | * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 | | | | | | | | | | | | | | | | | | -Update libtool and libltdl to 2.2.6a. -Remove devel/libtool15 and devel/libltdl15. -Fix ports build with libtool22/libltdl22. -Bump ports that depend on libltdl22 due to shared library version change. -Explain what to do update in the UPDATING. It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop and applications in the runtime. With help: marcus and kwm Pointyhat-exp: a few times by pav Tested by: pgollucci, "Romain Tartière" <romain@blogreen.org>, and a few MarcusCom CVS users. Also, I might have missed a few. Repocopy by: marcus Approved by: portmgr * Allow building on ia64. This does not make it functional, becausemarcel2009-06-202-1/+229 | | | | | | | | ia64 doesn't have any non-serial console. It does allow xorg to build though and in particular xorg-drivers. The latter depends on xorg-server. Ok'd: rnoland@ * Convert most of remaining ports that depend on xorg-libraries toamdmi32009-06-091-1/+2 | | | | | | | | | | | | | modular xorg. - supply corresponding USE_XORG for all imake-using ports that need it - USE_IMAKE no longer implies USE_XLIB in absence of USE_XORG - retire USE_X_PREFIX which is not really used anywhere after the above change - a few minor nits like whitespace and SF macro Tested by: 2 tinderbox runs by pav Approved by: portmgr (pav) * Update Xserver and friends to 1.6.1rnoland2009-05-0812-41/+35 | * Update Xorg server to 1.6.0rnoland2009-04-0419-625/+111 | | | | | | | | o Update randrproto, libXrandr and xrandr to 1.3.0 o Update xf86-video-intel to 2.6.3 o Update other less common drivers as needed o Mark a bunch of un-maintained input drivers ignored o Update the various slave X server ports as well * Given that the x86-centric approach of mmap(2)'ing PCI memory viamarius2009-04-012-1/+14 | | | | | | | | mem(4) doesn't work on sparc64, revert to the pre-libpciaccess approach of using the tty(4) device opened by the X server there. Hopefully we have proper MI means of doing so one day. Approved by: flz * Add the patch that I missed in the last commit.rnoland2009-03-091-0/+90 | * Add a patch from git to fix issues with gnome-2.25.rnoland2009-03-092-2/+1 | | | | Requested by: marcus * Add a patch to handle memory barriers on amd64 the same as linux.rnoland2009-03-032-1/+12 | | | | | | This is reported to prevent some lockups with the nv driver on amd64. http://bugs.freedesktop.org/show_bug.cgi?id=3168 * Add a patch to deal with the hald/xorg startup race. With this patchrnoland2009-02-082-1/+144 | | | | | | it should be safe for hald to start even after the Xserver. Obtained from: xorg-devel * - Replace open(2)/close(2) pairs with stat(2). Closing mouse device hasjkim2009-02-052-28/+62 | | | | | | | a side effect of changing current operation level and sysmouse(4) lets you open /dev/sysmouse multiple times unlike other mouse drivers. - Check if /dev/mouse is linked to /dev/psm0 or /dev/ums0. - Simplify the patches a little while I am here. * - Partially back out the previous attempt to fix PS/2 protocol support.jkim2009-02-032-14/+23 | | | | | | | | | | | | Extended PS/2 protocol without moused(8) is only supported from FreeBSD 7.1 and above. - Try default PS/2 and USB mouse ports if /dev/sysmouse does not exist. Previously, it was only available when HAL support was compiled in. They should be able to handle SysMouse protocol at operation level 1. - Check protocol for ums(4) as it only supports SysMouse protocol. - Sync X server with mouse driver. Reviewed by: rnoland * Add dependency on dri2proto to more server components.rnoland2009-01-283-3/+6 | | | | Reported by: pointyhat (pav) * Build record and xtrap extensions.flz2009-01-272-2/+7 | | | | | PR: ports/131033 Submitted by: "Sergey N. Voronkov" <serg@tmn.ru> * add dri2proto depend here as wellrnoland2009-01-261-1/+2 | | | | | Reported by: pointyhat (pav) Approved by: garga (mentor, implicit) * Add dependency on dri2protornoland2009-01-261-1/+2 | | | | Approved by: garga (mentor, implicit) * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-24