Codebase list virt-viewer / 25092c2
src: centralize the editor indentation rules Instead of repeating an emacs footer in every source file, use config files in the root of the repository. This fixes the bug that several source files are missing the indent rules. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Daniel P. Berrangé 3 years ago
37 changed file(s) with 42 addition(s) and 268 deletion(s). Raw diff Collapse all Expand all
0 (
1 (c-mode . (
2 (c-file-style . "K&R")
3 (indent-tabs-mode . nil)
4 (c-indent-level . 4)
5 (c-basic-offset . 4)
6 ))
7 (html-mode . (
8 (indent-tabs-mode . nil)
9 ))
10 (sh-mode . (
11 (indent-tabs-mode . nil)
12 ))
13 (nxml-mode . (
14 (indent-tabs-mode . nil)
15 ))
16 (perl-mode . (
17 (indent-tabs-mode . nil)
18 ))
19 )
0 # EditorConfig is a file format and collection of text editor plugins
1 # for maintaining consistent coding styles between different editors
2 # and IDEs. Most popular editors support this either natively or via
3 # plugin.
4 #
5 # Check https://editorconfig.org for details.
6
7 root = true
8
9 [*]
10 end_of_line = lf
11 insert_final_newline = true
12 charset = utf-8
13
14 [*.c]
15 indent_style = space
16 indent_size = 4
17
18 [*.{rng,xml}]
19 indent_style = space
20 indent_size = 2
11 # List version-controlled file names.
22
33 # Print a version string.
4 scriptversion=2011-05-16.22; # UTC
4 scriptversion=2021-02-10.15; # UTC
55
66 # Copyright (C) 2006-2011 Free Software Foundation, Inc.
77
102102 exit 1
103103 fi
104104 done
105
106 # Local variables:
107 # eval: (add-hook 'write-file-hooks 'time-stamp)
108 # time-stamp-start: "scriptversion="
109 # time-stamp-format: "%:y-%02m-%02d.%02H"
110 # time-stamp-time-zone: "UTC"
111 # time-stamp-end: "; # UTC"
112 # End:
6969 G_END_DECLS
7070
7171 #endif /* _OVIRT_FOREIGN_MENU_H */
72 /*
73 * Local variables:
74 * c-indent-level: 4
75 * c-basic-offset: 4
76 * indent-tabs-mode: nil
77 * End:
78 */
252252
253253 return ci.response;
254254 }
255
256 /*
257 * Local variables:
258 * c-indent-level: 4
259 * c-basic-offset: 4
260 * indent-tabs-mode: nil
261 * End:
262 */
2525 gboolean remote_viewer_connect_dialog(GtkWindow *main_window, gchar **uri);
2626
2727 #endif /* REMOTE_VIEWER_CONNECT_H */
28
29 /*
30 * Local variables:
31 * c-indent-level: 4
32 * c-basic-offset: 4
33 * indent-tabs-mode: nil
34 * End:
35 */
4242 g_object_unref(app);
4343 return ret;
4444 }
45
46 /*
47 * Local variables:
48 * c-indent-level: 4
49 * c-basic-offset: 4
50 * indent-tabs-mode: nil
51 * End:
52 */
818818
819819 return ret;
820820 }
821
822 /*
823 * Local variables:
824 * c-indent-level: 4
825 * c-basic-offset: 4
826 * indent-tabs-mode: nil
827 * End:
828 */
4141 G_END_DECLS
4242
4343 #endif /* REMOTE_VIEWER_H */
44 /*
45 * Local variables:
46 * c-indent-level: 4
47 * c-basic-offset: 4
48 * indent-tabs-mode: nil
49 * End:
50 */
31663166 priv->supports_share_clipboard = enable;
31673167 g_object_notify(G_OBJECT(self), "supports-share-clipboard");
31683168 }
3169
3170 /*
3171 * Local variables:
3172 * c-indent-level: 4
3173 * c-basic-offset: 4
3174 * indent-tabs-mode: nil
3175 * End:
3176 */
109109 G_END_DECLS
110110
111111 #endif /* VIRT_VIEWER_APP_H */
112 /*
113 * Local variables:
114 * c-indent-level: 4
115 * c-basic-offset: 4
116 * indent-tabs-mode: nil
117 * End:
118 */
114114
115115 return response == GTK_RESPONSE_OK;
116116 }
117
118 /*
119 * Local variables:
120 * c-indent-level: 4
121 * c-basic-offset: 4
122 * indent-tabs-mode: nil
123 * End:
124 */
3333 char **password);
3434
3535 #endif
36 /*
37 * Local variables:
38 * c-indent-level: 4
39 * c-basic-offset: 4
40 * indent-tabs-mode: nil
41 * End:
42 */
389389
390390 g_signal_emit_by_name(display, "display-desktop-resize");
391391 }
392
393 /*
394 * Local variables:
395 * c-indent-level: 4
396 * c-basic-offset: 4
397 * indent-tabs-mode: nil
398 * End:
399 */
4747 G_END_DECLS
4848
4949 #endif /* _VIRT_VIEWER_DISPLAY_SPICE_H */
50 /*
51 * Local variables:
52 * c-indent-level: 4
53 * c-basic-offset: 4
54 * indent-tabs-mode: nil
55 * End:
56 */
268268 */
269269 gtk_container_remove(GTK_CONTAINER(display), GTK_WIDGET(self->vnc));
270270 }
271
272 /*
273 * Local variables:
274 * c-indent-level: 4
275 * c-basic-offset: 4
276 * indent-tabs-mode: nil
277 * End:
278 */
4545 G_END_DECLS
4646
4747 #endif /* _VIRT_VIEWER_DISPLAY_VNC_H */
48 /*
49 * Local variables:
50 * c-indent-level: 4
51 * c-basic-offset: 4
52 * indent-tabs-mode: nil
53 * End:
54 */
4747 G_END_DECLS
4848
4949 #endif /* _VIRT_VIEWER_DISPLAY_VTE_H */
50 /*
51 * Local variables:
52 * c-indent-level: 4
53 * c-basic-offset: 4
54 * indent-tabs-mode: nil
55 * End:
56 */
751751 priv = virt_viewer_display_get_instance_private(self);
752752 return priv->nth_display;
753753 }
754
755 /*
756 * Local variables:
757 * c-indent-level: 4
758 * c-basic-offset: 4
759 * indent-tabs-mode: nil
760 * End:
761 */
114114 G_END_DECLS
115115
116116 #endif /* _VIRT_VIEWER_DISPLAY_H */
117 /*
118 * Local variables:
119 * c-indent-level: 4
120 * c-basic-offset: 4
121 * indent-tabs-mode: nil
122 * End:
123 */
4242
4343 return ret;
4444 }
45
46 /*
47 * Local variables:
48 * c-indent-level: 4
49 * c-basic-offset: 4
50 * indent-tabs-mode: nil
51 * End:
52 */
122122 {
123123 return g_object_new (VIRT_VIEWER_TYPE_NOTEBOOK, NULL);
124124 }
125
126 /*
127 * Local variables:
128 * c-indent-level: 4
129 * c-basic-offset: 4
130 * indent-tabs-mode: nil
131 * End:
132 */
4545 G_END_DECLS
4646
4747 #endif /* _VIRT_VIEWER_NOTEBOOK */
48 /*
49 * Local variables:
50 * c-indent-level: 4
51 * c-basic-offset: 4
52 * indent-tabs-mode: nil
53 * End:
54 */
15041504 rect->y, rect->width, rect->height, TRUE);
15051505 }
15061506 }
1507
1508 /*
1509 * Local variables:
1510 * c-indent-level: 4
1511 * c-basic-offset: 4
1512 * indent-tabs-mode: nil
1513 * End:
1514 */
4545 G_END_DECLS
4646
4747 #endif /* _VIRT_VIEWER_SESSION_SPICE_H */
48 /*
49 * Local variables:
50 * c-indent-level: 4
51 * c-basic-offset: 4
52 * indent-tabs-mode: nil
53 * End:
54 */
448448
449449 return VIRT_VIEWER_SESSION(self);
450450 }
451
452 /*
453 * Local variables:
454 * c-indent-level: 4
455 * c-basic-offset: 4
456 * indent-tabs-mode: nil
457 * End:
458 */
4444 G_END_DECLS
4545
4646 #endif /* _VIRT_VIEWER_SESSION_VNC_H */
47 /*
48 * Local variables:
49 * c-indent-level: 4
50 * c-basic-offset: 4
51 * indent-tabs-mode: nil
52 * End:
53 */
739739 if (klass->vm_action)
740740 klass->vm_action(self, action);
741741 }
742 /*
743 * Local variables:
744 * c-indent-level: 4
745 * c-basic-offset: 4
746 * indent-tabs-mode: nil
747 * End:
748 */
112112 G_END_DECLS
113113
114114 #endif /* _VIRT_VIEWER_SESSION_H */
115
116 /*
117 * Local variables:
118 * c-indent-level: 4
119 * c-basic-offset: 4
120 * indent-tabs-mode: nil
121 * End:
122 */
731731 g_hash_table_unref(displaymap);
732732 return NULL;
733733 }
734
735 /*
736 * Local variables:
737 * c-indent-level: 4
738 * c-basic-offset: 4
739 * indent-tabs-mode: nil
740 * End:
741 */
6565 const gsize nmappings,
6666 const gint nmonitors);
6767 #endif
68
69 /*
70 * Local variables:
71 * c-indent-level: 4
72 * c-basic-offset: 4
73 * indent-tabs-mode: nil
74 * End:
75 */
101101
102102 return vm_name;
103103 }
104
105 /*
106 * Local variables:
107 * c-indent-level: 4
108 * c-basic-offset: 4
109 * indent-tabs-mode: nil
110 * End:
111 */
2828 GError **error);
2929
3030 #endif
31 /*
32 * Local variables:
33 * c-indent-level: 4
34 * c-basic-offset: 4
35 * indent-tabs-mode: nil
36 * End:
37 */
17971797 /* make sure that the returned zoom level is in the range from MIN_ZOOM_LEVEL to NORMAL_ZOOM_LEVEL */
17981798 return CLAMP(zoom * ZOOM_STEP, MIN_ZOOM_LEVEL, NORMAL_ZOOM_LEVEL);
17991799 }
1800
1801 /*
1802 * Local variables:
1803 * c-indent-level: 4
1804 * c-basic-offset: 4
1805 * indent-tabs-mode: nil
1806 * End:
1807 */
6565 G_END_DECLS
6666
6767 #endif /* _VIRT_VIEWER_WINDOW */
68
69 /*
70 * Local variables:
71 * c-indent-level: 4
72 * c-basic-offset: 4
73 * indent-tabs-mode: nil
74 * End:
75 */
11551155 "flags", G_APPLICATION_NON_UNIQUE,
11561156 NULL);
11571157 }
1158
1159 /*
1160 * Local variables:
1161 * c-indent-level: 4
1162 * c-basic-offset: 4
1163 * indent-tabs-mode: nil
1164 * End:
1165 */
4141 G_END_DECLS
4242
4343 #endif /* VIRT_VIEWER_H */
44
45 /*
46 * Local variables:
47 * c-indent-level: 4
48 * c-basic-offset: 4
49 * indent-tabs-mode: nil
50 * End:
51 */