1. 01 Dec, 2009 2 commits
  2. 30 Nov, 2009 1 commit
  3. 29 Nov, 2009 1 commit
  4. 28 Nov, 2009 2 commits
  5. 27 Nov, 2009 2 commits
  6. 26 Nov, 2009 1 commit
  7. 25 Nov, 2009 2 commits
  8. 24 Nov, 2009 4 commits
  9. 23 Nov, 2009 2 commits
    • Jan Djärv's avatar
      Must create deps for ecrt0.o in its rule. · cfc86c7a
      Jan Djärv authored
      cfc86c7a
    • Jan Djärv's avatar
      Set Xft defaults if no XSETTING is found, better default for Gtk+ font dialog. · 581e51e8
      Jan Djärv authored
      * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
      because that is what Gtk+ font dialog understands.
      
      * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
      of Fcopy_sequence.
      (font_open_by_name): Put name given into QCname for font-object returned.
      
      * frame.c (x_set_font): Save original font name as frame parameter
      font-parameter.
      
      * xsettings.c (set_default_xft_settings): New function.
      (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
      is found.
      581e51e8
  10. 22 Nov, 2009 1 commit
  11. 21 Nov, 2009 4 commits
    • Jan Djärv's avatar
      Use a select wrapper around the GLib event loop, thus taking into account GLib · 872870b2
      Jan Djärv authored
      timeouts and event sources.  This simplifies Gtk+-code a lot, and is needed
      for handling GConf death/restart.
      
      * xterm.c: #include xgselect.h.
      (x_initialize): Call xgselect_initialize.
      
      * xsettings.c (something_changedCB): C++ comments => C comments.
      (init_gconf): Do not deal with any GLib file descriptors, xg_select
      does that now.
      
      * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
      (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
      (scroll_bar_button_cb): Remove.
      (create_menus): C++ comments => C comments. Don't bind grab-notify
      event.
      (xg_create_scroll_bar): Don't bind button-press-event and
      button-release-event.
      
      * process.c: Include xgselect.h if defined (USE_GTK) ||
      defined (HAVE_GCONF).
      (wait_reading_process_output): Call xg_select for the same condition.
      
      * xgselect.c (xg_select): New function to better integrate with
      GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
      
      * xgselect.h: New file, declare xg_select, xgselect_initialize.
      
      * Makefile.in (XOBJ): Add xgselect.o.
      872870b2
    • Andreas Schwab's avatar
      * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove · 62a6e103
      Andreas Schwab authored
      ignored second argument.  All callers changed.
      * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
      (RE_STRING_CHAR_AND_LENGTH): Likewise.
      * xdisp.c (string_char_and_length): Likewise.
      62a6e103
    • Chong Yidong's avatar
      Fix last change. · eb7fdcd9
      Chong Yidong authored
      eb7fdcd9
    • Dan Nicolaescu's avatar
      * xterm.c (x_new_font): · b0ca0f33
      Dan Nicolaescu authored
      * print.c (print_object):
      * cmds.c (Fself_insert_command): Move declarations before statements.
      b0ca0f33
  12. 20 Nov, 2009 3 commits
  13. 19 Nov, 2009 3 commits
  14. 17 Nov, 2009 10 commits
    • Andreas Schwab's avatar
      * lisp.h: Remove declaration of Ffont_get_system_font. · 1b9ac145
      Andreas Schwab authored
      * xfns.c: Move include of "xsettings.h".
      * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
      1b9ac145
    • Jan Djärv's avatar
      xsettings.c didn't check font-use-system-font, fix that. · dfb3c4c6
      Jan Djärv authored
      * xsettings.c (something_changedCB, Ffont_get_system_font): Check
      use_system_font.
      (syms_of_xsettings): DEFVAR font-use-system-font.
      
      * font-setting.el (font-use-system-font): Moved ...
      
      * cus-start.el (all): ... to here.
      dfb3c4c6
    • Andreas Schwab's avatar
      25fe851a
    • Andreas Schwab's avatar
    • Jan Djärv's avatar
      * xftfont.c (xftfont_fix_match): Older versions of fontconfig does · 21050de1
      Jan Djärv authored
      not have FC_LCD_*.  #define them if not there.
      21050de1
    • Jan Djärv's avatar
      #ifdef on FC_LCD_FILTER. · a6eb20d8
      Jan Djärv authored
      * xftfont.c (xftfont_fix_match): Older versions of fontconfig does
      not have FC_LCD_FILTER.  #ifdef it.
      
      * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto
      
      * xftfont.c (xftfont_fix_match): New function.
      (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
      Call xftfont_fix_match after XftFontMatch.
      a6eb20d8
    • Jan Djärv's avatar
      Add font-setting.el to DOC. · 749cebc3
      Jan Djärv authored
      749cebc3
    • Jan Djärv's avatar
      Handle system default font and changing font parameters. · 637fa988
      Jan Djärv authored
      * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
      
      * xterm.c (handle_one_xevent): Call xft_settings_event for
      ClientMessage, PropertyNotify and DestroyNotify.
      (x_term_init): If we have XFT, get DPI from Xft.dpi.
      Call xsettings_initialize.
      
      * xftfont.c (xftfont_fix_match): New function.
      (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
      Call xftfont_fix_match after XftFontMatch.
      
      * xfont.c (xfont_driver): Initialize all members.
      
      * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
      Do not get font from x_default_parameter if we got one from
      Ffont_get_system_font.
      (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).
      
      * w32font.c (w32font_driver): Initialize all members.
      
      * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
      
      * lisp.h: Declare syms_of_xsettings.
      
      * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
      CONFIG_CHANGED_EVENT.
      
      * ftfont.c (ftfont_filter_properties): New function.
      
      * frame.c (x_set_font): Remove unused variable lval.
      
      * font.h (struct font_driver): filter_properties is new.
      
      * font.c (font_put_extra): Don't return if val is nil, it means
      boolean option is off.
      (font_parse_fcname): Collect all extra properties in extra_props
      and call filter_properties for all drivers with extra_props and
      font as parameter.
      (font_open_entity): Do not use cache, it does not pick up new fontconfig
      settings like hinting.
      (font_load_for_lface): If spec had a name in it, store it in entity.
      
      * emacs.c (main): Call syms_of_xsettings
      
      * config.in: HAVE_GCONF is new.
      
      * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
      xsettings.o is new.
      
      * menu-bar.el: Put "Use system font" in Option-menu.
      
      * loadup.el: If feature system-font-setting or font-render-setting is
      there, load font-setting.
      
      * Makefile.in (ELCFILES): font-settings.el is new.
      * font-setting.el: New file.
      
      * NEWS: Mention dynamic font changes (font-use-system-font).
      
      * configure.in: New option: --with(out)-gconf.
      Set HAVE_GCONF if we find gconf.
      637fa988
    • Kenichi Handa's avatar
      (x_produce_glyphs): Consider face-remapping when falling · 5a942932
      Kenichi Handa authored
      back to the default font in case that no suitable font is found.
      5a942932
    • Stefan Monnier's avatar
      (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge. · b7c7a4d1
      Stefan Monnier authored
      Suggested by Chad Brown <yandros@mit.edu>.
      (push_menu_item): Use MENU_ITEMS_ITEM_* names.
      b7c7a4d1
  15. 16 Nov, 2009 2 commits