diff options
author | lukefromdc <[email protected]> | 2024-11-22 01:37:30 -0500 |
---|---|---|
committer | Luke from DC <[email protected]> | 2024-11-27 03:49:44 +0000 |
commit | 96c3e4b883961fdeb6cc032388da6f5e7b942d58 (patch) | |
tree | 74e051e1ffba48b54160a0e84525c6a75bbfeaca | |
parent | b6c248aad24637a75e50d56280860d3a8a308dc1 (diff) | |
download | mate-applets-96c3e4b883961fdeb6cc032388da6f5e7b942d58.tar.bz2 mate-applets-96c3e4b883961fdeb6cc032388da6f5e7b942d58.tar.xz |
Replace GtkSourceView with GtkTextView
As Stickynotes doesn't seem to work with GtkSourceView anymore
-rw-r--r-- | stickynotes/sticky-notes-note.ui | 7 | ||||
-rw-r--r-- | stickynotes/stickynotes.c | 2 | ||||
-rw-r--r-- | 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 @@ <!-- Generated with glade 3.22.1 --> <interface> <requires lib="gtk+" version="3.22"/> - <requires lib="gtksourceview" version="4.0"/> - <object class="GtkSourceBuffer" id="body_buffer"> - <property name="max_undo_levels">-1</property> + <requires lib="GtkTextView" version="4.0"/> + <object class="GtkTextBuffer" id="body_buffer"> </object> <object class="GtkMenu" id="stickynote_menu"> <child> @@ -129,7 +128,7 @@ <property name="hscrollbar_policy">never</property> <property name="vscrollbar_policy">never</property> <child> - <object class="GtkSourceView" id="body_text"> + <object class="GtkTextView" id="body_text"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="wrap_mode">word</property> 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 */ |