Fix tabs being used for spaces in some source code files
This commit is contained in:
parent
419b078104
commit
22ed014123
8
glfw/dbus_glfw.c
vendored
8
glfw/dbus_glfw.c
vendored
@ -318,15 +318,15 @@ glfw_dbus_connect_to_session_bus() {
|
|||||||
DBusError error;
|
DBusError error;
|
||||||
dbus_error_init(&error);
|
dbus_error_init(&error);
|
||||||
if (session_bus) {
|
if (session_bus) {
|
||||||
dbus_connection_unref(session_bus);
|
dbus_connection_unref(session_bus);
|
||||||
}
|
}
|
||||||
session_bus = dbus_bus_get(DBUS_BUS_SESSION, &error);
|
session_bus = dbus_bus_get(DBUS_BUS_SESSION, &error);
|
||||||
if (dbus_error_is_set(&error)) {
|
if (dbus_error_is_set(&error)) {
|
||||||
report_error(&error, "Failed to connect to DBUS session bus");
|
report_error(&error, "Failed to connect to DBUS session bus");
|
||||||
session_bus = NULL;
|
session_bus = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
static const char *name = "session-bus";
|
static const char *name = "session-bus";
|
||||||
if (!dbus_connection_set_watch_functions(session_bus, add_dbus_watch, remove_dbus_watch, toggle_dbus_watch, (void*)name, NULL)) {
|
if (!dbus_connection_set_watch_functions(session_bus, add_dbus_watch, remove_dbus_watch, toggle_dbus_watch, (void*)name, NULL)) {
|
||||||
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to set DBUS watches on connection to: %s", name);
|
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to set DBUS watches on connection to: %s", name);
|
||||||
dbus_connection_close(session_bus);
|
dbus_connection_close(session_bus);
|
||||||
|
|||||||
@ -65,7 +65,7 @@
|
|||||||
"osmesa_context.h",
|
"osmesa_context.h",
|
||||||
"linux_joystick.h",
|
"linux_joystick.h",
|
||||||
"null_joystick.h",
|
"null_joystick.h",
|
||||||
"linux_notify.h"
|
"linux_notify.h"
|
||||||
],
|
],
|
||||||
"protocols": [
|
"protocols": [
|
||||||
"stable/xdg-shell/xdg-shell.xml",
|
"stable/xdg-shell/xdg-shell.xml",
|
||||||
@ -90,7 +90,7 @@
|
|||||||
"backend_utils.c",
|
"backend_utils.c",
|
||||||
"linux_joystick.c",
|
"linux_joystick.c",
|
||||||
"null_joystick.c",
|
"null_joystick.c",
|
||||||
"linux_notify.c"
|
"linux_notify.c"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"wayland_protocols": [
|
"wayland_protocols": [
|
||||||
@ -131,7 +131,7 @@
|
|||||||
"osmesa_context.h",
|
"osmesa_context.h",
|
||||||
"linux_joystick.h",
|
"linux_joystick.h",
|
||||||
"null_joystick.h",
|
"null_joystick.h",
|
||||||
"linux_notify.h"
|
"linux_notify.h"
|
||||||
],
|
],
|
||||||
"sources": [
|
"sources": [
|
||||||
"x11_init.c",
|
"x11_init.c",
|
||||||
@ -148,7 +148,7 @@
|
|||||||
"backend_utils.c",
|
"backend_utils.c",
|
||||||
"linux_joystick.c",
|
"linux_joystick.c",
|
||||||
"null_joystick.c",
|
"null_joystick.c",
|
||||||
"linux_notify.c"
|
"linux_notify.c"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@ -839,7 +839,7 @@ handleEvents(double timeout)
|
|||||||
wl_display_cancel_read(display);
|
wl_display_cancel_read(display);
|
||||||
}
|
}
|
||||||
glfw_ibus_dispatch(&_glfw.wl.xkb.ibus);
|
glfw_ibus_dispatch(&_glfw.wl.xkb.ibus);
|
||||||
glfw_dbus_session_bus_dispatch();
|
glfw_dbus_session_bus_dispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Translates a GLFW standard cursor to a theme cursor name
|
// Translates a GLFW standard cursor to a theme cursor name
|
||||||
|
|||||||
@ -7,7 +7,8 @@ set wildignore+=tags
|
|||||||
set expandtab
|
set expandtab
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
set softtabstop=0
|
||||||
|
set smarttab
|
||||||
python <<endpython
|
python <<endpython
|
||||||
import sys
|
import sys
|
||||||
sys.path.insert(0, os.path.abspath('.'))
|
sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user