aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2008-06-15 05:53:48 +0000
committerStefan Monnier2008-06-15 05:53:48 +0000
commita099c27aa316d67cec7797d400a25d7f93d980dc (patch)
tree0c94b2c25325c196f7951a56e61467b6cef0bec8 /src
parent813c812568b3bca29c24b5ef23d44bd098a2bbb0 (diff)
downloademacs-a099c27aa316d67cec7797d400a25d7f93d980dc.tar.gz
emacs-a099c27aa316d67cec7797d400a25d7f93d980dc.zip
* xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
* gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/gtkutil.c4
-rw-r--r--src/xfns.c7
3 files changed, 14 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c20207da60b..8e24f83b15b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
4 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
5
12008-06-14 Stefan Monnier <monnier@iro.umontreal.ca> 62008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1. 8 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
diff --git a/src/gtkutil.c b/src/gtkutil.c
index 77f0815b95e..fb766c445a4 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -909,8 +909,10 @@ xg_create_frame_widgets (f)
909 gtk_widget_modify_style (wfixed, style); 909 gtk_widget_modify_style (wfixed, style);
910 910
911 /* GTK does not set any border, and they look bad with GTK. */ 911 /* GTK does not set any border, and they look bad with GTK. */
912 /* That they look bad is no excuse for imposing this here. --Stef
913 It should be done by providing the proper default in Fx_create_Frame.
912 f->border_width = 0; 914 f->border_width = 0;
913 f->internal_border_width = 0; 915 f->internal_border_width = 0; */
914 916
915 UNBLOCK_INPUT; 917 UNBLOCK_INPUT;
916 918
diff --git a/src/xfns.c b/src/xfns.c
index b02c9ce8d25..8d4b105ea8f 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3313,7 +3313,12 @@ This function is an internal primitive--use `make-frame' instead. */)
3313 parms = Fcons (Fcons (Qinternal_border_width, value), 3313 parms = Fcons (Fcons (Qinternal_border_width, value),
3314 parms); 3314 parms);
3315 } 3315 }
3316 x_default_parameter (f, parms, Qinternal_border_width, make_number (1), 3316 x_default_parameter (f, parms, Qinternal_border_width,
3317#ifdef USE_GTK /* We used to impose 0 in xg_create_frame_widgets. */
3318 make_number (0),
3319#else
3320 make_number (1),
3321#endif
3317 "internalBorderWidth", "internalBorderWidth", 3322 "internalBorderWidth", "internalBorderWidth",
3318 RES_TYPE_NUMBER); 3323 RES_TYPE_NUMBER);
3319 x_default_parameter (f, parms, Qvertical_scroll_bars, Qleft, 3324 x_default_parameter (f, parms, Qvertical_scroll_bars, Qleft,