Commit Graph
56 Commits
Author SHA1 Message Date
Erick Pérez Castellanos d15c4a5c1b view iface: remove manager property
There's no reason at all why manager should be a property inside the
views. It won't benefit of bindings or anything else inherent to GObject
property system.
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos 9994377c9f subscriber-view: gained ::get_child_by_uuid vfunc
Started migrating methods from GcalView to GcalSubscriber
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 0e5c197c2f subscriber: renamed to GcalSubscriberView
This is more of a semantic change than anything else. GcalSubscriber
will gradually take on GcalView interface and that's why I'm adding the
View suffix.
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos e6a929f3fd view: remove ::mark_current_unit
New event action will open edit-dialog directly so this method is not needed
2014-12-25 20:24:36 -05:00
Erick Pérez Castellanos 4eabc0223b build: remove unneeded code
GObject type system zeroing instance private data, so initialization to
NULL and FALSE is not needed.
Misc code styles fixes.
2014-12-22 21:52:35 -05:00
Georges Basile Stavracas Neto 89b6c57edd week-view: another integer rounding issue
Hopefully, this is the last one on the integer rounding series.
2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto f3e83f2a7a week-view: fixed some more integer round issues 2014-12-04 17:10:53 -05:00
Georges Basile Stavracas Neto d25a6e4cbf views: queue a redraw when the current date changes
This partially fixes bug #739550. The warning message is still being emmited.
2014-12-04 17:10:52 -05:00
Georges Basile Stavracas Neto bb2554b0d4 week-view: fix scrollbar size
Calendar should respect scrollbar natural size. Lapo pointed out that this is pretty inconsistent and should be fixed.

Fixes bug #737854.
2014-12-04 17:10:52 -05:00
Erick Pérez Castellanos 184854e318 week-view: take into account GNOME time format
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703321
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos 8c5eaa66c8 views: fixed docs style 2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos c77076c7d6 week-view: added current day highlight
Cleaned code a little bit. Removed unnecessary instructions. Added style
class to handle current day.
2014-12-04 17:10:51 -05:00
Erick Pérez Castellanos 2cecaf9337 week-view: add first_weekday setting to view
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=703317
2014-12-04 17:10:50 -05:00
Erick Pérez Castellanos 2e82b098b3 build: replace Gtk deprecated calls 2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos d301a07f4b week-view: increase ref count on parent window
The call to GtkWidget::unrealize was destroying GtkStack window because
of the reference increasing on GcalWeekView when setting the
parent_window as its own.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=739554
2014-12-04 17:10:49 -05:00
Erick Pérez Castellanos 9ffabe03ba week-view: fix unref of not added widget
This works in conjunction with code implemented in GcalSubscriber where
the ownership of the event widget passes into the container, so the
container is free to delete it in case it does not fit into the range
represented by the view.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos 48bcb57363 week-view: rename internal method
Note: The body of the method was added by mistake on the previous
commit. This commit make the code build again.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos dc21b70760 week-view: add subscriber range update
Remove unneeded GcalView deprecated method.
Hook event widget activation
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos dd2a0da883 misc: fix styling issues and gcc warnings
Update code style
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos f988eac12f view iface: remove more unused methods
GcalView::draw_event overlapped a bit with GcalView::will_add_event, so
the same reasons for removing one stand for the other.
GcalView::clear was a hack for the composited GcalDayView which has
gone, and was a bad experiment.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos 6f2b01018f view iface: remove unused will_add_event
ECalDataModelSubscriber interface notify each view only about the events
beloging to the subscribed range so there's no need of checking if the
event widget will be added.
The safety check of not adding the same widget twice its stil being made
on each GtkContainer::add implementation.
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos c777d4c852 views: use new comparison function 2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos 3a151894be views: implemented :manager property
As explained before, this is only intended to keep a reference to the
GcalManager instance of the application.
Misc: fixed some documentation and whitespace issues
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos 76582329ef view: add :will_add_event vfunc and stub methods
Note: this commit probably won't build, but this is the right order of
keeping history.
2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos 48f5b36c29 views: ensure initial/final dates have timezones 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos db9d2dfa6b week-view: fixed doc sections 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos b63c59b1d1 week-view: remove deprecated methods and warnings 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos ee1d760398 week-view: modernize Gobject boilerplate code 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos 5ed966dfda week-view: draw header updated 2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos 04dfcd582a week-view: remove navigation controls
This commit just remove the related code. We will make the view work
further along the way.
2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos 5b617388ce week-view: modernize accessing private instance 2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos 7cc4ab07b1 week-view: implement get_left/right_header methods
Add macro to include private instance data into GcalWeekView objects
2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos 9f530a5b8a gcal-view: modified API
Implemented in views.
Reworked GcalDayView implementation to allow bigger
than days events.
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos 4330859ae0 gcal-view: removed unused methods 2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos a5157748bc gcal-view: cleaned GcalView API
Removed GcalView:remove_by_uuid method.
Reordered gcal-view header file.
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos 0c03de1631 docs: fixed docs string 2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos c22792e65e gcal-view: reworked a little more the API
Added API to get the headers for update GcalNavBar
Updated GcalMonthView, GcalWeekView and GcalYearView implementations
Updated calls in GcalWindow
2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos 01145b8916 Migrated to Gtk+-3.8 2013-05-17 14:41:12 -04:00
Erick Pérez Castellanos 9f4a97d536 Renamed widget data structure to GcalWeekChildData.
I will GcalViewChild to gcal-view.h and since GcalWeekView
includes GcalView the will be names clashes.
Anyway, GcalWeekView need a full rework.
2012-12-01 15:28:55 -05:00
Erick Pérez Castellanos 1b0312f653 Minor fixes and comments review. 2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos cc14e10d36 Get month names and weekdays from locale.
Added modification to extract month names from locale instead
of localization files.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos c3acffa9d7 Changed mode declaration for emacs. 2012-09-20 09:00:46 -04:00
Erick Pérez Castellanos 4ef16c7f1a Improving Searchbar looking. Fixes to GcalWeekView 2012-09-10 10:48:48 -04:00
Cosimo Cecchi 4448954370 all: fix GCC uninitialized variables warnings 2012-08-24 19:00:55 +02:00
Erick Pérez Castellanos 009e65cdd3 Fixed bug when destroying child widgets. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos 4fa4912459 Added navigation arrows to weel-view. 2012-08-20 23:49:13 -04:00
Erick Pérez Castellanos 3cdd9cfabf Fixed GcalWeekView scrollbar not showing. 2012-07-19 13:19:05 -04:00
Erick Pérez Castellanos f33feaf6b1 A bunch of UI fixes.
Made lighter the background of the views.
Added padding and fixed class to GcalToolbar.
2012-07-19 01:26:45 -04:00
Erick Pérez Castellanos d03c95e765 Implementing GcalWeekView to match the mockups.
What to say about this commit.
There's just one FIXME in gcal-week-view.c, about the size/width of the
GtkScrollbar used. That should not be hardcoded.
Also the background color applied to the scrollbar through css-theming might be
better placed inside the code, since the effectis part of the view.
About this view is still missing a way of signaling the current day. We are on
it, yet.
2012-07-19 00:58:35 -04:00
Erick Pérez Castellanos f462712227 Added actua date mark to implemented views.
Following mockups by Reda Lazri, the actual day it's marked by drawing a box
around the weekday and a 2px line on the cell belonging to the actual date.
Added icon to gnome-calendar.desktop. Tweaked css a little bit.
2012-07-13 00:17:39 -04:00