gnome-control-center r9231 - trunk/capplets/about-me
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r9231 - trunk/capplets/about-me
- Date: Sun, 1 Feb 2009 18:22:54 +0000 (UTC)
Author: jensg
Date: Sun Feb 1 18:22:54 2009
New Revision: 9231
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9231&view=rev
Log:
2009-02-01 Jens Granseuer <jensgr gmx net>
* gnome-about-me.c: (about_me_load_photo), (about_me_update_photo),
(about_me_setup_dialog): fix compiler warnings
Modified:
trunk/capplets/about-me/ChangeLog
trunk/capplets/about-me/gnome-about-me.c
Modified: trunk/capplets/about-me/gnome-about-me.c
==============================================================================
--- trunk/capplets/about-me/gnome-about-me.c (original)
+++ trunk/capplets/about-me/gnome-about-me.c Sun Feb 1 18:22:54 2009
@@ -555,7 +555,8 @@
if (photo && photo->type == E_CONTACT_PHOTO_TYPE_INLINED) {
me->have_image = TRUE;
- e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget), photo->data.inlined.data, photo->data.inlined.length);
+ e_image_chooser_set_image_data (E_IMAGE_CHOOSER (widget),
+ (char *) photo->data.inlined.data, photo->data.inlined.length);
e_contact_photo_free (photo);
} else {
me->have_image = FALSE;
@@ -620,7 +621,7 @@
"compression", "9", NULL);
g_free (data);
- data = scaled_data;
+ data = (guchar *) scaled_data;
length = scaled_length;
}
@@ -635,7 +636,7 @@
error = NULL;
file = g_build_filename (g_get_home_dir (), ".face", NULL);
if (g_file_set_contents (file,
- photo->data.inlined.data,
+ (gchar *) photo->data.inlined.data,
photo->data.inlined.length,
&error) != FALSE) {
g_chmod (file, 0644);
@@ -966,7 +967,7 @@
if (me->book == NULL) {
me->book = e_book_new_system_addressbook (&error);
if (me->book == NULL || error != NULL) {
- g_error ("%s\n", error->message);
+ g_error ("%s", error->message);
g_clear_error (&error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]