Commit Graph
62 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 36f716ebf4 week-view: reimplement editing events 2016-12-08 18:23:25 -02:00
pandusonu2 028eb7b994 window: initialize and include week-view in the main window
We add the week-view to the views_stack.
Initialize the GtkWidget week_view in the gcal-window.c
2016-12-01 23:48:52 -02:00
Ernestas Kulik fd4ba42b2b window: propagate calendar list children height
Without propagating the children height in the calendar popover scrolled
window, the list does not grow vertically.

https://bugzilla.gnome.org/show_bug.cgi?id=771399
2016-09-14 13:13:36 -03:00
Georges Basile Stavracas Neto 33c7031164 project: remove GbScrolledWindow
The max-content-height property was ported to GtkScrolledWindow,
which means we don't have to use a custom class anymore.
2016-06-17 18:18:38 -03:00
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
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 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 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 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
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
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 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
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 a9364d83cb window: better name Calendar Settings button 2015-05-25 12:35:58 -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 d0351b9b69 window: update button name
To match the mockups
2015-05-25 12:35:32 -04:00
Georges Basile Stavracas Neto ab46c242ae window: update calendar popover button
The current mockups removed
the '+' button and changed
the button label to 'Calendar
Settings'. Update the popover
to match the mockups.
2015-05-25 12:35:30 -04:00
Georges Basile Stavracas Neto 17f56895dd window: use markup label for in-app notification 2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 9df8b8077d window: implement removing and undoing the removal of a calendar
We're still facing the bug where the just-added calendar segfaults when removed.
2015-05-25 12:35:26 -04:00
Georges Basile Stavracas Neto 143444ddd5 window: show source dialog when a calendar is activated 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 34f9266966 window: fix signal name 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto 6dccbfe431 window: show sources dialog 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto ee2c22b950 window: add a GcalSourceDialog instance 2015-05-25 12:31:05 -04:00
Georges Basile Stavracas Neto cb532bbfbd window: port the calendar popover to GtkListBox
This is a significant rewrite of the calendar popover. Instead of adding actions to the window, it uses a internal map to find the corresponding source.
2015-05-25 12:31:04 -04:00
Georges Basile Stavracas Neto 052e64eb53 window: add accelerators to change date
<Alt>Left for previous date
<Alt>Down or <Ctrl>t for today
<Alt>Right for next date

More expected shortcuts are being discussed and
registered at https://etherpad.gnome.org/p/calendar-keynav.
2015-05-13 11:39:14 -03:00
Erick Pérez Castellanos da3d187ad8 window: fix builder's ui file 2015-04-29 22:32:16 -04:00
Georges Basile Stavracas Neto 80775a1e54 window: change "More Details" button label to "Edit Details"
As asked by Allan, this better describes
the purpose of this button.
2015-04-02 12:38:41 -03:00
Georges Basile Stavracas Neto 955c934956 window: block automatic creation of nameless events
We shouldn't let nameless events be created.
This commit blocks all ways to create them
when the name is not set.

The user can still edit events' data.
2015-04-02 12:35:29 -03:00
Erick Pérez Castellanos 6f2a131d7b search-view: set popover bottom position explicitly 2015-03-02 14:04:32 -05:00
Erick Pérez Castellanos 91defe22de window: handle reissue of in-app notification
For now we throw the first one away, and show the second. Eventually we
could handle this better.
2015-02-16 09:31:21 -05:00
Erick Pérez Castellanos 0aa162a9e7 window: show every widget by default 2015-02-16 09:31:19 -05:00
Erick Pérez Castellanos 2465dfca40 window: add month-view and year-view to UI file 2015-01-27 22:52:20 -05:00
Erick Pérez Castellanos 699bb47363 window: remove unneeded GcalNavBar
Previously GcalNavBar sported navigation buttons (which are gone) and
the labels. The labels alone are easily drawn inside the views, and we
could use the space more wisely.
2015-01-20 13:47:38 -05:00
Georges Basile Stavracas Neto 9cc0dda7d4 window: change the transition to crossfade
There is no linear relation of day, month and year views.

As such, it is better to not try to suggest it.
2015-01-14 15:00:38 -02:00
Georges Basile Stavracas Neto 6094cb7b69 window: fix missing icons from calendar management menu 2015-01-13 13:23:10 -02:00
Miguel Vaello 7f95a80bce window: Setting window minimum height size
Sets a minimum height size to the main window,
allowing always show whole calendar sheet.

This patch sets the "height_request" property directly into
data/ui/window.ui file avoiding the hard coded solution.

https://bugzilla.gnome.org/show_bug.cgi?id=742373
2015-01-09 21:28:29 -02:00
Erick Pérez Castellanos eee9d11633 window: move search-view into ui file
This new impl of search-view will allow a lot of cleaning on GcalWindow impl
2015-01-09 15:01:02 -05:00
Georges Basile Stavracas Neto 469999cd96 window: remove list button from search bar
We won't be using is for now, and it causes a lot of confusion. Also, the behavior is quite broken.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto f0c126b0ee window: fix header display 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto fb7b738ff7 search-view: make it a GtkPopover descendant
This huge patch makes GcalSearchView a GtkPopover
descendant. Also, it poorly adapts GcalWindow to
make it work with it.
2015-01-09 09:16:40 -05:00