diff options
Diffstat (limited to 'pluma/pluma-commands-edit.c')
-rw-r--r-- | pluma/pluma-commands-edit.c | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pluma/pluma-commands-edit.c b/pluma/pluma-commands-edit.c index 3915da8f..71e953af 100644 --- a/pluma/pluma-commands-edit.c +++ b/pluma/pluma-commands-edit.c @@ -165,6 +165,70 @@ _pluma_cmd_edit_select_all (GtkAction *action, } void +_pluma_cmd_edit_upper_case (GtkAction *action, + PlumaWindow *window) +{ + PlumaView *active_view; + + pluma_debug (DEBUG_COMMANDS); + + active_view = pluma_window_get_active_view (window); + g_return_if_fail (active_view); + + pluma_view_upper_case_selection (active_view); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_pluma_cmd_edit_lower_case (GtkAction *action, + PlumaWindow *window) +{ + PlumaView *active_view; + + pluma_debug (DEBUG_COMMANDS); + + active_view = pluma_window_get_active_view (window); + g_return_if_fail (active_view); + + pluma_view_lower_case_selection (active_view); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_pluma_cmd_edit_invert_case (GtkAction *action, + PlumaWindow *window) +{ + PlumaView *active_view; + + pluma_debug (DEBUG_COMMANDS); + + active_view = pluma_window_get_active_view (window); + g_return_if_fail (active_view); + + pluma_view_invert_case_selection (active_view); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void +_pluma_cmd_edit_title_case (GtkAction *action, + PlumaWindow *window) +{ + PlumaView *active_view; + + pluma_debug (DEBUG_COMMANDS); + + active_view = pluma_window_get_active_view (window); + g_return_if_fail (active_view); + + pluma_view_title_case_selection (active_view); + + gtk_widget_grab_focus (GTK_WIDGET (active_view)); +} + +void _pluma_cmd_edit_preferences (GtkAction *action, PlumaWindow *window) { |