1. 13 Apr, 2010 1 commit
  2. 24 Feb, 2010 1 commit
    • Jan Djärv's avatar
      Move declarations before statements. · 32e737d7
      Jan Djärv authored
      * xterm.c (XTflash): Move declarations before statements.
      
      * gtkutil.c (xg_get_gdk_display): Remove (unused).
      (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
      (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
      (xg_create_tool_bar): Remove unused variables.
      (x_wm_set_size_hint): Move declarations before statements.
      (xg_create_frame_widgets): Remove variable grav,
      32e737d7
  3. 13 Jan, 2010 1 commit
  4. 05 Jan, 2010 1 commit
    • Jan Djärv's avatar
      Handle change of internal-border width when maximized. · 7c583cd8
      Jan Djärv authored
      * xterm.c (x_new_font): Move code for setting rows/cols before
      resizing ...
      (x_set_window_size): ... to here. bug #2568.
      
      * gtkutil.c (xg_clear_under_internal_border): New function.
      (xg_frame_resized, xg_frame_set_char_size): Call
      xg_clear_under_internal_border.
      (xg_update_scrollbar_pos): Clear under old scroll bar position.
      7c583cd8
  5. 13 Dec, 2009 1 commit
    • Jan Djärv's avatar
      Bug 5177: Scroll bar thumb did not move when scrolling with mouse wheel. · e5f0bc9a
      Jan Djärv authored
      * xterm.c (xg_scroll_callback): Parameter list changed,
      use parameter GtkScrollType to determine scroll/line/page.
      Only allow dragging if a button < 4 is grabbed (bug #5177).
      (xg_end_scroll_callback): New function.
      (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
      xg_create_scroll_bar.
      
      * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
      (scroll_end_callback): Remove.
      (xg_create_scroll_bar): Add parameter end_callback, bind it to
      button-release-event.  Replace value-changed event with change-value,
      bug #5177,
      (xg_event_is_for_scrollbar): Only return true if button is less than 4,
      bug #5177.
      
      * gtkutil.h (XG_LAST_SB_DATA): Remove.
      (xg_create_scroll_bar): Add GCallback end_callback.
      e5f0bc9a
  6. 12 Dec, 2009 1 commit
  7. 09 Dec, 2009 1 commit
  8. 21 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Use a select wrapper around the GLib event loop, thus taking into account GLib · 872870b2
      Jan Djärv authored
      timeouts and event sources.  This simplifies Gtk+-code a lot, and is needed
      for handling GConf death/restart.
      
      * xterm.c: #include xgselect.h.
      (x_initialize): Call xgselect_initialize.
      
      * xsettings.c (something_changedCB): C++ comments => C comments.
      (init_gconf): Do not deal with any GLib file descriptors, xg_select
      does that now.
      
      * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
      (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
      (scroll_bar_button_cb): Remove.
      (create_menus): C++ comments => C comments. Don't bind grab-notify
      event.
      (xg_create_scroll_bar): Don't bind button-press-event and
      button-release-event.
      
      * process.c: Include xgselect.h if defined (USE_GTK) ||
      defined (HAVE_GCONF).
      (wait_reading_process_output): Call xg_select for the same condition.
      
      * xgselect.c (xg_select): New function to better integrate with
      GLib/Gtk event handling.  Needed if GConf daemon dies/restarts.
      
      * xgselect.h: New file, declare xg_select, xgselect_initialize.
      
      * Makefile.in (XOBJ): Add xgselect.o.
      872870b2
  9. 20 Nov, 2009 1 commit
  10. 14 Nov, 2009 1 commit
  11. 11 Nov, 2009 1 commit
    • Dan Nicolaescu's avatar
      * process.c (ifflag_def): Make flag_sym constant. · 91433552
      Dan Nicolaescu authored
      (Fnetwork_interface_info): Use a constant pointer.
      (ifflag_table):
      * xfns.c (cursor_bits):
      * xdisp.c (power_letter):
      * termcap.c (speeds, esctab):
      * sysdep.c (baud_convert):
      * keyboard.c (lispy_accent_codes, modifier_names):
      * image.c (xbm_format, xpm_format, pbm_format, png_format)
      (jpeg_format, tiff_format, gif_format, svg_format)
      (interlace_start, interlace_increment, gs_format):
      * gtkutil.c (separator_names):
      * fringe.c (swap_nibble):
      * fns.c (base64_value_to_char, base64_char_to_value):
      * fileio.c (make_temp_name_tbl):
      * coding.c (suffixes): Make constant.
      91433552
  12. 10 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Bug #4574. Common code for file/font dialog. Handle timers with glib-timers. · e90292a9
      Jan Djärv authored
      * keyboard.h: Declare timer_check.
      
      * keyboard.c (timer_check_2): New function that does what the old
      timer_check did.
      (timer_check): Call timer_check_2 until -1 or a non-zero time is
      returned, i.e. don't return -1 with timers pending.
      
      * process.c: Remove extern declaration of timer_check.
      
      * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
      even if timer_check returned -1.
      
      * gtkutil.c (xg_dialog_response_cb): data is now a struct xg_dialog_data
      (pop_down_dialog): Destroy widget (if any), cancel timer and unref
      the event loop.
      (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
      (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
      Destroy the dialog after xg_dialog_run.
      e90292a9
  13. 06 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Fix bug #4870, issues 3 and 4. · e511451f
      Jan Djärv authored
      * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
      
      * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
      
      * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
      ButtonPressRelease and MotionNotify (bug#4870).
      e511451f
  14. 21 Oct, 2009 1 commit
    • Jan Djärv's avatar
      Fix resize due to font change on a maximized/xmonad-controlled frame. · 5c646d5a
      Jan Djärv authored
      * xterm.h (x_wait_for_event): Declare it.
      
      * xterm.c (pending_event_wait): New variable.
      (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
      see pending_event_wait.eventtype.
      (handle_one_xevent): Don't change gravity when parent changes.
      (x_new_font): Call change_frame_size with new rows/columns before we try
      to resize the frame.
      (x_wait_for_event): New function.
      (x_set_window_size_1): Don't change gravity unless change_gravity is set.
      Call XResizeWindow with FRAME_OUTER_WINDOW.  If we are visible,
      don't change frame size, instead wait for the ConfigureNotify.
      (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
      (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
      (x_initialize): Initialize pending_event_wait.
      
      * xmenu.c (set_frame_menubar): Add internal border width to menu bar
      size.
      
      * widget.c (EmacsFrameSetValues): Add comment.
      (EmacsFrameSetCharSize): Just call x_set_window_size.
      
      * gtkutil.c (xg_frame_set_char_size): Flush events and call
      x_wait_for_event.
      (flush_and_sync): Removed again.
      (xg_get_font_name): Suggest monospace if no previous font is known.
      5c646d5a
  15. 19 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * alloc.c: Do not define struct catchtag. · d7306fe6
      Dan Nicolaescu authored
      * eval.c: Move struct catchtag definition ...
      * lisp.h: ... here.
      
      * image.c: Move png.h #include earlier to avoid warnings.
      
      * xterm.c:
      * xsmfns.c:
      * xselect.c:
      * xrdb.c:
      * xmenu.c:
      * xftfont.c:
      * xfont.c:
      * xfns.c:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * widget.c:
      * w32xfns.c:
      * w32uniscribe.c:
      * w32term.c:
      * w32select.c:
      * w32reg.c:
      * w32proc.c:
      * w32menu.c:
      * w32inevt.c:
      * w32heap.c:
      * w32font.c:
      * w32fns.c:
      * w32console.c:
      * w32.c:
      * w16select.c:
      * vm-limit.c:
      * unexsol.c:
      * unexec.c:
      * unexcw.c:
      * unexaix.c:
      * undo.c:
      * tparam.c:
      * textprop.c:
      * terminfo.c:
      * terminal.c:
      * termcap.c:
      * term.c:
      * syntax.c:
      * sound.c:
      * sheap.c:
      * search.c:
      * scroll.c:
      * region-cache.c:
      * regex.c:
      * ralloc.c:
      * process.c:
      * print.c:
      * msdos.c:
      * minibuf.c:
      * menu.c:
      * marker.c:
      * macros.c:
      * keymap.c:
      * keyboard.c:
      * intervals.c:
      * insdel.c:
      * indent.c:
      * gtkutil.c:
      * ftxfont.c:
      * ftfont.c:
      * fringe.c:
      * frame.c:
      * fontset.c:
      * font.c:
      * fns.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c:
      * editfns.c:
      * dosfns.c:
      * doprnt.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * dbusbind.c:
      * data.c:
      * composite.c:
      * coding.c:
      * cmds.c:
      * cm.c:
      * chartab.c:
      * charset.c:
      * character.c:
      * ccl.c:
      * category.c:
      * casetab.c:
      * casefiddle.c:
      * callproc.c:
      * callint.c:
      * bytecode.c:
      * buffer.c:
      * atimer.c: Include setjmp.h.  (Bug#4643)
      
      * xlwmenu.c:
      * lwlib.c:
      * lwlib-utils.c:
      * lwlib-Xm.c:
      * lwlib-Xlw.c:
      * lwlib-Xaw.c: Include setjmp.h.
      d7306fe6
  16. 08 Oct, 2009 1 commit
  17. 16 Jul, 2009 1 commit
  18. 02 Jul, 2009 4 commits
  19. 01 Jul, 2009 2 commits
    • Jan Djärv's avatar
      * gtkutil.c (xg_tool_bar_proxy_help_callback): New function. · 69b16610
      Jan Djärv authored
      (xg_tool_bar_menu_proxy): Attach enter/leave events to
      xg_tool_bar_proxy_help_callback.
      69b16610
    • Jan Djärv's avatar
      * emacs.c (USAGE3, standard_args): Add -mm and --maximized. · 3f1c6666
      Jan Djärv authored
      * frame.c: Qmaximized is new.
      (x_set_frame_parameters): Do not handle fullscreen specially.
      Only set width and height if explicitly set.
      (x_set_fullscreen): Handle Qmaximized.
      (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
      (syms_of_frame): Initialize Qmaximized.
      
      * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.  Declare
      Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
      
      * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
      for Expose event. Add call to x_check_fullscreen for MapNotify event.
      Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
      set gravity to NorthWestGravity when USE_GTK.
      (set_wm_state): New function.
      (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
      (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
      (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
      or the case when no window manager is running. That means remove calls
      to x_real_positions and x_fullscreen_adjust.
      
      * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
      (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
      flush_and_sync.
      (xg_height_changed): New function.
      (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
      and gtk_window_set_policy.  Set frame gravity after parsing the geometry
      string.
      (xg_update_frame_menubar, free_frame_menubar)
      (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
      (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
      Remove calls to xg_frame_set_char_size.
      
      * startup.el (command-line-x-option-alist): Add -mm and --maximized.
      
      * NEWS: Mention maximized.
      
      * frames.texi (Size Parameters): Mention maximized for fullscreen.
      
      * xresources.texi (Table of Resources): Mention maximized for
      fullscreen.
      
      * cmdargs.texi (Window Size X): -mm/--maximized is new.
      3f1c6666
  20. 11 May, 2009 1 commit
  21. 19 Apr, 2009 1 commit
    • Jan Djärv's avatar
      Make Emacs compile when Gtk+ and -DGTK_DISABLE_DEPRECATED is used. · dc2933eb
      Jan Djärv authored
      * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar): Use
      G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
      (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
      is deprecated.
      
      * configure.in (HAVE_GTK_FILE_SELECTION, HAVE_GTK_FILE_CHOOSER): Check
      if it is declared in gtk.h.
      dc2933eb
  22. 23 Mar, 2009 1 commit
  23. 14 Mar, 2009 1 commit
  24. 02 Mar, 2009 1 commit
  25. 26 Feb, 2009 1 commit
  26. 08 Jan, 2009 1 commit
  27. 22 Dec, 2008 1 commit
  28. 18 Dec, 2008 2 commits
  29. 01 Dec, 2008 1 commit
  30. 07 Oct, 2008 1 commit
  31. 06 Oct, 2008 1 commit
  32. 30 Jul, 2008 1 commit
    • Chong Yidong's avatar
      (menu_nav_ended): Remove. · df7591cb
      Chong Yidong authored
      (create_menus): Remove signal connect for menu_nav_ended.
      (create_menus): Connect selection-done to menu_nav_ended.
      df7591cb
  33. 29 Jul, 2008 1 commit
  34. 28 Jul, 2008 2 commits