Commit Graph
190 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 46deb620e7 app-menu: add a Calendars... item in the app menu
I won't hurt to have 2 ways to access this dialog and,
appearently, the current behavior happens to bother
some users.

https://bugzilla.gnome.org/show_bug.cgi?id=762705
2016-05-20 22:33:35 -03:00
Anwar Sadath 8fd6138972 edit-dialog: button labels using header capitalisation
All the button labels in edit dialog following header capitalisation.

https://bugzilla.gnome.org/show_bug.cgi?id=747961
2016-05-20 13:07:44 -03:00
Isaque Galdino 97d8859574 year-view: Remove hardcoded values
Improve year-view code, removing hardcoded values.

year-view have hardcoded values for grid cell sizes (width and height).
Those values need to be recalculated every time a change in font or any
other style are changed.

Sidebar width was also hardcoded instead of getting its value directly
from the ui file. That would prevent it from drawing the content
accordingly when ui file is changed.

This patch fixes those two issues by retrieving those values from CSS or
ui files.

This patch also adds code to resize and redraw the window when
show-week-numbers property is changed.

Popover mode was also changed and now sidebar will always be shown when
show-week-numbers is set or when there is space for only 3 or less
columns.

https://bugzilla.gnome.org/show_bug.cgi?id=753533
2016-05-16 12:03:39 -03:00
Georges Basile Stavracas Neto b03edc6cd4 theme: drop .views CSS class
The default class for content viewers in Gtk+ is .view and
ideally provided by the theme. Not only that, but it provides
the exact same functionality of ours, but in a way that is
overridable for theme designers.

Fix this issue by removing the class from out CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=765664
2016-05-08 14:45:57 -03:00
fosero 12ad480672 window.ui: Don't destroy GcalSourceDialog on close.
Since the change in d5cd6c7fc9 closing
the source dialog actually destroyed it and could not be used again.

Use gtk_widget_hide_on_delete to handle the delete-event.

https://bugzilla.gnome.org/show_bug.cgi?id=764280
2016-04-07 18:37:17 -03:00
Piotr Drąg 69e2586c7f Correct marking of translatable string 2016-03-15 23:58:21 +01:00
pandusonu2 69e1fdd5f3 window: add can_focus property to GcalMonthView
In the commit, we made the initial value of can_focus for month-view to be set true, which was by default taken to be false.

The problem is that when we open the month-view in gnome calendar, the input focus is not set to the month view which resulted in the failue of navigation keys initially.

To fix this, the default value of the focus is set to true in the window.ui file.

https://bugzilla.gnome.org/show_bug.cgi?id=763160
2016-03-06 20:15:20 -03:00
Georges Basile Stavracas Neto ab902030e7 edit-dialog: don't destroy the dialog on delete 2016-02-29 18:09:59 -03:00
Georges Basile Stavracas Neto 4ce918c9aa project: add a shortcuts window
And with this, we finish the last big UI change
that will land for 3.20.
2016-02-16 18:26:02 -02:00
Georges Basile Stavracas Neto 9ff5e05f9c app: automatically load resources from base path
We don't have to load most of the menus we're currently loading
by using the very handy automatic resource loading.

This patch fixup so the app loads resources automagically.
2016-02-16 18:12:18 -02:00
Georges Basile Stavracas Neto 7c0e3776e1 window: use GcalQuickAddPopover internally
Saves a lot of code from the window file, and makes
things better. Yay!
2016-02-16 13:37:54 -02:00
Georges Basile Stavracas Neto 11070f1d17 quick-add-popover: new class to handle new events
Instead of throwing it all for GcalWindow to handle,
add a new class called GcalQuickAddPopover that handles
event creation.

Events are always all day when created from the quick
add popover, unless the user wants to change it and click
'Edit Details' button.

In the future, we'll look forward adding natural language
support, so the user can type the times directly from the
entry (like e.g. "soccer at park from 10am to 11:30am").
2016-02-16 13:32:35 -02:00
Georges Basile Stavracas Neto 6a64384971 year-view: don't allow selection on event list 2016-02-16 03:49:13 +01:00
Georges Basile Stavracas Neto 070bc681fc edit-dialog: simplify code
We don't need to have 2 functions that do exactly
the same thing.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto 34ff93ce3f time-selector: use GDateTime
Pretty much like the previous commit, but porting the
GcalTimeSelector class.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto afe8def60c date-selector: use GDateTime internally
Using a GDateTime improves consistency with the
other components (ideally, we'll move completely
to GDateTime) and simplifies the code.

This commit adds a new property GcalDateSelector::date
and adapts the API to use GDateTime.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto 0ec0ea8121 event-widget: use GcalEvent internally
This saves a lot of code, and is much saner to maintain.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto 5b8a26ec71 year-view: port to css nodes
Mainly by removing the gtk_widget_get_state_flags()
calls.
2016-01-04 16:50:40 -02:00
Georges Basile Stavracas Neto 961bf5dc88 window: setup edit dialog from UI file
This commit sets up the edit dialog from the window's ui
resource file, in a series of commits that tries to move
all C code to the UI definitions.

