diff options
| author | Yuuki Harano | 2020-03-31 01:31:07 +0900 |
|---|---|---|
| committer | Jeff Walsh | 2020-11-24 12:24:39 +1100 |
| commit | cbd28cddea180ab3be14532e7a341c89ebc02fcc (patch) | |
| tree | cb81021dff097d84825654a31223ac93c4969fd4 /src | |
| parent | ef67659e985dcc31a48cfb3c5eefcf4d9f6aee6e (diff) | |
| download | emacs-cbd28cddea180ab3be14532e7a341c89ebc02fcc.tar.gz emacs-cbd28cddea180ab3be14532e7a341c89ebc02fcc.zip | |
improve code readability.
* src/gtkutil.c (xg_create_frame_widgets):
Diffstat (limited to 'src')
| -rw-r--r-- | src/gtkutil.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 4bd803c74b5..2a45f057fd4 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -1366,17 +1366,13 @@ xg_create_frame_widgets (struct frame *f) | |||
| 1366 | wtop = gtk_plug_new_for_display (gdpy, f->output_data.xp->parent_desc); | 1366 | wtop = gtk_plug_new_for_display (gdpy, f->output_data.xp->parent_desc); |
| 1367 | } | 1367 | } |
| 1368 | else | 1368 | else |
| 1369 | #endif | 1369 | wtop = gtk_window_new (type); |
| 1370 | 1370 | #else | |
| 1371 | #ifdef HAVE_PGTK | 1371 | if (!NILP(f->parent_frame)){ |
| 1372 | if (!NILP(f->parent_frame)){ | 1372 | type = GTK_WINDOW_POPUP; |
| 1373 | type = GTK_WINDOW_POPUP; | 1373 | } |
| 1374 | } | ||
| 1375 | #endif | ||
| 1376 | |||
| 1377 | wtop = gtk_window_new (type); | 1374 | wtop = gtk_window_new (type); |
| 1378 | #ifdef HAVE_PGTK | 1375 | gtk_widget_add_events(wtop, GDK_ALL_EVENTS_MASK); |
| 1379 | gtk_widget_add_events(wtop, GDK_ALL_EVENTS_MASK); | ||
| 1380 | #endif | 1376 | #endif |
| 1381 | 1377 | ||
| 1382 | /* gtk_window_set_has_resize_grip is a Gtk+ 3.0 function but Ubuntu | 1378 | /* gtk_window_set_has_resize_grip is a Gtk+ 3.0 function but Ubuntu |