aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.semperelh@protonmail.com>2024-03-14 15:16:47 -0300
committerNunoSempere <nuno.semperelh@protonmail.com>2024-03-14 15:16:47 -0300
commit94326a8cad79aad2fd89d45503ada0455d644756 (patch)
treeb86ee9068d887614d0121369a748305c72cf0da1
parentd63ccd10cf1aaf28c23314549c449a89e9b42487 (diff)
minor tweaks
-rw-r--r--plugins/plugins.h4
-rwxr-xr-xrosebin40176 -> 40176 bytes
-rw-r--r--rose.c14
3 files changed, 9 insertions, 9 deletions
diff --git a/plugins/plugins.h b/plugins/plugins.h
new file mode 100644
index 0000000..184e58b
--- /dev/null
+++ b/plugins/plugins.h
@@ -0,0 +1,4 @@
+#include "libre_redirect/libre_redirect.h"
+#include "readability/readability.h"
+#include "shortcuts/shortcuts.h"
+#include "style/style.h"
diff --git a/rose b/rose
index 95c8e0a..f3c043b 100755
--- a/rose
+++ b/rose
Binary files differ
diff --git a/rose.c b/rose.c
index 3205eeb..34a74ad 100644
--- a/rose.c
+++ b/rose.c
@@ -1,12 +1,10 @@
-#include "config.h"
-#include "plugins/libre_redirect/libre_redirect.h"
-#include "plugins/readability/readability.h"
-#include "plugins/shortcuts/shortcuts.h"
-#include "plugins/style/style.h"
#include <stdlib.h>
#include <string.h>
#include <webkit2/webkit2.h>
+#include "config.h"
+#include "plugins/plugins.h"
+
/* Global declarations */
static GtkNotebook* notebook;
static GtkWindow* window;
@@ -399,9 +397,7 @@ int handle_signal_keypress(void* self, GdkEvent* event, GtkNotebook* notebook)
- <https://docs.gtk.org/gdk3/union.Event.html>
- https://docs.gtk.org/gdk3/struct.EventButton.html
*/
- /*
- This API is deprecated in GTK4 :(
- */
+ // This API is deprecated in GTK4 :(
return 0;
}
@@ -414,7 +410,7 @@ int main(int argc, char** argv)
gtk_css_provider_load_from_path(css, "/usr/share/themes/rose/style.css", NULL);
gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), GTK_STYLE_PROVIDER(css), 800);
- /* Initialize GTK objects. These are declared as static globals */
+ /* Initialize GTK objects. These are declared as static globals at the top of this file */
// Notebook
notebook = GTK_NOTEBOOK(gtk_notebook_new());
gtk_notebook_set_show_tabs(notebook, false);