Mercurial > pidgin
annotate plugins/mono/loader/status-glue.c @ 13794:ecfd8fb02c19
[gaim-migrate @ 16206]
We don't really need to pop up an error if the sound file doesn't exist
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Tue, 30 May 2006 17:02:27 +0000 |
| parents | 8edb08af68c7 |
| children |
| rev | line source |
|---|---|
| 11980 | 1 #include "status.h" |
| 2 #include "mono-helper.h" | |
| 12442 | 3 #include "mono-glue.h" |
| 11980 | 4 |
| 5 MonoObject* gaim_status_build_status_object(void* data) | |
| 6 { | |
| 7 MonoObject *obj = NULL; | |
| 8 GaimStatus *status = (GaimStatus*)data; | |
| 9 | |
|
11996
ecd33ffb0b0a
[gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents:
11980
diff
changeset
|
10 obj = ml_create_api_object("Status"); |
|
ecd33ffb0b0a
[gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents:
11980
diff
changeset
|
11 g_return_val_if_fail(obj != NULL, NULL); |
|
ecd33ffb0b0a
[gaim-migrate @ 14289]
Gary Kramlich <grim@reaperworld.com>
parents:
11980
diff
changeset
|
12 |
| 11980 | 13 ml_set_prop_string(obj, "Id", (char*)gaim_status_get_id(status)); |
| 14 | |
| 15 return obj; | |
| 16 } |
