Christopher Davis
5cffec4456
Retire app-menu
...
For https://gitlab.gnome.org/GNOME/Initiatives/issues/4 ,
the application menu is being retired, with it's contents
being moved into the in-window primary window.
When removing a menu, the shortcuts for it's actions (if defined
in the menu) are also removed. The "Quit" shortcut is now
defined in src/gcal-window.c.
Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/319
2018-11-06 13:29:17 +00:00
Georges Basile Stavracas Neto
7d99af9c36
window: Simplify window menu
...
We could have relied on the popover menu automatic
menu handling capabilities from the very beginning.
2018-07-29 00:54:02 -03:00
Georges Basile Stavracas Neto
89e80e688b
appmenu: Remove "New Event" entry
...
The "New Event" menu item is confusing and misleading, since
it is contextless item that has a context-aware action. The
result varies depending on which view you are, but this is in
no way communicated.
So just remove that, and all the GcalWindow API that is not
used anymore altogether.
2018-07-29 00:54:02 -03:00
Georges Basile Stavracas Neto
74f353eb33
window: Make menu completely non-homogeneous
2018-01-27 23:54:04 -02:00
Georges Basile Stavracas Neto
c4ca9cac3c
project: Rename GcalSearchView to GcalSearchPopover
...
This was never a view, but a popover.
2018-01-27 23:02:36 -02:00
Georges Basile Stavracas Neto
499db7bfd4
weather: Rework weather management
...
This commit brings a few changes that I was too lazy to
split in different commits:
* Remove a few useless arguments in the GcalWeatherService API
* Move the weather management code from GcalWindow to GcalWeatherSettings
* A few style changes
2018-01-27 20:36:29 -02:00
Piotr Drąg
d491e83d27
ui: Unmark placeholder strings from translation
2017-12-20 20:10:13 +01:00
Georges Basile Stavracas Neto
b8f51e1d3d
window: a load more weather changes
2017-12-17 11:35:19 -02:00
alex285
868e0de889
window: add org-gnome-Calendar style class
...
Currently there is no way for a theme to add some specific styles (eg colors) on Calendar widgets, without upstreaming their CSS.
This commit adds the org-gnome-Calendar CSS class on the main window, as a helper selector. (See bug #227 )
2017-12-07 14:34:58 +02:00
Mohammed Sadiq
f1a8aaed5f
window: Simplify navigation code
...
Using <accelerator> in GtkBuilder can simplify lots of C code.
2017-12-06 21:40:15 +05:30
Piotr Drąg
cf13c0cbb1
window: add context to a tooltip string
...
To disambiguate it from the exact same string in AppData.
Some languages need to translate them differently.
2017-03-27 20:22:17 +02:00
Kevin Lopez
c3bffd5eeb
search-view: no show search view if field is empty
...
When the search field is empty is not needed show the result drop down.
https://bugzilla.gnome.org/show_bug.cgi?id=747962
2017-03-16 21:32:04 -03:00
Georges Basile Stavracas Neto
343283e37a
week-grid: implement event creation
2016-12-13 16:29:07 -02:00
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