1. 01 Jul, 2009 1 commit
    • 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
  2. 11 May, 2009 1 commit
  3. 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
  4. 23 Mar, 2009 1 commit
  5. 14 Mar, 2009 1 commit
  6. 02 Mar, 2009 1 commit
  7. 26 Feb, 2009 1 commit
  8. 08 Jan, 2009 1 commit
  9. 22 Dec, 2008 1 commit
  10. 18 Dec, 2008 2 commits
  11. 01 Dec, 2008 1 commit
  12. 07 Oct, 2008 1 commit
  13. 06 Oct, 2008 1 commit
  14. 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
  15. 29 Jul, 2008 1 commit
  16. 28 Jul, 2008 2 commits
  17. 24 Jul, 2008 1 commit
    • Jan Djärv's avatar
      (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG. · d1c38b57
      Jan Djärv authored
      (menu_nav_ended): Remove.
      (create_menus): Remove signal connect for menu_nav_ended.
      (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
      create_menus.
      (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
      d1c38b57
  18. 17 Jul, 2008 1 commit
  19. 27 Jun, 2008 1 commit
  20. 15 Jun, 2008 1 commit
  21. 10 Jun, 2008 1 commit
  22. 02 Jun, 2008 1 commit
    • Jim Meyering's avatar
      Make "xfree (NULL)" a no-op; remove useless if-before-xfree. · 70fdbb46
      Jim Meyering authored
      * src/alloc.c (xfree): Return right away for a NULL arg.
      * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests.
      * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise.
      * src/mac.c (create_apple_event_from_event_ref): Likewise.
      (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise.
      * src/doprnt.c (doprnt1): Likewise.
      * src/frame.c (frame): Likewise.
      * src/keyboard.c (wipe_kboard): Likewise.
      * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap):
      (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
      * src/term.c (tty_default_color_capabilities, maybe_fatal)
      (delete_tty): Likewise.
      * src/w16select.c (string): Likewise.
      * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
      * src/w32bdf.c (w32_free_bdf_font): Likewise.
      * src/w32fns.c (w32_unload_font): Likewise.
      * src/w32font.c (w32font_close): Likewise.
      * src/window.c (size_window): Likewise.
      * src/xselect.c (receive_incremental_selection): Likewise.
      * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise.
      * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
      * src/w32.c (stat): Likewise.
      70fdbb46
  23. 14 May, 2008 1 commit
  24. 30 Mar, 2008 1 commit
    • Jan Djärv's avatar
      (xg_set_geometry): Fix indentation. · 1c9c1270
      Jan Djärv authored
      (xg_resize_outer_widget): Removed
      (x_wm_size_hint_off): Fix indentation.
      (xg_frame_set_char_size): Call flush_and_sync after
      gtk_window_resize.
      (x_wm_set_size_hint): Pass NULL as geometry window to
      gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
      Add menu bar and tool bar height to base height.
      (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): Change
      xg_resize_outer_widget to xg_frame_set_char_size.
      1c9c1270
  25. 17 Mar, 2008 1 commit
  26. 01 Mar, 2008 1 commit
    • Jan Djärv's avatar
      (xg_resize_outer_widget): Only do one of set_geometry or · 1e39cbfb
      Jan Djärv authored
      set_char_size.
      (xg_frame_resized): Renamed from xg_resize_widgets.  Remove all
      operations on widgets here.  Just set frame size if needed.
      (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
      (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
      (x_wm_set_size_hint): Set size hints on the edit widget only, not
      the whole frame.
      (xg_create_tool_bar): Move attachement of the tool bar to
      xg_pack_tool_bar.  Do not attach the tool bar if there are no items.
      (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
      1e39cbfb
  27. 07 Feb, 2008 1 commit
  28. 08 Jan, 2008 1 commit
  29. 22 Nov, 2007 2 commits
  30. 16 Nov, 2007 1 commit
    • Stefan Monnier's avatar
      * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data. · 056ce195
      Stefan Monnier authored
      Turn integer fields into `int'.  Merge x_window_low and x_window_high.
      (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
      (SET_SCROLL_BAR_X_WINDOW): Remove.
      (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
      Access the new x_window field directly.
      * xterm.c (x_scroll_bar_create): Use a pseudovector.
      Don't wrap/unwrap integers into Lisp_Objects.
      (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
      (x_scroll_bar_report_motion):
      Don't wrap/unwrap integers into Lisp_Objects.
      (x_term_init): Use SDATA.
      (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
      (x_scroll_bar_set_handle, x_scroll_bar_remove)
      (XTset_vertical_scroll_bar, x_scroll_bar_expose)
      (x_scroll_bar_report_motion, x_scroll_bar_clear):
      * xfns.c (x_set_background_color):
      * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
      Access the new x_window field directly.
      056ce195
  31. 06 Nov, 2007 2 commits
  32. 17 Sep, 2007 1 commit
    • Jan Djärv's avatar
      (gdpy_def): New variable. · 879ffad9
      Jan Djärv authored
      (xg_initialize): Initialize gdpy_def.
      (xg_display_close): If no other display exists, set gdpy_def to a
      new connection.
      879ffad9
  33. 16 Sep, 2007 2 commits
  34. 14 Sep, 2007 2 commits