Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 305049 Details for
Bug 392731
xclock window is too small with certain X resources
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proper patch
xclock.patch (text/plain), 2.38 KB, created by
Jay Berkenbilt
on 2008-05-11 02:28:58 UTC
(
hide
)
Description:
proper patch
Filename:
MIME Type:
Creator:
Jay Berkenbilt
Created:
2008-05-11 02:28:58 UTC
Size:
2.38 KB
patch
obsolete
>--- Clock.c.orig 2007-09-14 17:18:56.000000000 -0400 >+++ Clock.c 2008-05-10 22:18:46.147733977 -0400 >@@ -656,46 +656,48 @@ > 2 * w->clock.padding; > } > else >+ { > #endif > #ifndef NO_I18N >- if (!no_locale) { >- XFontSetExtents *fse; >+ if (!no_locale) { >+ XFontSetExtents *fse; > >- if(w->clock.fontSet == NULL) { >- char **missing, *default_str; >- int n_missing; >- w->clock.fontSet = XCreateFontSet( XtDisplay(w), >- XtDefaultFontSet, >- &missing, >- &n_missing, >- &default_str); >- } >- if (w->clock.fontSet != NULL) >- { >- /* don't free this... it's freed with the XFontSet. */ >- fse = XExtentsOfFontSet(w->clock.fontSet); >- >- min_width = XmbTextEscapement(w->clock.fontSet,str, >- len) >- + 2 * w->clock.padding; >- min_height = fse->max_logical_extent.height + >- 3 * w->clock.padding; >- } else { >- no_locale = True; >- } >- } >+ if(w->clock.fontSet == NULL) { >+ char **missing, *default_str; >+ int n_missing; >+ w->clock.fontSet = XCreateFontSet( XtDisplay(w), >+ XtDefaultFontSet, >+ &missing, >+ &n_missing, >+ &default_str); >+ } >+ if (w->clock.fontSet != NULL) >+ { >+ /* don't free this... it's freed with the XFontSet. */ >+ fse = XExtentsOfFontSet(w->clock.fontSet); >+ >+ min_width = XmbTextEscapement(w->clock.fontSet,str, >+ len) >+ + 2 * w->clock.padding; >+ min_height = fse->max_logical_extent.height + >+ 3 * w->clock.padding; >+ } else { >+ no_locale = True; >+ } >+ } > >- if (!no_locale) >-#endif /* NO_I18N */ >- { >- if (w->clock.font == NULL) >- w->clock.font = XQueryFont( XtDisplay(w), >- XGContextFromGC( >- DefaultGCOfScreen(XtScreen(w))) ); >- min_width = XTextWidth(w->clock.font, str, len) + >- 2 * w->clock.padding; >- min_height = w->clock.font->ascent + >- w->clock.font->descent + 2 * w->clock.padding; >+ if (!no_locale) >+ #endif /* NO_I18N */ >+ { >+ if (w->clock.font == NULL) >+ w->clock.font = XQueryFont( XtDisplay(w), >+ XGContextFromGC( >+ DefaultGCOfScreen(XtScreen(w))) ); >+ min_width = XTextWidth(w->clock.font, str, len) + >+ 2 * w->clock.padding; >+ min_height = w->clock.font->ascent + >+ w->clock.font->descent + 2 * w->clock.padding; >+ } > } > } > if (w->core.width == 0)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 392731
:
265141
|
265151
|
265941
| 305049