Commit graph

7837 commits

Author SHA1 Message Date
Thomas Wood
ce8cd97754 background: implement new UI design from Jakub Steiner 2010-08-25 19:18:05 +01:00
Benjamin Otte
c1b95ff43f display: Copy background setter code from mutter
This code uses the new GDK API to set the window background.

https://bugzilla.gnome.org/show_bug.cgi?id=626870
2010-08-21 04:07:22 +02:00
Benjamin Otte
7ea3249a4a Replace Gdk drawing with Cairo
https://bugzilla.gnome.org/show_bug.cgi?id=626870
2010-08-20 21:38:00 +02:00
Thomas Wood
f41e3268df background: hide the placement options only when a background is selected
Only update the visibility of the placement options when a background is
selected, not when the source is selected.
2010-08-13 17:06:19 +01:00
Thomas Wood
93042f0835 background: prefix the cache filename to avoid conflicts 2010-08-13 17:06:19 +01:00
Thomas Wood
1c05309906 keybindings: ensure the keybindings panel is build with the correct flags
Add PANEL_CFLAGS, PANEL_LIBS and PANEL_LDFLAGS to libkeybinding-properties.
2010-08-13 14:47:33 +01:00
Thomas Wood
2b56a5ea0f background: fix various leaks
Fix various leaks found by valgrind.
2010-08-12 15:12:04 +01:00
Thomas Wood
1418445e13 background: ensure the panel object is still valid when file copy finishes
Take a reference on the panel object when the asynchronous copy is started
so that it is still valid in the callback when the panel is being
destroyed.
2010-08-12 15:12:04 +01:00
Thomas Wood
764f69e852 background: make sure the GnomeWPItems are freed.
Free the GnomeWPItems in the source liststore when the source is destroyed.
2010-08-12 15:12:04 +01:00
Thomas Wood
abdb42e9e2 background: derive background sources from a common source object
Add the BgSource object to define the common aspects of background sources
and make sure the existing sources inherit from it.
2010-08-10 17:01:15 +01:00
Thomas Wood
ef9afe4830 Update gitignore 2010-08-10 15:29:31 +01:00
Thomas Wood
e721f417ad Add initial implementation of "background" panel
The background settings panel provides a way for users to change the
desktop background by selecting an image and/or colour.
2010-08-10 15:26:07 +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
f5c0b73214 panels: Use gi18n-lib.h in the panel libraries 2010-07-22 16:56:27 +01:00
Bastien Nocera
016b81dee8 Fix compile-time warning
cc-default-applications-panel.c: In function ‘cc_default_applications_panel_dispose’:
cc-default-applications-panel.c:73:7: warning: implicit declaration of function ‘gnome_da_xml_free’
cc-default-applications-panel.c:73:7: warning: nested extern declaration of ‘gnome_da_xml_free’
2010-07-22 15:58:22 +01:00
Bastien Nocera
b8e36d5658 Fix possible crasher when theme changes
When the theme or screen changes, we need to make sure that
the previous handler for the theme-changed signal is disconnected
to avoid the callback being called when the panel has been unloaded.

