1. 05 Jul, 2010 5 commits
    • Jan D's avatar
      Set _NET_WM(_ICON)_NAME as per Extended Window Manager Hints (Bug#6563). · 00be444c
      Jan D authored
      * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
      
      * xterm.c (x_term_init): Intern the _NET_WM_NAME and
      _NET_WM_ICON_NAME atoms.
      
      * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
      and _NET_WM_ICON_NAME properties, too, matching what is
      done in the Gtk+ case.
      00be444c
    • Jan D's avatar
    • Jan D's avatar
      Fix some bad prototypes and formatting after conversion from K&R declaration. · e4c8d29a
      Jan D authored
      * lwlib/lwlib-Xaw.c: Include <ctype.h> for isdigit.
      (fill_xft_data, set_text): Remove unused variable screen.
      (draw_text): Cast bp to FcChar8*.
      (find_xft_data): Return 0 if inst or xft_data is not set.
      (wm_delete_window): Correct prototype.  Initialize widget to 0
      and return if widget is still 0 after loop.
      
      * lwlib/xlwmenu.c (XlwMenuSetValues, XlwMenuInitialize): Correct prototype.
      (display_menu_item): Remove unused variable gi.
      (make_windows_if_needed): Remove unused variable screen.
      (XlwMenuRedisplay): Remove unused variable i.
      
      * src/gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
      (xg_get_image_for_pixmap, create_dialog)
      (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
      (menuitem_highlight_callback, make_menu_item)
      (xg_create_one_menuitem, create_menus, xg_update_menu_item)
      (xg_create_scroll_bar, xg_update_scrollbar_pos)
      (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
      (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
      (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
      (xg_tool_bar_item_expose_callback): Reformat prototype.
      (xg_update_menubar): GList *group => GSList *group.
      (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
      before use.
      (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
      to GTK_IMAGE (wimage).
      
      * src/xsettings.c (something_changedCB, parse_settings)
      (apply_xft_settings): Reformat prototype.
      (something_changedCB, init_gconf): Remove unused variable i.
      (read_settings): Remove unused variable long_len.
      
      * src/xsmfns.c (SSDATA): New macro.
      (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
      passed to strlen/strcpy/strcat.
      (create_client_leader_window): Surround with #ifndef USE_GTK.  Cast
      7:th arg to XChangeProperty to (unsigned char *)
      e4c8d29a
    • Dan Nicolaescu's avatar
      * src/atimer.c: Use "" instead of <> for local includes for · 898b4c5c
      Dan Nicolaescu authored
      consistency with the rest of the code.
      898b4c5c
    • Dan Nicolaescu's avatar
      Convert declarations or definitions to standard C. · dd4c5104
      Dan Nicolaescu authored
      * src/xsmfns.c (smc_save_yourself_CB, smc_error_handler):
      * src/xrdb.c (get_system_name):
      * src/window.c (shrink_windows):
      * src/syntax.c (forw_comment):
      * src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
      (ins_del_costs):
      * src/mem-limits.h (start_of_data):
      * src/lread.c (readevalloop):
      * src/gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
      (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
      * src/frame.c (x_get_focus_frame):
      * src/floatfns.c (fmod_float):
      * src/fileio.c (choose_write_coding_system):
      * src/emacs.c (fatal_error_signal, init_cmdargs, argmatch)
      (malloc_initialize_hook, sort_args, synchronize_locale):
      * src/doprnt.c (doprnt):
      * src/dired.c (compile_pattern):
      * src/data.c (fmod_float):
      * src/chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
      (map_char_table_for_charset):
      * src/charset.c (define_charset_internal):
      * src/alloc.c (Fgarbage_collect): Convert declarations or definitions
      to standard C.
      dd4c5104
  2. 04 Jul, 2010 16 commits
  3. 03 Jul, 2010 12 commits
    • Eli Zaretskii's avatar
      1c027a24
    • Eli Zaretskii's avatar
      Fix menu bar and colors on MS-DOS. · f4e8a59c
      Eli Zaretskii authored
       msdos.c (IT_set_frame_parameters): Set menu-bar-lines
       according to menu-bar-mode, if not set in the frame parameters
       or in default-frame-alist.  Fix setting of colors in frames
       other than the initial one.  Fix reversal of colors when
       `reverse' is specified in the frame parameters.  Call
       update_face_from_frame_parameter instead of
       internal-set-lisp-face-attribute.  Initialize screen colors
       from initial_screen_colors[] when f->default_face_done_p is
       zero, instead of depending on being called with
       default-frame-alist as the alist argument.
       xfaces.c (update_face_from_frame_parameter): Move out of
       HAVE_WINDOW_SYSTEM portion.  Condition window-system only parts
       with HAVE_WINDOW_SYSTEM.
      f4e8a59c
    • Eli Zaretskii's avatar
      Fix setting colors on MS-DOS frames. · 76ea4cc9
      Eli Zaretskii authored
       msdos.c (IT_set_frame_parameters): Fix setting of colors in
       frames other than the initial one.  Fix reversal of colors when
       `reverse' is specified in the frame parameters.  Call
       update_face_from_frame_parameter instead of
       internal-set-lisp-face-attribute.  Initialize screen colors from
       initial_screen_colors[] when f->default_face_done_p is zero,
       instead of depending on being called with default-frame-alist as
       the alist argument.
       xfaces.c (update_face_from_frame_parameter): Move out of
       HAVE_WINDOW_SYSTEM portion.  Condition window-system only parts
       with HAVE_WINDOW_SYSTEM.
      76ea4cc9
    • Andreas Schwab's avatar
      Fix invalid cast · a52a00a3
      Andreas Schwab authored
      * sorted-doc.c (cmpdoc): Fix signature.
      (qsort_compare): Delete.
      (main): Remove cast.
      a52a00a3
    • Eli Zaretskii's avatar
      Fix menu bar display on MS-DOS. · 1e6255ae
      Eli Zaretskii authored
       msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
       to menu-bar-mode, if not set in the frame parameters or in
       default-frame-alist.
      1e6255ae
    • Juanma Barranquero's avatar
    • Eli Zaretskii's avatar
    • Juanma Barranquero's avatar
      Fix prototypes. · 3a35a84c
      Juanma Barranquero authored
      * src/cm.c (evalcost): Fix arg type.
      * src/cm.h (evalcost): Fix prototype.
      * src/lisp.h (memory_warnings): Fix prototype.
      
      * lib-src/ebrowse.c (match_qualified_namespace_alias):
        Pass sym* to find_namespace, not link*.
      * lib-src/emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET.
      * lib-src/sorted-doc.c (qsort_compare): New typedef.
        (main): Use it to cast cmpdoc.
      3a35a84c
    • Chong Yidong's avatar
      Fix typo in last change. · fe0aa820
      Chong Yidong authored
      fe0aa820
    • Chong Yidong's avatar
      d6d8ee7a
    • Chong Yidong's avatar
      Simplify mouse-dragging implementation. · 5592c08f
      Chong Yidong authored
      Now that DEL deletes active regions, we can handle it by using the
      ordinary region instead of a separate overlay.
      
      * mouse.el (mouse-drag-overlay): Variable deleted.
      (mouse-move-drag-overlay, mouse-show-mark): Functions deleted.
      (mouse--remap-link-click-p): New function.
      (mouse-drag-track): Handle dragging by using temporary Transient
      Mark mode, instead of a special overlay.
      (mouse-kill-ring-save, mouse-save-then-kill): Don't call
      mouse-show-mark.
      
      * mouse-sel.el (mouse-sel-selection-alist): mouse-drag-overlay
      deleted.
      5592c08f
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · 873fbd0b
      Dan Nicolaescu authored
      * lib-src/update-game-score.c: Convert function definitions to standard C.
      * lib-src/sorted-doc.c:
      * lib-src/profile.c:
      * lib-src/pop.c:
      * lib-src/movemail.c:
      * lib-src/make-docfile.c:
      * lib-src/hexl.c:
      * lib-src/fakemail.c:
      * lib-src/etags.c:
      * lib-src/ebrowse.c:
      * lib-src/digest-doc.c:
      * lib-src/b2m.c: Likewise.
      873fbd0b
  4. 02 Jul, 2010 7 commits