mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 09:23:24 +00:00
added GIMP_MODULE_ERROR domain.
2008-11-12 Sven Neumann <sven@gimp.org> * libgimpmodule/gimpmodule.[ch]: added GIMP_MODULE_ERROR domain. * modules/gimpinputdevicestore-hal.c * modules/gimpinputdevicestore-dx.c * modules/controller-dx-dinput.c: use GIMP_MODULE_ERROR as error domain instead of 0. svn path=/trunk/; revision=27629
This commit is contained in:
parent
b37c8bcf0a
commit
7fa22ebf17
6 changed files with 61 additions and 15 deletions
|
@ -40,6 +40,8 @@
|
|||
|
||||
#include <gdk/gdkwin32.h>
|
||||
|
||||
#include "libgimpmodule/gimpmodule.h"
|
||||
|
||||
#include "gimpinputdevicestore.h"
|
||||
|
||||
|
||||
|
@ -210,19 +212,22 @@ gimp_input_device_store_init (GimpInputDeviceStore *store)
|
|||
|
||||
if ((store->window = create_aux_window (store)) == NULL)
|
||||
{
|
||||
g_set_error (&store->error, 0, 0, "Could not create aux window");
|
||||
g_set_error_literal (&store->error, GIMP_MODULE_ERROR, GIMP_MODULE_FAILED,
|
||||
"Could not create aux window");
|
||||
return;
|
||||
}
|
||||
|
||||
if ((dinput8 = LoadLibrary ("dinput8.dll")) == NULL)
|
||||
{
|
||||
g_set_error (&store->error, 0, 0, "Could not load dinput8.dll");
|
||||
g_set_error_literal (&store->error, GIMP_MODULE_ERROR, GIMP_MODULE_FAILED,
|
||||
"Could not load dinput8.dll");
|
||||
return;
|
||||
}
|
||||
|
||||
if ((p_DirectInput8Create = (t_DirectInput8Create) GetProcAddress (dinput8, "DirectInput8Create")) == NULL)
|
||||
{
|
||||
g_set_error (&store->error, 0, 0, "Could not find DirectInput8Create in dinput8.dll");
|
||||
g_set_error_literal (&store->error, GIMP_MODULE_ERROR, GIMP_MODULE_FAILED,
|
||||
"Could not find DirectInput8Create in dinput8.dll");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -232,7 +237,9 @@ gimp_input_device_store_init (GimpInputDeviceStore *store)
|
|||
(LPVOID *) &store->directinput8,
|
||||
NULL))))
|
||||
{
|
||||
g_set_error (&store->error, 0, 0, "DirectInput8Create failed: %s", g_win32_error_message (hresult));
|
||||
g_set_error (&store->error, GIMP_MODULE_ERROR, GIMP_MODULE_FAILED,
|
||||
"DirectInput8Create failed: %s",
|
||||
g_win32_error_message (hresult));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -242,7 +249,9 @@ gimp_input_device_store_init (GimpInputDeviceStore *store)
|
|||
store,
|
||||
DIEDFL_ATTACHEDONLY))))
|
||||
{
|
||||
g_set_error (&store->error, 0, 0, "IDirectInput8::EnumDevices failed: %s", g_win32_error_message (hresult));
|
||||
g_set_error (&store->error, GIMP_MODULE_ERROR, GIMP_MODULE_FAILED,
|
||||
"IDirectInput8::EnumDevices failed: %s",
|
||||
g_win32_error_message (hresult));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue