[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/pgtk cbd28cd 046/100: improve code readability.
From: |
Yuuki Harano |
Subject: |
feature/pgtk cbd28cd 046/100: improve code readability. |
Date: |
Tue, 24 Nov 2020 08:02:34 -0500 (EST) |
branch: feature/pgtk
commit cbd28cddea180ab3be14532e7a341c89ebc02fcc
Author: Yuuki Harano <masm+github@masm11.me>
Commit: Jeff Walsh <jeff.walsh@drtusers-MacBook-Pro.local>
improve code readability.
* src/gtkutil.c (xg_create_frame_widgets):
---
src/gtkutil.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 4bd803c..2a45f05 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1366,17 +1366,13 @@ xg_create_frame_widgets (struct frame *f)
wtop = gtk_plug_new_for_display (gdpy, f->output_data.xp->parent_desc);
}
else
-#endif
-
-#ifdef HAVE_PGTK
- if (!NILP(f->parent_frame)){
- type = GTK_WINDOW_POPUP;
- }
-#endif
-
+ wtop = gtk_window_new (type);
+#else
+ if (!NILP(f->parent_frame)){
+ type = GTK_WINDOW_POPUP;
+ }
wtop = gtk_window_new (type);
-#ifdef HAVE_PGTK
- gtk_widget_add_events(wtop, GDK_ALL_EVENTS_MASK);
+ gtk_widget_add_events(wtop, GDK_ALL_EVENTS_MASK);
#endif
/* gtk_window_set_has_resize_grip is a Gtk+ 3.0 function but Ubuntu
- feature/pgtk 85441c9 016/100: Add Stipple support for PGTK, (continued)
- feature/pgtk 85441c9 016/100: Add Stipple support for PGTK, Yuuki Harano, 2020/11/24
- feature/pgtk bfbcb11 026/100: implement set-tool-bar-position and set-sticky, Yuuki Harano, 2020/11/24
- feature/pgtk af5b725 061/100: * src/pgtkmenu.c: change coding style, Yuuki Harano, 2020/11/24
- feature/pgtk e649275 058/100: * src/pgtkterm.c: change coding style, Yuuki Harano, 2020/11/24
- feature/pgtk de7b0da 049/100: use pgtk_menu_set_in_use., Yuuki Harano, 2020/11/24
- feature/pgtk af1e279 073/100: Restore support for terminal only emacs in PGTK (add --with-pgtk), Yuuki Harano, 2020/11/24
- feature/pgtk 8669feb 054/100: Make icons and titles work like on X, Yuuki Harano, 2020/11/24
- feature/pgtk 20dbd4e 069/100: Change coding style, Yuuki Harano, 2020/11/24
- feature/pgtk 9e56fa9 034/100: Support focus on click event, Yuuki Harano, 2020/11/24
- feature/pgtk 385e85c 038/100: End Resize flickering by copying surface rather than just clearing, Yuuki Harano, 2020/11/24
- feature/pgtk cbd28cd 046/100: improve code readability.,
Yuuki Harano <=
- feature/pgtk ef67659 045/100: Set screen/display dpi res to make broadway work as expected, Yuuki Harano, 2020/11/24
- feature/pgtk d109dab 059/100: * src/pgtkfns.c: change coding style, Yuuki Harano, 2020/11/24
- feature/pgtk 9eb35f9 033/100: experimental support of tab-bar., Yuuki Harano, 2020/11/24
- feature/pgtk 25cf592 067/100: Change coding style, Yuuki Harano, 2020/11/24
- feature/pgtk e7190d8 075/100: Fix non-English layout does not work, Yuuki Harano, 2020/11/24
- feature/pgtk 28073ba 083/100: Re-implement childframe with emacsgtkfixed, Yuuki Harano, 2020/11/24
- feature/pgtk 6c43496 074/100: Fix font lock is not applied on continued lines, Yuuki Harano, 2020/11/24
- feature/pgtk 9704e23 081/100: Enable GtkIMContext by default, Yuuki Harano, 2020/11/24
- feature/pgtk b60d4c9 086/100: Fix crash on creating child frames., Yuuki Harano, 2020/11/24
- feature/pgtk b1b7440 098/100: Work around gtk_im_context_filter_keypress() issue with super key, Yuuki Harano, 2020/11/24