aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorMichael R. Mauger2017-07-03 15:32:41 -0400
committerMichael R. Mauger2017-07-03 15:32:41 -0400
commit776635c01abd4aa759e7aa9584b513146978568c (patch)
tree554f444bc96cb6b05435e8bf195de4df1b00df8f /src/widget.c
parent77083e2d34ba5559ae2899d3b03cf08c2e6c5ad4 (diff)
parent4cd0db3d6e6e4d5bd49283483bdafbbfc0f583f1 (diff)
downloademacs-776635c01abd4aa759e7aa9584b513146978568c.tar.gz
emacs-776635c01abd4aa759e7aa9584b513146978568c.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/widget.c b/src/widget.c
index d7ec7028517..585039d58c6 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -108,7 +108,7 @@ emacsFrameTranslations [] = "\
108 108
109static EmacsFrameClassRec emacsFrameClassRec = { 109static EmacsFrameClassRec emacsFrameClassRec = {
110 { /* core fields */ 110 { /* core fields */
111 /* superclass */ &widgetClassRec, 111 /* superclass */ 0, /* filled in by emacsFrameClass */
112 /* class_name */ (char *) "EmacsFrame", 112 /* class_name */ (char *) "EmacsFrame",
113 /* widget_size */ sizeof (EmacsFrameRec), 113 /* widget_size */ sizeof (EmacsFrameRec),
114 /* class_initialize */ 0, 114 /* class_initialize */ 0,
@@ -146,7 +146,16 @@ static EmacsFrameClassRec emacsFrameClassRec = {
146 } 146 }
147}; 147};
148 148
149WidgetClass emacsFrameClass = (WidgetClass) &emacsFrameClassRec; 149WidgetClass
150emacsFrameClass (void)
151{
152 /* Set the superclass here rather than relying on static
153 initialization, to work around an unexelf.c bug on x86 platforms
154 that use the GNU Gold linker (Bug#27248). */
155 emacsFrameClassRec.core_class.superclass = &widgetClassRec;
156
157 return (WidgetClass) &emacsFrameClassRec;
158}
150 159
151static void 160static void
152get_default_char_pixel_size (EmacsFrame ew, int *pixel_width, int *pixel_height) 161get_default_char_pixel_size (EmacsFrame ew, int *pixel_width, int *pixel_height)