1. 08 Mar, 2011 1 commit
    • Jan D's avatar
      Updates for compiling with Gtk+ 3.0 (--with-x-toolkit=gtk3). · 0afb4571
      Jan D authored
      * configure.in: Require 3.0 for --with-gtk3.  Add HAVE_GTK3.
      
      * doc/emacs/xresources.texi (GTK resources): ~/.emacs.d/gtkrc does not work
      for Gtk+ 3.
      
      * src/gtkutil.c: Include gtkx.h if HAVE_GTK3.  If ! HAVE_GTK3, define
      gdk_window_get_screen, gdk_window_get_geometry,
      gdk_x11_window_lookup_for_display and GDK_KEY_g.
      (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
      (xg_get_pixbuf_from_pixmap): New function.
      (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
      to Pixmap, take frame as parameter, remove GdkColormap parameter.
      Call xg_get_pixbuf_from_pixmap instead of
      gdk_pixbuf_get_from_drawable.
      (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
      xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
      (xg_check_special_colors): Use GtkStyleContext and its functions
      for HAVE_GTK3.
      (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
      (xg_prepare_tooltip, create_dialog, menubar_map_cb)
      (xg_update_frame_menubar, xg_tool_bar_detach_callback)
      (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
      gtk_widget_get_preferred_size.
      (xg_frame_resized): gdk_window_get_geometry only takes 5
      parameters.
      (xg_win_to_widget, xg_event_is_for_menubar): Call
      gdk_x11_window_lookup_for_display.
      (xg_set_widget_bg): New function.
      (delete_cb): New function.
      (xg_create_frame_widgets): connect delete-event to delete_cb.
      Call xg_set_widget_bg.  Only set backgrund pixmap for ! HAVE_GTK3
      (xg_set_background_color): Call xg_set_widget_bg.
      (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
      (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
      Only call gtk_range_set_update_policy if ! HAVE_GTK3.
      (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
      if ! HAVE_GTK3.
      (update_frame_tool_bar): Call gtk_widget_hide.
      (xg_initialize): Use GDK_KEY_g.
      
      * src/xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
      
      * src/xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
      if ! HAVE_GTK3
      (x_session_initialize): Call gdk_x11_set_sm_client_id.
      
      * src/xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
      (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
      Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
      
      * src/xterm.h (DEFAULT_GDK_DISPLAY): New define.
      (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
      for ! HAVE_GTK3.
      (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
      0afb4571
  2. 06 Mar, 2011 1 commit
  3. 03 Mar, 2011 1 commit
  4. 24 Feb, 2011 1 commit
  5. 22 Feb, 2011 2 commits
    • Paul Eggert's avatar
      [ChangeLog] · ae0d7250
      Paul Eggert authored
      Work around some portability problems with symlinks.
      * Makefile.in (GNULIB_MODULES): Add lstat, readlink, symlink.
      * configure.in (lstat, HAVE_LSTAT): Remove special hack.
      * lib/lstat.c, lib/readlink.c, lib/stat.c, lib/symlink.c:
      * m4/dos.m4, m4/lstat.m4, m4/readlink.m4, m4/stat.m4, m4/symlink.m4:
      New files, automatically generated from gnulib.
      * aclocal.m4, configure, lib/Makefile.in, lib/gnulib.mk:
      * lib/stdlib.in.h, m4/gl-comp.m4, m4/stdlib_h.m4: Regenerate.
      
      2011-02-22  Paul Eggert  <eggert@cs.ucla.edu>
      [src/ChangeLog]
      Work around some portability problems with symlinks.
      * fileio.c (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
      Simplify the code by assuming that the readlink and symlink calls
      exist, even if they always fail on this host.
      (Ffile_readable_p): Likewise, for fifos.
      * config.in: Regenerate.
      ae0d7250
    • Paul Eggert's avatar
      [ChangeLog] · f68c809d
      Paul Eggert authored
      Assume S_ISLNK etc. work, since gnulib supports this.
      * Makefile.in (GNULIB_MODULES): Add sys_stat.
      * configure.in: Check for lstat and set HAVE_LSTAT=0 if not.
      Pretend to be using the gnulib lstat module for benefit of sys/stat.h.
      * configure, lib/Makefile.in, lib/gnulib.mk: Regenerate.
      [lib-src/ChangeLog]
      Assume S_ISLNK etc. work, since gnulib supports this.
      * etags.c (S_ISREG): Remove.
      [src/ChangeLog]
      Assume S_ISLNK etc. work, since gnulib supports this.
      * config.in: Regenerate.
      * dired.c (lstat): Remove.
      (file_name_completion): Assume S_ISDIR works.
      (file_name_completion_stat): Assume S_ISLNK works.
      Do not bother calling stat unless lstat says it's a symlink.
      * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
      (Fcopy_file): Assume S_ISREG and S_ISLNK work.
      (check_writable, Ffile_writable_p, Fset_file_times):
      Assume S_ISDIR works.
      (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
      fifos exist.
      (Ffile_regular_p, Finsert_file_contents): Assumes S_ISREG works.
      * filelock.c (S_ISLNK): Remove.
      * lread.c (openp): Assume S_ISDIR works.
      * xrdb.c (S_ISDIR): Remove.
      f68c809d
  6. 20 Feb, 2011 1 commit
  7. 16 Feb, 2011 1 commit
  8. 15 Feb, 2011 1 commit
  9. 08 Feb, 2011 2 commits
    • Tom Tromey's avatar
      Make globals.h a generated header · 00b3c7ac
      Tom Tromey authored
      	* configure: Rebuild.
      	* configure.in (NS_OBJC_OBJ): New subst.
      lib-src
      	* make-docfile.c: Unconditionally include stdlib.h.
      	(generate_globals): New global.
      	(xrealloc): New function.
      	(main): Handle '-g'.  Call start_globals, write_globals.
      	(scan_file): Conditionally call put_filename.
      	(start_globals): New function.
      	(struct global): New.
      	(num_globals, globals): New globals.
      	(add_global, compare_globals, write_globals): New functions.
      	(scan_c_file): Update for "-g".
      	(scan_lisp_file): Fail if "-g".
      	(enum global_type): New.
      src
      	* Makefile.in (NS_OBJC_OBJ): New variable.
      	(base_obj): Rename from 'obj'.
      	(obj): New variable.
      	(globals.h, gl-stamp, $(obj)): New targets.
      	(GLOBAL_SOURCES): New variable.
      	* globals.h: Remove.
      	* nsselect.m (Vselection_alist): Define.  Reverts part of
      	2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
      	* buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
      	variable.
      	* xselect.c (Vselection_alist): Define.  Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
      00b3c7ac
    • Paul Eggert's avatar
      Import getloadavg module from gnulib. · 79ab4b7f
      Paul Eggert authored
      79ab4b7f
  10. 01 Feb, 2011 1 commit
  11. 31 Jan, 2011 1 commit
  12. 30 Jan, 2011 1 commit
  13. 27 Jan, 2011 1 commit
  14. 25 Jan, 2011 2 commits
  15. 24 Jan, 2011 1 commit
  16. 23 Jan, 2011 1 commit
  17. 22 Jan, 2011 2 commits
    • Miles Bader's avatar
      configure.in: Don't zero-out FONTCONFIG_CFLAGS and FONTCONFIG_LIBS · 48dcd482
      Miles Bader authored
      when building with XFT (doing so is incorrect, as Emacs directly uses
      fontconfig, and breaks building when using a strict linker).
      48dcd482
    • Paul Eggert's avatar
      src/config.in: shrink slightly · b06b1098
      Paul Eggert authored
      * configure.in: Invoke the new gnulib macro gl_ASSERT_NO_GNULIB_TESTS.
      This makes src/config.in a bit smaller, by removing identifiers
      like GNULIB_TEST_MKTIME that Emacs does not need.
      * m4/getopt.m4, m4/gnulib-common.m4, m4/include_next.m4:
      * m4/multiarch.m4, m4/stddef_h.m4, m4/time_h.m4, m4/unistd_h.m4:
      Sync from gnulib.  This removes a few more unnecessary symbols from
      src/config.in, such as AA_APPLE_UNIVERSAL_BUILD and HAVE_STDDEF_H.
      * configure, src/config.in: Regenerate.
      b06b1098
  18. 18 Jan, 2011 1 commit
  19. 15 Jan, 2011 2 commits
  20. 12 Jan, 2011 2 commits
  21. 09 Jan, 2011 3 commits
  22. 08 Jan, 2011 1 commit
  23. 05 Jan, 2011 2 commits
  24. 02 Jan, 2011 1 commit
  25. 29 Dec, 2010 1 commit
  26. 10 Dec, 2010 3 commits
  27. 04 Dec, 2010 2 commits
    • Chong Yidong's avatar
      * configure.in: Fix last change. · d96c83fa
      Chong Yidong authored
      d96c83fa
    • Andreas Schwab's avatar
      Remove empty machine description files · d6a003a8
      Andreas Schwab authored
      * configure.in: Remove reference to removed machine description
      files and allow $machine and $machfile to be empty.  Substitute
      M_FILE/S_FILE instead of machfile/opsysfile.
      
      * msdos/sed1v2.inp (M_FILE, S_FILE): Add $(srcdir)/ prefix.
      
      * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
      (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
      * src/m/arm.h, src/m/sh3.h, src/m/xtensa.h: Remove files.
      d6a003a8
  28. 03 Dec, 2010 1 commit