diff options
author | Pablo Barciela <[email protected]> | 2019-05-02 01:09:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-20 00:04:14 +0200 |
commit | fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f (patch) | |
tree | 1c8c8a9001e359113708688dd9c98cdee15ad85a /libcaja-private/caja-clipboard.c | |
parent | 64b7d2640fc91c28db3a16239f8fe5f6243bec26 (diff) | |
download | caja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.bz2 caja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.xz |
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-clipboard.c')
-rw-r--r-- | libcaja-private/caja-clipboard.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcaja-private/caja-clipboard.c b/libcaja-private/caja-clipboard.c index 88f2a808..bc876a28 100644 --- a/libcaja-private/caja-clipboard.c +++ b/libcaja-private/caja-clipboard.c @@ -162,7 +162,6 @@ received_clipboard_contents (GtkClipboard *clipboard, static void set_paste_sensitive_if_clipboard_contains_data (GtkActionGroup *action_group) { - GtkAction *action; if (gdk_display_supports_selection_notification (gdk_display_get_default ())) { gtk_clipboard_request_contents (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), @@ -172,6 +171,8 @@ set_paste_sensitive_if_clipboard_contains_data (GtkActionGroup *action_group) } else { + GtkAction *action; + /* If selection notification isn't supported, always activate Paste */ action = gtk_action_group_get_action (action_group, "Paste"); @@ -614,7 +615,6 @@ caja_clipboard_get_uri_list_from_selection_data (GtkSelectionData *selection_dat GdkAtom copied_files_atom) { GList *items; - char **lines; if (gtk_selection_data_get_data_type (selection_data) != copied_files_atom || gtk_selection_data_get_length (selection_data) <= 0) @@ -623,6 +623,7 @@ caja_clipboard_get_uri_list_from_selection_data (GtkSelectionData *selection_dat } else { + char **lines; guchar *data; /* Not sure why it's legal to assume there's an extra byte * past the end of the selection data that it's safe to write |