1. 01 Jan, 2020 1 commit
  2. 24 Apr, 2019 1 commit
    • YAMAMOTO Mitsuharu's avatar
      Don't link libXft when using cairo · 5f4e8e2e
      YAMAMOTO Mitsuharu authored
      * configure.ac: Check cairo early.  Don't try Xft if cairo is used.
      * lwlib/lwlib-utils.h [USE_CAIRO]: Include cairo.h and fontconfig.h.
      (XftFont, XftDraw, XftColor, XGlyphInfo) [USE_CAIRO]: New typedefs.
      (XftFontOpenName, XftFontClose, XftDrawCreate, XftDrawDestroy)
      (XftDrawRect, XftDrawStringUtf8, XftTextExtentsUtf8) [USE_CAIRO]: New macros.
      (crxft_font_open_name, crxft_font_close, crxft_draw_create)
      (crxft_draw_rect, crxft_draw_string, crxft_text_extents) [USE_CAIRO]: New
      externs.
      * lwlib/lwlib-utils.c [USE_CAIRO]: Include math.h, cairo-ft.h, and
      cairo-xlib.h.
      (crxft_font_open_name, crxft_font_close, crxft_draw_create)
      (crxft_set_source_color, crxft_draw_rect, crxft_draw_string)
      (crxft_text_extents) [USE_CAIRO]: New Xft compatibility functions.
      * lwlib/xlwmenuP.h [USE_CAIRO]: Include lwlib-utils.h.
      * lwlib/xlwmenu.c (display_menu_item) [USE_CAIRO]: Call
      cairo_surface_mark_dirty and cairo_surface_flush.
      * lwlib/lwlib-Xaw.c [USE_CAIRO]: Include stdlib.h and lwlib-utils.h.
      (draw_text) [USE_CAIRO]: Call cairo_surface_flush.
      * src/xsettings.c [USE_CAIRO]: Include fontconfig.h
      (apply_xft_settings) [!HAVE_XFT]: Don't call XftDefaultSubstitute or
      XftDefaultSet.
      * lwlib/lwlib-Xaw.c:
      * lwlib/lwlib-int.h:
      * lwlib/xlwmenu.c:
      * lwlib/xlwmenuP.h:
      * src/xrdb.c:
      * src/xsettings.c:
      * src/xterm.c: Replace all #ifdef HAVE_XFT with #if defined USE_CAIRO ||
      defined HAVE_XFT.
      * src/xfns.c (x_default_font_parameter): Replace #ifdef HAVE_XFT with #if
      defined	USE_CAIRO || defined HAVE_XFT.
      5f4e8e2e
  3. 23 Apr, 2019 1 commit
    • YAMAMOTO Mitsuharu's avatar
      Release xft_data in widget destroy callback to avoid visual distraction · 085929ca
      YAMAMOTO Mitsuharu authored
      * lwlib/lwlib-int.h (struct _widget_instance) [HAVE_XFT]: Remove nr_xft_data.
      * lwlib/lwlib-Xaw.c (find_xft_data, xaw_update_one_widget) [HAVE_XFT]: Loop
      while widget member is not NULL instead of using nr_xft_data.
      (xaw_destroy_instance) [HAVE_XFT]: Move xft_data release code from here ...
      (destroy_xft_data) [HAVE_XFT]: ... to here.
      (make_dialog) [HAVE_XFT]: Add destroy_xft_data as destroy callback for dialog.
      085929ca
  4. 01 Jan, 2019 1 commit
  5. 01 Jan, 2018 1 commit
  6. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  7. 01 Jan, 2017 1 commit
  8. 01 Jan, 2016 1 commit
  9. 01 Jan, 2015 2 commits
  10. 30 May, 2014 1 commit
    • Dmitry Antipov's avatar
      Use common string allocation and freeing functions where applicable. · a0845323
      Dmitry Antipov authored
      * lwlib.h (safe_strdup): Remove prototype.
      * lwlib.c (safe_strdup, safe_free_str): Remove.
      (copy_widget_value_tree, allocate_widget_info, free_widget_info):
      (merge_widget_value): Prefer xstrdup, xfree and dupstring.
      * lwlib-Xm.c (make_destroyed_instance, xm_update_one_value): Ditto.
      a0845323
  11. 01 Jan, 2014 1 commit
  12. 01 Jan, 2013 1 commit
  13. 31 Dec, 2012 1 commit
  14. 11 Jan, 2012 1 commit
  15. 05 Jan, 2012 1 commit
  16. 25 Jan, 2011 1 commit
  17. 15 Jan, 2011 1 commit
  18. 02 Jan, 2011 1 commit
  19. 08 Jul, 2010 1 commit
    • Jan D's avatar
      Change function definition from K&R to prototype. Fix prototype warnings. · c825c0b6
      Jan D authored
      * lwlib-Xaw.c (xaw_generic_callback, command_reset)
      (xaw_update_one_value): Reformat.
      (xaw_update_one_widget): Reformat and remove dead code.
      (xaw_scrollbar_scroll, xaw_scrollbar_jump, xaw_create_scrollbar)
      (xaw_update_scrollbar): Remove (not used).
      (make_dialog): Change from K&R to prototype. Remove dead code.
      (xaw_creation_table): Remove scrollbar entry.
      
      * lwlib-Xlw.c (x_print_complete_resource_name): Change from K&R to
      prototype.
      (xlw_update_one_value): Reformat.
      
      * lwlib-Xm.c (x_print_complete_resource_name)
      (make_destroyed_instance, free_destroyed_instance, first_child)
      (lw_motif_widget_p, resource_motif_string, destroy_all_children)
      (xm_arm_callback, xm_update_label, xm_update_list)
      (xm_update_pushbutton, xm_update_cascadebutton)
      (xm_update_toggle, xm_update_radiobox, make_menu_in_widget)
      (update_one_menu_entry, xm_update_menu, xm_update_text)
      (xm_update_text_field, xm_update_one_widget)
      (xm_update_one_value, activate_button, dialog_key_cb)
      (make_dialog, mark_dead_instance_destroyed)
      (find_matching_instance, recenter_widget, recycle_instance)
      (xm_create_dialog, make_menubar, remove_grabs, make_popup_menu)
      (make_main, xm_destroy_instance, xm_popup_menu)
      (set_min_dialog_size, xm_pop_instance, do_call)
      (xm_internal_update_other_instances, xm_generic_callback)
      (xm_nosel_callback, xm_pull_down_callback, xm_pop_down_callback)
      (xm_set_keyboard_focus, xm_set_main_areas, xm_manage_resizing): Change
      from K&R to prototype.
      
      * lwlib-int.h (widget_creation_function): Fix prototype.
      
      * lwlib.c (allocate_widget_info, lw_register_widget): Change from K&R
      to prototype.
      (lw_internal_update_other_instances, merge_widget_value): Reformat.
      
      * xlwmenu.c (size_menu_item): Change from K&R to prototype.
      Change label_width and height to int.
      (draw_arrow, draw_shadow_rectangle, draw_shadow_rhombus)
      (draw_separator, display_menu, fit_to_screen, motion_event_is_in_menu)
      (map_event_to_widget_value): Reformat.
      (display_menu_item): Change from K&R to prototype.
      c825c0b6
  20. 02 Jul, 2010 1 commit
    • Jan D's avatar
      Remove P_ and __P macros. · 383e0970
      Jan D authored
      * lwlib/lwlib-Xaw.h: Remove P_ and __P macros.
      * lwlib/lwlib-Xlw.h:
      * lwlib/lwlib-Xm.h:
      * lwlib/lwlib-int.h:
      * lwlib/lwlib-utils.h:
      * lwlib/lwlib.h: Likewise.
      
      * src/buffer.h: Remove P_ and __P macros.
      * src/category.h:
      * src/ccl.h:
      * src/character.h:
      * src/charset.h:
      * src/cm.h:
      * src/coding.h:
      * src/composite.h:
      * src/dispextern.h:
      * src/disptab.h:
      * src/font.h:
      * src/fontset.h:
      * src/frame.h:
      * src/gtkutil.h:
      * src/indent.h:
      * src/intervals.h:
      * src/keyboard.h:
      * src/keymap.h:
      * src/lisp.h:
      * src/macros.h:
      * src/md5.h:
      * src/menu.h:
      * src/msdos.h:
      * src/nsterm.h:
      * src/puresize.h:
      * src/region-cache.h:
      * src/syntax.h:
      * src/syssignal.h:
      * src/systime.h:
      * src/termhooks.h:
      * src/w32term.h:
      * src/widget.h:
      * src/window.h:
      * src/xgselect.h:
      * src/xsettings.h:
      * src/xterm.h: Likewise.
      383e0970
  21. 11 Apr, 2010 1 commit
    • Jan Djärv's avatar
      Use XFT in Lucid dialogs if available. · 1ecb2d3f
      Jan Djärv authored
      	* xmenu.c (apply_systemfont_to_dialog): New.
      	(create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
      
      	* lwlib-Xaw.c (widget_xft_data): New for Xft data.
      	(fill_xft_data, openFont, get_text_width_and_height)
      	(draw_text, set_text, find_xft_data, command_press)
      	(command_reset): New functions.
      	(xaw_update_one_widget): Call set_text for dialog and buttons
      	if HAVE_XFT.  Also set internalHeight for buttons.
      	(xaw_destroy_instance): Free all Xft related data.
      	(button_actions, buttonTrans): New structures.
      	(make_dialog): Call XtAppAddActions for button_actions.
      	Find xft font to use and call fill_xft_data for widgets.
      	(xaw_create_dialog): Pass instance parameter to make_dialog.
      
      	* lwlib-int.h (_widget_instance): Add Xft data if HAVE_XFT.
      	Override translations for buttons.  If depth is 16 or more, tell
      	Xaw3d to not be nice to colormap.
      	Remove separator widget, use XtNhorizDistance on first right button
      	instead.
      
      	* xresources.texi (Lucid Resources): Mention faceName for dialogs.
      1ecb2d3f
  22. 13 Jan, 2010 1 commit
  23. 08 Jan, 2009 1 commit
  24. 07 Jan, 2008 1 commit
  25. 27 Feb, 2007 1 commit
  26. 16 Apr, 2004 1 commit
  27. 08 Sep, 2003 1 commit
  28. 01 Sep, 2003 1 commit
  29. 06 Jun, 2000 1 commit
  30. 17 Jan, 2000 1 commit
  31. 05 Jan, 1996 1 commit
  32. 28 Nov, 1994 1 commit
  33. 10 Sep, 1994 1 commit
  34. 30 Jan, 1994 1 commit
  35. 18 Jan, 1994 1 commit