1. 25 Dec, 2004 1 commit
  2. 07 Dec, 2004 2 commits
    • Jan Djärv's avatar
      * gtkutil.c: Include signal.h and syssignal.h. · aa477689
      Jan Djärv authored
      (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
      
      * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
      new variables main_thread and alloc_mutex,
      define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
      emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
      If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
      (UN)BLOCK_INPUT.
      (emacs_blocked_free, emacs_blocked_malloc)
      (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
      (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
      (reset_malloc_hooks): New function.
      
      * lisp.h: Declare reset_malloc_hooks.
      
      * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
      
      * keyboard.c: Conditionally include pthread.h
      (handle_async_inpu, input_available_signalt): If not in the main
      thread, block signal, send signal to main thread and return.
      aa477689
    • Jan Djärv's avatar
      * gtkutil.c (xg_get_file_with_chooser): Handle local files only. · ded997c1
      Jan Djärv authored
      Set current folder in file chooser if default_filename is a
      directory.
      ded997c1
  3. 23 Nov, 2004 1 commit
  4. 16 Nov, 2004 1 commit
  5. 13 Nov, 2004 2 commits
    • Jan Djärv's avatar
      Add BLOCK_INPUT in pop_down_file_dialog. · cd2531db
      Jan Djärv authored
      cd2531db
    • Jan Djärv's avatar
      * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel) · 457a8155
      Jan Djärv authored
      (xg_file_sel_destroy): Removed.
      (xg_file_response_cb, pop_down_file_dialog,
      xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
      New functions.
      (xg_get_file_with_chooser, xg_get_file_with_selection): Take
      new argument func, set it to xg_get_file_name_from_chooser/selector.
      Move common code to xg_get_file_name.  Return widget created.
      (xg_get_file_name): Set name, transient for, modal and destroy
      with parent here.  Connect response signal to xg_file_response_cb,
      connect delete-event to gtk_true.  Record pop_down_file_dialog
      for unwind.  Do event loop and call x_menu_wait_for_event in loop.
      (xg_create_widget): Make dialogs modal.
      457a8155
  6. 04 Nov, 2004 2 commits
  7. 02 Nov, 2004 2 commits
    • Jan Djärv's avatar
      8cfd0f36
    • Jan Djärv's avatar
      * fileio.c (Fread_file_name): Pass Qt as fifth parameter to · f9d64bb3
      Jan Djärv authored
      Fx_file_dialog if only directories should be read.
      
      * lisp.h: Fx_file_dialog takes 5 parameters.
      
      * xfns.c (Fx_file_dialog): Both Motif and GTK version:  Add
      parameter only_dir_p.
      In Motif version, don't put DEFAULT_FILENAME in filter part of the
      dialog, just text field part.  Do not add DEFAULT_FILENAME
      to list of files if it isn't there.
      In GTK version, pass only_dir_p parameter to xg_get_file_name.
      
      * macfns.c (Fx_file_dialog): Add parameter only_dir_p.  Check
      only_dir_p instead of comparing prompt to "Dired".  When using
      a save dialog, add option kNavDontConfirmReplacement, change title
      to "Enter name", change text for save button to "Ok".
      
      * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.  Check
      only_dir_p instead of comparing prompt to "Dired".
      
      * gtkutil.c (xg_get_file_with_chooser)
      (xg_get_file_with_selection): New functions, only defined ifdef
      HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
      respectively.
      (xg_get_file_name): Add parameter only_dir_p.
      Call xg_get_file_with_chooser or xg_get_file_with_selection
      depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
      (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
      
      * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
      f9d64bb3
  8. 26 Oct, 2004 1 commit
    • Jan Djärv's avatar
      * gtkutil.c: Put empty line between comment and function body. · 71bacd48
      Jan Djärv authored
      (xg_destroy_widgets): Renamed from remove_from_container.  Just
      destroy all widgets in list.  Argument wcont removed.
      (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
      instead of remove_from_container.
      (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
      (free_frame_tool_bar): Add comment.
      71bacd48
  9. 19 Oct, 2004 1 commit
    • Jan Djärv's avatar
      * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose, · 1755a397
      Jan Djärv authored
      xg_find_top_left_in_fixed): Removed.
      (xg_create_scroll_bar): Put an event box widget between
      the scroll bar widget and the edit widget.
      (xg_show_scroll_bar): Show the parent widget (the event box).
      (xg_remove_scroll_bar): Destroy parent (the event box) also.
      (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
      Move the parent (the event box) widget inside the fixed widget.
      Move window clear to xterm.c.
      1755a397
  10. 18 Oct, 2004 1 commit
  11. 27 Aug, 2004 1 commit
  12. 28 Jun, 2004 2 commits
  13. 14 Jun, 2004 1 commit
  14. 03 May, 2004 1 commit
  15. 24 Dec, 2003 1 commit
  16. 16 Nov, 2003 1 commit
  17. 02 Nov, 2003 1 commit
  18. 01 Sep, 2003 1 commit
  19. 29 Jul, 2003 1 commit
  20. 15 Jun, 2003 1 commit
  21. 03 Jun, 2003 1 commit
  22. 02 Jun, 2003 1 commit
  23. 24 May, 2003 1 commit
  24. 02 May, 2003 1 commit
  25. 09 Apr, 2003 1 commit
  26. 28 Mar, 2003 1 commit
  27. 26 Mar, 2003 1 commit
    • Jan Djärv's avatar
      * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared. · 5fd6f727
      Jan Djärv authored
      (xg_frame_set_char_size): Calculate scroll bar width before frame
      width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
      (xg_separator_p): Check for all documented separator types.
      (xg_update_scrollbar_pos): Variable gheight not needed, use height.
      (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
      5fd6f727
  28. 23 Mar, 2003 2 commits
  29. 18 Mar, 2003 1 commit
  30. 17 Mar, 2003 2 commits
  31. 14 Mar, 2003 2 commits
  32. 13 Mar, 2003 1 commit