diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-07 09:43:28 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-07 09:43:28 +0200 |
commit | 9b55f2dec0ea27a9ce4856e303425e12f866cea2 (patch) | |
tree | 87b723739c420cb7bb4ca7db20dc1d7fc2b3de05 /src/tools/clipboard.c | |
parent | 66f9a6b7219391b2c8bee5967f5ef7e223fd5d23 (diff) | |
download | profani-tty-9b55f2dec0ea27a9ce4856e303425e12f866cea2.tar.gz |
Apply coding style
Regards https://github.com/profanity-im/profanity/issues/1396
Diffstat (limited to 'src/tools/clipboard.c')
-rw-r--r-- | src/tools/clipboard.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tools/clipboard.c b/src/tools/clipboard.c index 9454915c..9485a4ad 100644 --- a/src/tools/clipboard.c +++ b/src/tools/clipboard.c @@ -36,8 +36,8 @@ #include "config.h" #ifdef HAVE_GTK -#include <gtk/gtk.h> #include <glib.h> +#include <gtk/gtk.h> #include <stdlib.h> #include "log.h" @@ -50,13 +50,15 @@ void clipboard_init(int argc, char **argv) { } */ -char *clipboard_get(void) { - gchar *clip; +char* +clipboard_get(void) +{ + gchar* clip; - GtkClipboard *cl = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); + GtkClipboard* cl = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); gtk_clipboard_clear(cl); - if(cl==NULL) { + if (cl == NULL) { log_error("Could not get clipboard"); return NULL; } |