summaryrefslogtreecommitdiff
path: root/Userland/Applets
AgeCommit message (Collapse)Author
2022-01-20Userland: Add horizontal mouse scroll supportDmitry Petrov
2022-01-15LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServersin-ack
This change unfortunately cannot be atomically made without a single commit changing everything. Most of the important changes are in LibIPC/Connection.cpp, LibIPC/ServerConnection.cpp and LibCore/LocalServer.cpp. The notable changes are: - IPCCompiler now generates the decode and decode_message functions such that they take a Core::Stream::LocalSocket instead of the socket fd. - IPC::Decoder now uses the receive_fd method of LocalSocket instead of doing system calls directly on the fd. - IPC::ConnectionBase and related classes now use the Stream API functions. - IPC::ServerConnection no longer constructs the socket itself; instead, a convenience macro, IPC_CLIENT_CONNECTION, is used in place of C_OBJECT and will generate a static try_create factory function for the ServerConnection subclass. The subclass is now responsible for passing the socket constructed in this function to its ServerConnection base; the socket is passed as the first argument to the constructor (as a NonnullOwnPtr<Core::Stream::LocalServer>) before any other arguments. - The functionality regarding taking over sockets from SystemServer has been moved to LibIPC/SystemServerTakeover.cpp. The Core::LocalSocket implementation of this functionality hasn't been deleted due to my intention of removing this class in the near future and to reduce noise on this (already quite noisy) PR.
2022-01-14Everywhere: Use my new serenityos.org e-mail :^)kleines Filmröllchen
2022-01-11Applets/Audio: Propagate errors by extracting out GUI initializationcreator1creeper1
This commit extracts out the GUI initialization in AudioWidget into the new try_initialize_graphical_elements function. This function is now able to use try_set_main_widget instead of set_main_widget. It's only called by the fallible try_create method.
2022-01-11Applets/ResourceGraph: Propagate errors in create_appletcreator1creeper1
We now return an error if we fail to parse the applet spec in the expected format. We can now also use try_set_main_widget instead of set_main_widget.
2022-01-09ClipboardHistory: Update to new glyph formatMaciej
2022-01-03Applets/ResourceGraph: Propagate errors in JSON decodingcreator1creeper1
2022-01-03Applets/Network: Propagate errors using custom try_createcreator1creeper1
We now move-construct the bitmaps into the NetworkWidget.
2022-01-03Applets/Network: Propagate errors with try_set_main_widgetcreator1creeper1
Use try_set_main_widget instead of set_main_widget.
2022-01-03Applets/Audio: Propagate errors using custom try_createcreator1creeper1
We now move-construct the bitmaps into the AudioWidget.
2022-01-03Applets/Audio: Propagate errors with try_set_main_widgetcreator1creeper1
Use try_set_main_widget instead of set_main_widget.
2021-12-24Everywhere: Refactor 'muted' to 'main_mix_muted' in all AudioConnectionsElyse
The 'muted' methods referred to the 'main mix muted' but it wasn't really clear from the name. This change will be useful because in the next commit, a 'self muted' state will be added to each audio client connection.
2021-12-18ClipboardHistory: Convert to try_create_default_iconAstraeus-
2021-12-04Applets/ClipboardHistory: Port to LibMain :^)Andreas Kling
2021-11-30ClipboardHistory: Add debug dump actionJelle Raaijmakers
This allows for easy dumping of clipboard data to the debug console.
2021-11-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-24Applets/Audio: Remove unveiling /tmp/portal/configRalf Donau
2021-11-24Applets/Audio: Port to LibMain :^)Andreas Kling
2021-11-23WorkspacePicker: Port to LibMain :^)Andreas Kling
2021-11-23Applets: Rename DesktopPicker => WorkspacePickerAndreas Kling
This is consistent with the rest of the system.
2021-11-23Applets/Network: Port to LibMain :^)Andreas Kling
This opens up using TRY() for syscalls and Core::Object creation.
2021-11-23LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCoreAndreas Kling
With this change, System::foo() becomes Core::System::foo(). Since LibCore builds on other systems than SerenityOS, we now have to make sure that wrappers work with just a standard C library underneath.
2021-11-22Everywhere: Use Application::construct() with Main::Arguments directlyMustafa Quraish
Use the updated API everywhere we are currently manually passing in `arguments.argc` and `arguments.argv`.
2021-11-22Everywhere: Use ArgsParser::parse() with Main::Arguments directlyMustafa Quraish
Use the updated API everywhere we are currently manually passing in `arguments.argc` and `arguments.argv`.
2021-11-22Applets/ResourceGraph: Port to LibMain :^)Andreas Kling
This simplifies a bunch of calls to pledge() and unveil().
2021-11-22Applets/ResourceGraph: Remove unnecessary unveiling of /etc/passwdAndreas Kling
This used to be needed by Core::ProcessStatisticsReader, but since we no longer use that for the CPU graph, we can just lose it (along with a FIXME about it.)
2021-11-21ClipboardHistory: Properly display bitmap depthBen Wiederhake
2021-11-21LibGUI+Everywhere: Make sync requests to Clipboard server more obviousBen Wiederhake
2021-11-17AK: Make JSON parser return ErrorOr<JsonValue> (instead of Optional)Andreas Kling
Also add slightly richer parse errors now that we can include a string literal with returned errors. This will allow us to use TRY() when working with JSON data.
2021-11-13Everywhere: Replace "virtual desktop" => "workspace"Andreas Kling
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
This was used in a lot of places, so this patch makes liberal use of ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-11-02Applications: Fix visibility of Object-derivative constructorsBen Wiederhake
Derivatives of Core::Object should be constructed through ClassName::construct(), to avoid handling ref-counted objects with refcount zero. Fixing the visibility means that misuses like this are more difficult.
2021-10-27Everywhere: Rename left/right-click to primary/secondaryFiliph Sandström
This resolves #10641.
2021-10-07ResourceGraph: Use /proc/stat instead of /proc/all for CPU usage statsIdan Horowitz
This results in a quite large speedup, as generating /proc/all takes a very long time.
2021-09-22LibGUI: Rename CallOnChange => AllowCallback and implement elsewherethankyouverycool
This is a helpful option to prevent unwanted side effects, distinguish between user and programmatic input, etc. Sliders and SpinBoxes were implementing it idiosyncratically, so let's generalize the API and give Buttons and TextEditors the same ability.
2021-09-19AudioApplet: Refactor window resizingDavid Isaksson
2021-09-19AudioApplet: Get values from AudioServer instead of the config fileDavid Isaksson
2021-09-19AudioApplet: Make sure to set the internal volume on slider changeDavid Isaksson
This fixes the issue that the percent label doesn't update.
2021-09-19AudioApplet: Round the volume to the nearest integerDavid Isaksson
2021-09-19AudioApplet: Update the volume slider on update from audio serverDavid Isaksson
2021-09-18ClipboardHistory: Listen for configuration changesMustafa Quraish
Resize the clipboard history size dynamically by listening for config changes. This is currently not ideal since we don't have the callbacks for `Config::Listener::config_i32_did_change`, so for now we are just taking the string and attempting to convert it to an int.
2021-09-18ClipboardHistory: Use config file to set number of history itemsMustafa Quraish
The number of items in history was hardcoded to 20 earlier, now we try to load this value from a config file. The default if none is available is still 20.
2021-09-12Audio: Change how volume workskleines Filmröllchen
Across the entire audio system, audio now works in 0-1 terms instead of 0-100 as before. Therefore, volume is now a double instead of an int. The master volume of the AudioServer changes smoothly through a FadingProperty, preventing clicks. Finally, volume computations are done with logarithmic scaling, which is more natural for the human ear. Note that this could be 4-5 different commits, but as they change each other's code all the time, it makes no sense to split them up.
2021-09-04AudioApplet: Fix initial mute stateKarol Kosek
During conversion from Core::ConfigFile to LibConfig in c646efaf49e2d79d7cbcabb561c62977f2f084d3, the requested key name has been changed from 'Mute' to 'Muted', resulting in using always the default value.
2021-09-01Everywhere: Use my cool new @serenityos.org email addressPeter Elliott
2021-08-31AudioApplet: Fix applet positioning bugJoe Bentley
Currently when clicking the percentage toggle, there is a delay in moving the applet window position. This is because after the applet is resized, the applet area is repositioned asynchronously. This takes advantage of the new AppletAreaRectChange event to reposition the slider window when necessary.
2021-08-27AudioApplet: Remove `wpath` and `cpath` priviligesMustafa Quraish
2021-08-27AudioApplet: Use LibConfig instead of Core::ConfigFileMustafa Quraish
No longer need to store `RefPtr<Core::ConfigFile>` :^)
2021-08-22Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to opennetworkException
This patch brings the ConfigFile helpers for opening lib, app and system configs more inline with the regular ConfigFile::open functions.
2021-08-22Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writingnetworkException