[gedit] commands-edit: use TeplView functions
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] commands-edit: use TeplView functions
- Date: Sun, 12 Apr 2020 16:52:09 +0000 (UTC)
commit 291eb9c8e046177838eeb30145bd76cb137538db
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Apr 12 18:28:29 2020 +0200
commands-edit: use TeplView functions
The corresponding GeditView functions are deprecated.
gedit/gedit-commands-edit.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gedit/gedit-commands-edit.c b/gedit/gedit-commands-edit.c
index 978440150..4b82e3ccd 100644
--- a/gedit/gedit-commands-edit.c
+++ b/gedit/gedit-commands-edit.c
@@ -89,9 +89,9 @@ _gedit_cmd_edit_cut (GSimpleAction *action,
gedit_debug (DEBUG_COMMANDS);
active_view = gedit_window_get_active_view (window);
- g_return_if_fail (active_view);
+ g_return_if_fail (active_view != NULL);
- gedit_view_cut_clipboard (active_view);
+ tepl_view_cut_clipboard (TEPL_VIEW (active_view));
gtk_widget_grab_focus (GTK_WIDGET (active_view));
}
@@ -107,9 +107,9 @@ _gedit_cmd_edit_copy (GSimpleAction *action,
gedit_debug (DEBUG_COMMANDS);
active_view = gedit_window_get_active_view (window);
- g_return_if_fail (active_view);
+ g_return_if_fail (active_view != NULL);
- gedit_view_copy_clipboard (active_view);
+ tepl_view_copy_clipboard (TEPL_VIEW (active_view));
gtk_widget_grab_focus (GTK_WIDGET (active_view));
}
@@ -125,9 +125,9 @@ _gedit_cmd_edit_paste (GSimpleAction *action,
gedit_debug (DEBUG_COMMANDS);
active_view = gedit_window_get_active_view (window);
- g_return_if_fail (active_view);
+ g_return_if_fail (active_view != NULL);
- gedit_view_paste_clipboard (active_view);
+ tepl_view_paste_clipboard (TEPL_VIEW (active_view));
gtk_widget_grab_focus (GTK_WIDGET (active_view));
}
@@ -143,9 +143,9 @@ _gedit_cmd_edit_delete (GSimpleAction *action,
gedit_debug (DEBUG_COMMANDS);
active_view = gedit_window_get_active_view (window);
- g_return_if_fail (active_view);
+ g_return_if_fail (active_view != NULL);
- gedit_view_delete_selection (active_view);
+ tepl_view_delete_selection (TEPL_VIEW (active_view));
gtk_widget_grab_focus (GTK_WIDGET (active_view));
}
@@ -161,9 +161,9 @@ _gedit_cmd_edit_select_all (GSimpleAction *action,
gedit_debug (DEBUG_COMMANDS);
active_view = gedit_window_get_active_view (window);
- g_return_if_fail (active_view);
+ g_return_if_fail (active_view != NULL);
- gedit_view_select_all (active_view);
+ tepl_view_select_all (TEPL_VIEW (active_view));
gtk_widget_grab_focus (GTK_WIDGET (active_view));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]