Also, GcalManager is a full GObject class, not a simple
pointer. As such, update the property spec to be of type
object, not pointer.
2015-12-30 17:37:12 -02:00
Georges Basile Stavracas Neto 13c4145507 edit-dialog: add ::writable and ::manager properties
By using these properties, we gain the possibility to
bind them to the widgets and save some needless code.

This commit adds GcalEditDialog::writable and ::manager
properties. Other needed properties will be eventually
added in the subsequent commits.
2015-12-30 17:34:29 -02:00
Georges Basile Stavracas Neto de207f9c63 edit-dialog: move bindings to UI file
We don't need to manually bind these properties in
the source code if we can make it on the UI files.
2015-12-30 15:05:20 -02:00
Haohong Wang 45c4e72e69 window: split arrow buttons from Today button
Remove the misleading of previous/next buttons' placement.
Seperated Today button from the GtkBox and reorganized
arrow buttons' order.

http://bugzilla.gnome.org/show_bug.cgi?id=755211
2015-12-14 09:57:06 -02:00
Haohong Wang dc1a7f591b Create event popover: swap buttons' position.
In the create event popover, the Create button is considered to be the right-most button. Because create is a positive action, it seems that it should be the default at the rightmost position.

Swaped create_button and details_button's left_attach arguments.

https://bugzilla.gnome.org/show_bug.cgi?id=747058
2015-12-10 11:42:44 -02:00
Seán de Búrca 0773072088 Correct string error 2015-11-01 11:03:44 -06:00
Georges Basile Stavracas Neto d644cbc8bf search-view: update UI to match upstream
Latest GNOME applications follow a clear style of
searching and displaying results, with a no results
page.

To create a coherent usage between GNOME applications,
add the No results page to search popover.
2015-07-17 02:19:44 -03:00
Georges Basile Stavracas Neto b56540a8d7 window: add tooltips to header buttons
In the case the user have any doubts about each
button, a nice tooltip shows and enlightens one's
mind.
2015-07-15 21:26:50 -03:00
Georges Basile Stavracas Neto 72c2988ff3 source-dialog: remove unused code 2015-07-15 21:10:27 -03:00
Georges Basile Stavracas Neto 80693e9ae5 edit-dialog: remove unused code 2015-07-15 21:10:12 -03:00
Georges Basile Stavracas Neto b1540e3f41 window: code cleanup
Remove the unneeded code to manage search bar visibility,
since it is correctly hidden now. Also, clean up some UI
code.
2015-07-15 20:57:12 -03:00
Georges Basile Stavracas Neto 0c1df74735 month-view: add keyboard navigation
This big patch implements keyboard navigation for
Month view and the main window. Also, refactor
some of it's drawing code.
2015-07-15 20:40:55 -03:00
Georges Basile Stavracas Neto 40b39337f3 source-dialog: remove deprecated xalign for buttons 2015-05-25 12:36:55 -04:00
Georges Basile Stavracas Neto 47674b4d61 source-dialog: remove the annoying 2px border from the dialog 2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto ef9d1301d9 source-dialog: use a builder .ui definition for interface
We know that coding interfaces sucks, so use a .ui file instead.
2015-05-25 12:36:54 -04:00
Erick Pérez Castellanos b1fc6991e9 calendars' popover: refine UI
Always show Calendars Settings button. Scroll only the list of calendars.
2015-05-25 12:36:54 -04:00
Erick Pérez Castellanos c2d89a5903 build: simplify UI files using gtk-builder-tool 2015-05-25 12:36:54 -04:00
Erick Pérez Castellanos fb73f6574b calendar's popover: use GbScrolledWindow
This solve the problem of too many calendars making the window too tall.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=749459
2015-05-25 12:36:54 -04:00
Georges Basile Stavracas Neto 9838c7fa41 window: fix more styling issues 2015-05-25 12:35:59 -04:00
Georges Basile Stavracas Neto 350cd5ea85 source-dialog: fix style 2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto a9364d83cb window: better name Calendar Settings button 2015-05-25 12:35:58 -04:00
Georges Basile Stavracas Neto 134d8678fe source-dialog: connect the signal 2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto 321882f4b2 source-dialog: use subtitles to improve user discoveribility
Make it clear that you can configure your account
by clicking the row.
2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto 87299afe01 project: add online account row UI for source dialog 2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto 5862f1671f window: add source dialog to builder file again 2015-05-25 12:35:57 -04:00
Georges Basile Stavracas Neto 0142b0494e window: instance source dialog on init 2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto 75de5bb5b1 source-dialog: add some more properties 2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto 67ca57d1c9 source-dialog: connect ::row-activated signal to the handler 2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto 5d6fe1b7f4 source-dialog: revalidates on entry activation 2015-05-25 12:35:56 -04:00
Georges Basile Stavracas Neto a704bd3d4c source-dialog: add a smooth transition to web sources listbox 2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto cee837fe61 source-dialog: remove unneeded properties 2015-05-25 12:35:55 -04:00
Georges Basile Stavracas Neto 00b580fd6d source-dialog: forbit selecing discovered calendars' row 2015-05-25 12:35:55 -04:00