From 96c3e4b883961fdeb6cc032388da6f5e7b942d58 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Fri, 22 Nov 2024 01:37:30 -0500 Subject: Replace GtkSourceView with GtkTextView As Stickynotes doesn't seem to work with GtkSourceView anymore --- stickynotes/sticky-notes-note.ui | 7 +++---- stickynotes/stickynotes.c | 2 +- stickynotes/stickynotes.h | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/stickynotes/sticky-notes-note.ui b/stickynotes/sticky-notes-note.ui index 8f8a1781..3a734cc1 100644 --- a/stickynotes/sticky-notes-note.ui +++ b/stickynotes/sticky-notes-note.ui @@ -2,9 +2,8 @@ - - - -1 + + @@ -129,7 +128,7 @@ never never - + True True word diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index b2ebb85c..e1e1f8cb 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -139,7 +139,7 @@ stickynote_new_aux (GdkScreen *screen, gtk_widget_add_events (note->w_lock, GDK_BUTTON_PRESS_MASK); note->buffer = - GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (note->w_body))); + GTK_TEXT_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (note->w_body))); note->w_close = GTK_WIDGET (gtk_builder_get_object (builder, "close_button")); diff --git a/stickynotes/stickynotes.h b/stickynotes/stickynotes.h index 3a524189..3edea16a 100644 --- a/stickynotes/stickynotes.h +++ b/stickynotes/stickynotes.h @@ -50,7 +50,7 @@ typedef struct GtkWidget *w_resize_se; /* Sticky Note resize button (south east) */ GtkWidget *w_resize_sw; /* Sticky Note resize button (south west) */ - GtkSourceBuffer *buffer; /* Sticky Note text buffer for undo/redo */ + GtkTextBuffer *buffer; /* Sticky Note text buffer for undo/redo */ GtkCheckMenuItem *w_lock_toggle_item; /* Lock item in the popup menu */ -- cgit v1.2.1