diff options
| author | Yuuki Harano | 2021-11-14 20:27:31 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-11-14 20:27:31 +0900 |
| commit | 30a00f14c824e5e4005a1cb6ccf2f26def19d80b (patch) | |
| tree | c1c4232181c4d091fc389d6934929795f94ac488 /src/pgtkselect.c | |
| parent | 3e20d50fc5a8fc94b571e140a696ccd65040e6c1 (diff) | |
| download | emacs-30a00f14c824e5e4005a1cb6ccf2f26def19d80b.tar.gz emacs-30a00f14c824e5e4005a1cb6ccf2f26def19d80b.zip | |
Fix coding style
Especially, insert a space between function name and paren.
* src/alloc.c (garbage_collect):
* src/font.h:
* src/frame.h:
* src/fringe.c:
* src/gtkutil.c (xg_set_screen):
(xg_create_frame_widgets):
(xg_create_frame_outer_widgets):
(xg_get_file_name):
(xg_get_font):
(xg_update_scrollbar_pos):
* src/image.c (image_create_bitmap_from_file):
(xpm_load_image):
* src/pgtkfns.c (pgtk_get_monitor_scale_factor):
(is_wayland_display):
(pgtk_display_info_for_name):
(INSTALL_CURSOR):
(Fx_create_frame):
(Fx_display_mm_height):
(Fx_display_mm_width):
(Fx_display_pixel_width):
(Fx_display_pixel_height):
* src/pgtkselect.c (pgtk_selection_usable):
(Fpgtk_own_selection_internal):
(Fpgtk_get_selection_internal):
* src/pgtkterm.c:
(x_set_parent_frame):
(pgtk_draw_fringe_bitmap):
(pgtk_handle_draw):
(scroll_event):
(pgtk_text_scaling_factor):
(pgtk_term_init):
* src/pgtkterm.h:
* src/window.h:
* src/xdisp.c (redisplay_internal):
(draw_glyphs_debug):
(draw_glyphs):
(note_mouse_highlight):
Diffstat (limited to 'src/pgtkselect.c')
| -rw-r--r-- | src/pgtkselect.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/pgtkselect.c b/src/pgtkselect.c index 447c839f459..58a2b0d05e2 100644 --- a/src/pgtkselect.c +++ b/src/pgtkselect.c | |||
| @@ -249,48 +249,48 @@ pgtk_selection_usable (void) | |||
| 249 | * | 249 | * |
| 250 | * static GtkWidget *top1, *top2; | 250 | * static GtkWidget *top1, *top2; |
| 251 | * | 251 | * |
| 252 | * int main(int argc, char **argv) | 252 | * int main (int argc, char **argv) |
| 253 | * { | 253 | * { |
| 254 | * GtkWidget *w; | 254 | * GtkWidget *w; |
| 255 | * GtkTextBuffer *buf; | 255 | * GtkTextBuffer *buf; |
| 256 | * | 256 | * |
| 257 | * gtk_init(&argc, &argv); | 257 | * gtk_init (&argc, &argv); |
| 258 | * | 258 | * |
| 259 | * static char *text = "\ | 259 | * static char *text = "\ |
| 260 | * It is fine today.\n\ | 260 | * It is fine today.\n\ |
| 261 | * It will be fine tomorrow too.\n\ | 261 | * It will be fine tomorrow too.\n\ |
| 262 | * It is too hot."; | 262 | * It is too hot."; |
| 263 | * | 263 | * |
| 264 | * top1 = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 264 | * top1 = gtk_window_new (GTK_WINDOW_TOPLEVEL); |
| 265 | * gtk_window_set_title(GTK_WINDOW(top1), "default"); | 265 | * gtk_window_set_title (GTK_WINDOW (top1), "default"); |
| 266 | * gtk_widget_show(top1); | 266 | * gtk_widget_show (top1); |
| 267 | * w = gtk_text_view_new(); | 267 | * w = gtk_text_view_new (); |
| 268 | * gtk_container_add(GTK_CONTAINER(top1), w); | 268 | * gtk_container_add (GTK_CONTAINER (top1), w); |
| 269 | * gtk_widget_show(w); | 269 | * gtk_widget_show (w); |
| 270 | * buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(w)); | 270 | * buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (w)); |
| 271 | * gtk_text_buffer_insert_at_cursor(buf, text, strlen(text)); | 271 | * gtk_text_buffer_insert_at_cursor (buf, text, strlen (text)); |
| 272 | * gtk_text_buffer_add_selection_clipboard(buf, gtk_widget_get_clipboard(w, GDK_SELECTION_PRIMARY)); | 272 | * gtk_text_buffer_add_selection_clipboard (buf, gtk_widget_get_clipboard (w, GDK_SELECTION_PRIMARY)); |
| 273 | * | 273 | * |
| 274 | * unsetenv("GDK_BACKEND"); | 274 | * unsetenv ("GDK_BACKEND"); |
| 275 | * GdkDisplay *gdpy; | 275 | * GdkDisplay *gdpy; |
| 276 | * const char *dpyname2; | 276 | * const char *dpyname2; |
| 277 | * if (strcmp(G_OBJECT_TYPE_NAME(gtk_widget_get_window(top1)), "GdkWaylandWindow") == 0) | 277 | * if (strcmp (G_OBJECT_TYPE_NAME (gtk_widget_get_window (top1)), "GdkWaylandWindow") == 0) |
| 278 | * dpyname2 = ":0"; | 278 | * dpyname2 = ":0"; |
| 279 | * else | 279 | * else |
| 280 | * dpyname2 = "wayland-0"; | 280 | * dpyname2 = "wayland-0"; |
| 281 | * gdpy = gdk_display_open (dpyname2); | 281 | * gdpy = gdk_display_open (dpyname2); |
| 282 | * top2 = gtk_window_new (GTK_WINDOW_TOPLEVEL); | 282 | * top2 = gtk_window_new (GTK_WINDOW_TOPLEVEL); |
| 283 | * gtk_window_set_title(GTK_WINDOW(top2), dpyname2); | 283 | * gtk_window_set_title (GTK_WINDOW (top2), dpyname2); |
| 284 | * gtk_window_set_screen (GTK_WINDOW (top2), gdk_display_get_default_screen(gdpy)); | 284 | * gtk_window_set_screen (GTK_WINDOW (top2), gdk_display_get_default_screen (gdpy)); |
| 285 | * gtk_widget_show (top2); | 285 | * gtk_widget_show (top2); |
| 286 | * w = gtk_text_view_new(); | 286 | * w = gtk_text_view_new (); |
| 287 | * gtk_container_add(GTK_CONTAINER(top2), w); | 287 | * gtk_container_add (GTK_CONTAINER (top2), w); |
| 288 | * gtk_widget_show(w); | 288 | * gtk_widget_show (w); |
| 289 | * buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(w)); | 289 | * buf = gtk_text_view_get_buffer (GTK_TEXT_VIEW (w)); |
| 290 | * gtk_text_buffer_insert_at_cursor(buf, text, strlen(text)); | 290 | * gtk_text_buffer_insert_at_cursor (buf, text, strlen (text)); |
| 291 | * gtk_text_buffer_add_selection_clipboard(buf, gtk_widget_get_clipboard(w, GDK_SELECTION_PRIMARY)); | 291 | * gtk_text_buffer_add_selection_clipboard (buf, gtk_widget_get_clipboard (w, GDK_SELECTION_PRIMARY)); |
| 292 | * | 292 | * |
| 293 | * gtk_main(); | 293 | * gtk_main (); |
| 294 | * | 294 | * |
| 295 | * return 0; | 295 | * return 0; |
| 296 | * } | 296 | * } |
| @@ -376,8 +376,8 @@ nil, it defaults to the selected frame. */) | |||
| 376 | 376 | ||
| 377 | { | 377 | { |
| 378 | /* text/plain: Strings encoded by Gtk are not correctly decoded by Chromium(Wayland). */ | 378 | /* text/plain: Strings encoded by Gtk are not correctly decoded by Chromium(Wayland). */ |
| 379 | GdkAtom atom_text_plain = gdk_atom_intern("text/plain", false); | 379 | GdkAtom atom_text_plain = gdk_atom_intern ("text/plain", false); |
| 380 | gtk_target_list_remove(list, atom_text_plain); | 380 | gtk_target_list_remove (list, atom_text_plain); |
| 381 | } | 381 | } |
| 382 | 382 | ||
| 383 | targets = gtk_target_table_new_from_list (list, &n_targets); | 383 | targets = gtk_target_table_new_from_list (list, &n_targets); |
| @@ -575,11 +575,11 @@ On PGTK, TIME-STAMP is unused. */) | |||
| 575 | property `foreign-selection' so that the caller of | 575 | property `foreign-selection' so that the caller of |
| 576 | x-get-selection-internal (usually x-get-selection) can know | 576 | x-get-selection-internal (usually x-get-selection) can know |
| 577 | that the string must be decode. */ | 577 | that the string must be decode. */ |
| 578 | if (sd_type == gdk_atom_intern("COMPOUND_TEXT", false)) | 578 | if (sd_type == gdk_atom_intern ("COMPOUND_TEXT", false)) |
| 579 | lispy_type = QCOMPOUND_TEXT; | 579 | lispy_type = QCOMPOUND_TEXT; |
| 580 | else if (sd_type == gdk_atom_intern("UTF8_STRING", false)) | 580 | else if (sd_type == gdk_atom_intern ("UTF8_STRING", false)) |
| 581 | lispy_type = QUTF8_STRING; | 581 | lispy_type = QUTF8_STRING; |
| 582 | else if (sd_type == gdk_atom_intern("text/plain;charset=utf-8", false)) | 582 | else if (sd_type == gdk_atom_intern ("text/plain;charset=utf-8", false)) |
| 583 | lispy_type = Qtext_plain_charset_utf_8; | 583 | lispy_type = Qtext_plain_charset_utf_8; |
| 584 | else | 584 | else |
| 585 | lispy_type = QSTRING; | 585 | lispy_type = QSTRING; |