Fix tabs being used for spaces in some source code files

This commit is contained in:
Kovid Goyal 2019-02-03 19:59:02 +05:30
parent 419b078104
commit 22ed014123
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
4 changed files with 11 additions and 10 deletions

8
glfw/dbus_glfw.c vendored
View File

@ -318,15 +318,15 @@ glfw_dbus_connect_to_session_bus() {
DBusError error;
dbus_error_init(&error);
if (session_bus) {
dbus_connection_unref(session_bus);
}
dbus_connection_unref(session_bus);
}
session_bus = dbus_bus_get(DBUS_BUS_SESSION, &error);
if (dbus_error_is_set(&error)) {
report_error(&error, "Failed to connect to DBUS session bus");
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)) {
_glfwInputError(GLFW_PLATFORM_ERROR, "Failed to set DBUS watches on connection to: %s", name);
dbus_connection_close(session_bus);

View File

@ -65,7 +65,7 @@
"osmesa_context.h",
"linux_joystick.h",
"null_joystick.h",
"linux_notify.h"
"linux_notify.h"
],
"protocols": [
"stable/xdg-shell/xdg-shell.xml",
@ -90,7 +90,7 @@
"backend_utils.c",
"linux_joystick.c",
"null_joystick.c",
"linux_notify.c"
"linux_notify.c"
]
},
"wayland_protocols": [
@ -131,7 +131,7 @@
"osmesa_context.h",
"linux_joystick.h",
"null_joystick.h",
"linux_notify.h"
"linux_notify.h"
],
"sources": [
"x11_init.c",
@ -148,7 +148,7 @@
"backend_utils.c",
"linux_joystick.c",
"null_joystick.c",
"linux_notify.c"
"linux_notify.c"
]
}
}

2
glfw/wl_window.c vendored
View File

@ -839,7 +839,7 @@ handleEvents(double timeout)
wl_display_cancel_read(display);
}
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

View File

@ -7,7 +7,8 @@ set wildignore+=tags
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=0
set smarttab
python <<endpython
import sys
sys.path.insert(0, os.path.abspath('.'))