1. 05 Jul, 2011 4 commits
    • Juanma Barranquero's avatar
      Fix typos. · 9173deec
      Juanma Barranquero authored
      9173deec
    • Jan Djärv's avatar
      Use GConf and GSettings both, check GConf/GSettings toolbar style and font name. · 869795d6
      Jan Djärv authored
      * configure.in (HAVE_GCONF): Allow both HAVE_GCONF and HAVE_GSETTINGS.
      
      * lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event): 
      Update doc string.
      
      * src/xsettings.c: Use both GConf and GSettings if both are available.
      (store_config_changed_event): Add comment.
      (dpyinfo_valid, store_font_name_changed, map_tool_bar_style)
      (store_tool_bar_style_changed): New functions.
      (store_monospaced_changed): Add comment. Call dpyinfo_valid.
      (struct xsettings): Move font inside HAVE_XFT.
      (GSETTINGS_TOOL_BAR_STYLE, GSETTINGS_FONT_NAME): New defines.
      (GSETTINGS_MONO_FONT): Renamed from SYSTEM_MONO_FONT.
      Move inside HAVE_XFT.
      (something_changed_gsettingsCB): Renamed from something_changedCB.
      Check for changes in GSETTINGS_TOOL_BAR_STYLE and GSETTINGS_FONT_NAME
      also.
      (GCONF_TOOL_BAR_STYLE, GCONF_FONT_NAME): New defines.
      (GCONF_MONO_FONT): Renamed from SYSTEM_MONO_FONT. Move inside HAVE_XFT.
      (something_changed_gconfCB): Renamed from something_changedCB.
      Check for changes in GCONF_TOOL_BAR_STYLE and GCONF_FONT_NAME also.
      (parse_settings): Move check for font inside HAVE_XFT.
      (read_settings, apply_xft_settings): Add comment.
      (read_and_apply_settings): Add comment.  Call map_tool_bar_style and
      store_tool_bar_style_changed.  Move check for font inside HAVE_XFT and
      call store_font_name_changed.
      (xft_settings_event): Add comment.
      (init_gsettings): Add comment.  Get values for GSETTINGS_TOOL_BAR_STYLE
      and GSETTINGS_FONT_NAME.  Move check for fonts within HAVE_XFT.
      (init_gconf): Add comment.  Get values for GCONF_TOOL_BAR_STYLE
      and GCONF_FONT_NAME.  Move check for fonts within HAVE_XFT.
      (xsettings_initialize): Call init_gsettings last.
      (xsettings_get_system_font, xsettings_get_system_normal_font): Add
      comment.
      869795d6
    • Manoj Srivastava's avatar
      3ca5c03f
    • Paul Eggert's avatar
      Random fixes. E.g., (random) never returned negative values. · d8ed26bd
      Paul Eggert authored
      * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
      subseconds part to the entropy, as that's a bit more random.
      Prefer signed to unsigned, since the signedness doesn't matter and
      in general we prefer signed.  When given a limit, use a
      denominator equal to INTMASK + 1, not to VALMASK + 1, because the
      latter isn't right if USE_2_TAGS_FOR_INTS.
      * sysdep.c (get_random): Return a value in the range 0..INTMASK,
      not 0..VALMASK.  Don't discard "excess" bits that random () returns.
      d8ed26bd
  2. 04 Jul, 2011 36 commits