1. 10 Jul, 2011 1 commit
  2. 09 Jul, 2011 5 commits
  3. 08 Jul, 2011 8 commits
    • Paul Eggert's avatar
      Simplify Emacs part of pthread_sigmask support. · 2a84b02d
      Paul Eggert authored
      * Makefile.in (GNULIB_TOOL_FLAGS): Do not avoid sigprocmask.
      * configure.in (AC_TYPE_UID_T): New dummy macro.
      Configure gnulib after adjusting LIBS,
      so that gnulib can assume the libraries in LIBS.
      * lib/pthread_sigmask.c, lib/sigprocmask.c, m4/signalblocking.m4:
      New files, automatically imported from gnulib.
      * lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
      * src/Makefile.in (LIB_PTHREAD_SIGMASK): New macro.
      (LIBES): Use it.
      2a84b02d
    • Jan Djärv's avatar
      Better fix that keeps corret margins in tooltip. · 1b854618
      Jan Djärv authored
      * gtkutil.c (qttip_cb): Set line wrap to FALSE for tooltip widget.
      (xg_prepare_tooltip): Revert text in x->ttip_lbl, margins was
      wrong.
      
      Fixes: debbugs:8591
      1b854618
    • Jan Djärv's avatar
      Don't let Gtk+ linewrap tooltips. · 0ce7e563
      Jan Djärv authored
      * gtkutil.c (xg_prepare_tooltip): Fix indentation and comment.
      Put text in x->ttip_lbl instead of gtk_tooltip_set_text.
      (xg_hide_tooltip): Fix comment.
      
      Fixes: debbugs:8591
      0ce7e563
    • Jan Djärv's avatar
      Fix breakage introduced by fixing Bug#8842. · 3fe4b549
      Jan Djärv authored
      * nsfns.m (Fx_open_connection): Put NSStringPboardType into
      ns_return_type.
      
      * nsterm.m (initFrameFromEmacs): Don't use ns_return_types
      in registerServicesMenuSendTypes.
      (validRequestorForSendType): Don't check ns_return_types.
      3fe4b549
    • Jason Rumney's avatar
      * src/w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using · 5df75e47
      Jason Rumney authored
      frame struct members of non-existent frames.
      
      Fixes: debbugs:6284
      5df75e47
    • Jan Djärv's avatar
      Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces. · 4393663b
      Jan Djärv authored
      * emacs.c: Declare unexec_init_emacs_zone.
      
      * nsfns.m (check_ns_display_info): Cast to long and use %ld in error
      to avoid warning.
      
      * nsimage.m (allocInitFromFile): Don't use deprecated method
      bestRepresentationForDevice on OSX >= 10.6.
      
      * nsmenu.m (fillWithWidgetValue): Don't use depercated method
      sizeToFit on OSX >= 10.2.
      
      * nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
      cString and lossyCString on OSX >= 10.4
      
      * nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
      (MAC_OS_X_VERSION_10_5): Define if not defined.
      (EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
      (EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
      (EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.
      
      * nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
      variable firstTime not needed on OSX >= 10.6.
      (setPosition): setFloatValue:knobProportion: is deprecated on OSX
      >= 10.5.  Use setKnobProportion, setDoubleValue.
      4393663b
    • Jan Djärv's avatar
    • Jan Djärv's avatar
      Fix services menu empty on OSX 1.6+. · 699c10bd
      Jan Djärv authored
      * nsfns.m (Fx_open_connection): Remove NSStringPboardType from
      ns_return_types.
      (Fns_list_services): Just return Qnil on 10.6, code not working there.
      
      * nsmenu.m (ns_update_menubar): Remove useless setDelegate call
      on svcsMenu.
      
      * nsselect.m (ns_get_local_selection): Change to extern (Bug#8842).
      
      * nsterm.h (MAC_OS_X_VERSION_10_6): Define here instead of nsterm.m.
      (ns_get_local_selection): Declare.
      
      * nsterm.m (QUTF8_STRING): Declare.
      (initFrameFromEmacs): Call registerServicesMenuSendTypes.
      (validRequestorForSendType): Return type is (id).
      Change indexOfObjectIdenticalTo to indexOfObject.
      Check if we have local selection before returning self (Bug#8842).
      (writeSelectionToPasteboard): Put local selection into paste board
      if we have a local selection (Bug#8842).
      (syms_of_nsterm): DEFSYM QUTF8_STRING.
      699c10bd
  4. 07 Jul, 2011 6 commits
  5. 06 Jul, 2011 5 commits
  6. 05 Jul, 2011 3 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
    • 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
  7. 04 Jul, 2011 9 commits
  8. 03 Jul, 2011 3 commits