https://bugzilla.redhat.com/show_bug.cgi?id=610289
2010-07-22 15:56:26 +01:00
Colin Walters
576f3895f7 [display] Needs to be linked against dbus-glib
Would be a lot better to port this to GDBus, but in the
interest of correctness we should do this fix now.
2010-07-20 17:23:45 -04: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
Thomas Wood
844a957ade display: hide and unref the screen label when destroyed
Make sure the screen label is not left visible after the panel has been
destroyed.
2010-07-12 18:42:36 +01:00
Thomas Wood
eb52e24f6c Add icons for the Date and Time settings panel
Add icons drawn by Lapo Calamandrei <calamandrei@gmail.com>
2010-07-12 15:33:02 +01:00
Thomas Wood
9089857a89 Completely remove dependency on capplets/common directory
The capplets directory is no longer built or distributed, so the panels
cannot depend on files in it.
2010-07-12 10:39:09 +01:00
Thomas Wood
a582fd4d75 datetime: remove "seconds" spin button
It is not necessary to be able to set the "seconds" of the current time.
Resetting the seconds to zero is appropriate for most users.
2010-07-07 22:45:05 +01:00
Thomas Wood
40232421bf universal-access: add size groups to the lists of objects to create
Create the size groups from the GtkBuilder file so that widgets can be
aligned correctly.
2010-07-06 17:21:00 +01:00
Thomas Wood
59920f88a0 display: replace the use of GdkRegion with cairo_region_t
GdkRegion has been removed in Gtk+ 3 and replaced with cairo_region_t.
2010-07-05 17:57:24 +01:00
Javier Jardón
a5b092326d Use single GDK includes
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=615292
2010-07-05 15:03:32 +01:00
Richard Hughes
07968e54ab Fix compile with recent GTK versions 2010-06-30 17:34:00 +01:00
Thomas Wood
74077861ed datetime: work around a cairo bug
Add an alpha channel to the background map to work around a drawing issue
with cairo.
2010-06-30 15:55:48 +01:00
Jonh Wendell
91c5e26bcf Make build works with GSEAL 2010-06-30 14:01:39 +01:00
Thomas Wood
59f894bf1b datetime: install the UI files into the correct directory 2010-06-30 13:49:49 +01:00
Thomas Wood
4915df9724 datetime: don't try to set the timezone if the current location is unknown 2010-06-29 19:16:25 +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
3776c0fd07 datetime: use X-GNOME-Settings-Panel flag and correct Exec line
Fix the Exec line in the .desktop file and use the X-GNOME-Settings-Panel
property to identify the panel.
2010-06-29 18:09:17 +01:00
Thomas Wood
ae9bb70c5e datetime: add the dbus cflags and libraries 2010-06-29 17:48:57 +01:00
Thomas Wood
8c6eba7878 datetime: fix issues with distcheck
Add translatable files to POTFILES.in or POTFILES.skip and make sure the
data files are included in the distribution.
2010-06-29 14:31:33 +01:00
Thomas Wood
bb229f1491 datetime: define capplet name for GNOMECC_CAPPLETS_CFLAGS 2010-06-29 13:29:30 +01:00
Thomas Wood
2e2b70fab0 datetime: remove default value for the location label
The location label should be blank until the current location information
is available.
2010-06-29 12:52:17 +01:00
Thomas Wood
12e1151128 datetime: propagate dbus errors
Make sure that any dbus errors can be presented in the UI if needed.
2010-06-29 12:51:17 +01:00
Thomas Wood
89e778c362 datetime: get the current system timezone and show it on the map at startup 2010-06-28 18:06:33 +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
8174f22fe7 datetime: add a function to retrieve current timezone from dbus
Add get_system_timezone_async function to request the current timezone from
the SettingsDaemon.DateTimeMechanism dbus object.
2010-06-28 17:48:47 +01:00
Thomas Wood
8db6536da9 datetime: update the time labels when the location is changed
Update the time labels so that the time is changed accordingly with the
timezone.
2010-06-28 11:41:37 +01:00
Thomas Wood
402d7dce03 datetime: replace underscores with spaces for location display name 2010-06-28 11:15:18 +01:00
Thomas Wood
26ae0134cf datetime: add detection of location from map clicks 2010-06-28 10:58:43 +01:00
Thomas Wood
1d60affa61 datetime: use the SettingsDaemon dbus service to set the system time
Use the org.gnome.SettingsDaemon.DateTimeMechanism interface to set the
current system time.
2010-06-28 10:58:43 +01:00
Thomas Wood
12083b85b5 datetime: set spin buttons to the current time at startup 2010-06-28 10:58:43 +01:00
Thomas Wood
3c39f562c6 datetime: Set the correct date and time in the UI
Set the current date in the calendar and keep the current time label
updated.
2010-06-28 10:58:43 +01:00
Thomas Wood
2208f28618 datetime: Add names to the widgets 2010-06-28 10:58:43 +01:00
Thomas Wood
72a7d5e0a6 datetime: Simplify the UI
Remove the multiple locations feature and add current time
labels.
2010-06-28 10:56:56 +01:00