Skip to content

Commit baed679

Browse files
author
Yuuki Harano
authored
Merge pull request emacs-mirror#18 from masm11/fix/compilation-for-x-gtk
Fix/compilation for x gtk
2 parents 973a02e + 691f910 commit baed679

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

src/gtkutil.c

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,17 +1339,13 @@ xg_create_frame_widgets (struct frame *f)
13391339
wtop = gtk_plug_new_for_display (gdpy, f->output_data.xp->parent_desc);
13401340
}
13411341
else
1342-
#endif
1343-
1344-
#ifdef HAVE_PGTK
1345-
if (!NILP(f->parent_frame)){
1346-
type = GTK_WINDOW_POPUP;
1347-
}
1348-
#endif
1349-
1342+
wtop = gtk_window_new (type);
1343+
#else
1344+
if (!NILP(f->parent_frame)){
1345+
type = GTK_WINDOW_POPUP;
1346+
}
13501347
wtop = gtk_window_new (type);
1351-
#ifdef HAVE_PGTK
1352-
gtk_widget_add_events(wtop, GDK_ALL_EVENTS_MASK);
1348+
gtk_widget_add_events(wtop, GDK_ALL_EVENTS_MASK);
13531349
#endif
13541350

13551351
/* gtk_window_set_has_resize_grip is a Gtk+ 3.0 function but Ubuntu
@@ -1834,7 +1830,7 @@ xg_set_override_redirect (struct frame *f, Lisp_Object override_redirect)
18341830
functions so GTK does not overwrite the icon. */
18351831

18361832
void
1837-
xg_set_frame_icon (struct frame *f, Pixmap icon_pixmap, Pixmap icon_mask)
1833+
xg_set_frame_icon (struct frame *f, Emacs_Pixmap icon_pixmap, Emacs_Pixmap icon_mask)
18381834
{
18391835
GdkPixbuf *gp = xg_get_pixbuf_from_pix_and_mask (f,
18401836
icon_pixmap,

src/keyboard.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6057,8 +6057,10 @@ make_lispy_event (struct input_event *event)
60576057
return list3 (Qconfig_changed_event,
60586058
event->arg, event->frame_or_window);
60596059

6060+
#ifdef HAVE_PGTK
60606061
case PGTK_PREEDIT_TEXT_EVENT:
60616062
return list2 (intern("pgtk-preedit-text"), event->arg);
6063+
#endif
60626064

60636065
/* The 'kind' field of the event is something we don't recognize. */
60646066
default:

src/pgtkterm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ x_set_offset (struct frame *f, int xoff, int yoff, int change_gravity)
387387
if (yoff < 0){
388388
f->size_hint_flags |= YNegative;
389389
f->top_pos = yoff;
390-
} else {
390+
} else {
391391
f->top_pos = yoff + a.y; //~60
392392
}
393393
f->win_gravity = NorthWestGravity;

0 commit comments

Comments
 (0)