]> git.eshelyaron.com Git - emacs.git/commitdiff
improve code readability.
authorYuuki Harano <masm+github@masm11.me>
Mon, 30 Mar 2020 16:31:07 +0000 (01:31 +0900)
committerJeff Walsh <jeff.walsh@drtusers-MacBook-Pro.local>
Tue, 24 Nov 2020 01:24:39 +0000 (12:24 +1100)
* src/gtkutil.c (xg_create_frame_widgets):

src/gtkutil.c

index 4bd803c74b5b25a4dec10f94ea3ee4448cd77dd1..2a45f057fd42a8edc250c04345ad5ba28f7ed5db 100644 (file)
@@ -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