Robert Ancell
417fc57392
datetime: Use g_signal_connect_object for all signal handlers
...
This ensures they wont be called when the handling object is destroyed.
Also connect all in "swapped" form for improved readability.
2018-10-18 01:13:49 +00:00
Robert Ancell
d71f705d77
datetime: Use g_auto for variables
...
https://bugzilla.gnome.org/show_bug.cgi?id=788221
2018-01-18 12:30:37 -02:00
Robert Ancell
e779a30927
datetime: Use G_DEFINE_TYPE
2017-09-26 20:20:45 -04:00
Bastien Nocera
ec5d9d05a7
datetime: Fix "format not a string literal" error
...
https://bugzilla.gnome.org/show_bug.cgi?id=764727
2016-04-08 11:31:24 +02:00
Kalev Lember
c0170ffed6
datetime: Fix typo in function name
2014-03-15 22:13:44 +01:00
Kalev Lember
5fa3671289
datetime: Remove unused property setters/getters
2014-03-15 22:13:44 +01:00
Daniel Mustieles
2c5951819d
Updated FSF's address
2014-01-29 11:27:38 +01:00
Kalev Lember
05dc928313
datetime: Add API to draw a text bubble on the timezone map
...
It's currently drawn either west or east of the position marker,
depending where we have more free space.
https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 15:49:59 +02:00
Kalev Lember
9a3265de24
datetime: Show the timezone map in the original, unscaled size
...
https://bugzilla.gnome.org/show_bug.cgi?id=694985
2013-08-20 02:21:06 +02:00
Kalev Lember
fd4df35093
datetime: Move pixbuf loading out of the draw signal handler
...
This moves the timezone location marker image loading code to init()
where most of other resources are loaded, making the draw callback
smaller and easier to read. As a plus, it also avoids needless
allocations during each time the map is drawn.
https://bugzilla.gnome.org/show_bug.cgi?id=706253
2013-08-19 18:42:01 +02:00
Kalev Lember
625583974a
datetime: Use g_clear_object()
...
https://bugzilla.gnome.org/show_bug.cgi?id=706253
2013-08-19 18:41:36 +02:00
Kalev Lember
2dfde249ac
datetime: New location marker image for the timezone map
...
The image was drawn by Andreas Nilsson <anilsson@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=706253
2013-08-19 18:40:32 +02:00
Kalev Lember
be79efe242
datetime: Alignment fixes for the location marker on timezone map
...
Make sure the marker is drawn pixel-aligned to avoid fuzziness, and
ensure that it actually ends up in the visible area.
https://bugzilla.gnome.org/show_bug.cgi?id=706253
2013-08-19 18:40:10 +02:00
Cosimo Cecchi
d2ce735f12
datetime: use a GResource for GtkBuilder UI definition and icons
...
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:05 +01:00
Bastien Nocera
43f33b1387
datetime: Use constants for pin nail's location
2012-10-22 10:53:06 +02:00
William Jon McCann
0703d545a5
datetime: make the map insensitive when the panel is locked
...
https://bugzilla.gnome.org/show_bug.cgi?id=672445
2012-09-03 12:01:42 -04:00
Bastien Nocera
8d15af48c8
datetime: Move backward TZ DB to tz.[ch]
...
So we can add hacks in one location
2011-04-15 02:40:20 +01:00
Cosimo Cecchi
534a7a1eac
datetime: fix a critical when showing the panel
...
The critical was spawned because we were calling gtk_style_attach()
before calling gtk_widget_set_window(), but that code can go away
entirely.
https://bugzilla.gnome.org/show_bug.cgi?id=646836
2011-04-07 09:12:47 -04:00
Bastien Nocera
31be5be9c7
datetime: Add hacks to support more timezones
...
Such as posix/Europe/London, and the likes.
2011-03-15 01:58:29 +00:00
Bastien Nocera
cb3c0af71d
datetime: Return FALSE when we fail to find a timezone
2011-03-15 01:58:29 +00:00
Bastien Nocera
5448188cc4
datetime: Fix crash when TZ is an alias
...
Using the "backward" file from tzdata (available under the public
domain), we load the aliases for real timezones, to look them up
against our database.
https://bugzilla.gnome.org/show_bug.cgi?id=641360
2011-02-04 02:35:05 +00:00
Christian Persch
83a437d2ff
datetime: Create filenames locale-independently
...
Bug #641294 .
2011-02-03 14:30:04 +01:00
Matthias Clasen
5bc2bbe79b
Prevent the date&time panel from growing horizontally
2011-01-25 21:50:55 -05:00
William Jon McCann
d69eba8c17
datetime: don't try to set timezone when initially loading model
2011-01-06 19:07:28 -05:00
William Jon McCann
e3367c92f0
Don't assume that get_preferred_* arguments can't be NULL
...
Fixes a crash introduced by f5f5aac5c0
2010-11-20 13:33:19 -05:00
Matthias Clasen
f5f5aac5c0
Prepare for size_request removal in GTK3
...
https://bugzilla.gnome.org/show_bug.cgi?id=633321
2010-11-08 14:07:47 +01:00
Thomas Wood
45218a7991
datetime: Start implementing new UI designs
...
New UI design from Jakub Steiner and Hylke Bons
2010-10-05 10:41:45 +01:00
William Jon McCann
81065b9b74
Update for new GTK3 drawing APIs
...
https://bugzilla.gnome.org/show_bug.cgi?id=631051
2010-10-01 11:04:43 -04:00
Bastien Nocera
c1ebfb8ce9
datetime: Make map visible again
2010-09-21 14:31:31 +01:00
Bastien Nocera
7fa7ed9c8d
datetime: make s/_/ / simpler
...
By using the same code as in the main panel code.
2010-09-21 14:05:48 +01:00
Thomas Wood
b760bf312c
datetime: ensure the panel does not need the shell to resize horizontally
...
Reduce the width and height required for the timezone map so that the
panel fits into the shell window without needing it to resize
horizontally.
2010-07-22 17:50:00 +01:00
Thomas Wood
20a5421543
datetime: fix various memory leaks
...
- Add a function to free the timezone database
- Use setenv rather than putenv
- Add various missing free() calls
2010-07-16 13:53:34 +01:00
Thomas Wood
939fb9c16a
datetime: add region and city comboboxes
...
Add region and city comboboxes to allow the user to select the timezone
without using the map.
2010-07-15 17:33:28 +01:00
Thomas Wood
93cd5dae5e
datetime: Draw a label to indicate the current location
...
Draw a label on the timezone map to indicate the name and position of the
current location.
2010-07-14 17:29:06 +01:00
Richard Hughes
07968e54ab
Fix compile with recent GTK versions
2010-06-30 17:34:00 +01:00
Thomas Wood
b9d7114c2a
datetime: be sure to unref the old map and color map
2010-06-29 18:16:29 +01:00
Thomas Wood
5ed92c674e
datetime: add a function to set the current location on CcTimezoneMap
...
Add cc_timezone_map_set_timezone function to set the current location on
the map.
2010-06-28 17:59:27 +01:00
Thomas Wood
26ae0134cf
datetime: add detection of location from map clicks
2010-06-28 10:58:43 +01:00
Thomas Wood
e35b73abb5
Add initial implementation of date/time panel
2010-06-16 18:08:43 +01:00