gpointing-device-settings r34 - trunk/src
- From: hiikezoe svn gnome org
- To: svn-commits-list gnome org
- Subject: gpointing-device-settings r34 - trunk/src
- Date: Fri, 27 Feb 2009 09:40:56 +0000 (UTC)
Author: hiikezoe
Date: Fri Feb 27 09:40:56 2009
New Revision: 34
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=34&view=rev
Log:
Use g_clear_error.
Remove unused files.
Removed:
trunk/src/gpds-trackpoint-ui.c
trunk/src/gpds-trackpoint-ui.h
Modified:
trunk/src/gpointing-device-settings.c
Modified: trunk/src/gpointing-device-settings.c
==============================================================================
--- trunk/src/gpointing-device-settings.c (original)
+++ trunk/src/gpointing-device-settings.c Fri Feb 27 09:40:56 2009
@@ -68,26 +68,28 @@
ui = gpds_ui_new(name->data);
uis = g_list_prepend(uis, ui);
- if (!gpds_ui_is_available(ui, NULL))
+ if (!gpds_ui_is_available(ui, &error)) {
+ if (error) {
+ g_warning("%s", error->message);
+ g_clear_error(&error);
+ }
continue;
+ }
gpds_ui_build(ui, &error);
if (error) {
g_warning("%s", error->message);
- g_error_free(error);
- error = NULL;
+ g_clear_error(&error);
}
widget = gpds_ui_get_content_widget(ui, &error);
if (error) {
g_warning("%s", error->message);
- g_error_free(error);
- error = NULL;
+ g_clear_error(&error);
}
label = gpds_ui_get_label_widget(ui, &error);
if (error) {
g_warning("%s", error->message);
- g_error_free(error);
- error = NULL;
+ g_clear_error(&error);
}
if (!widget)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]