aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog110
1 files changed, 110 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e70b0b220cf..6fb53501632 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,113 @@
12003-01-19 Jan D. <jan.h.d@swipnet.se>
2
3 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
4 (gtkutil.o): New file.
5 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
6 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
7
8 * gtkutil.c: New file for GTK version.
9
10 * gtkutil.h: New file for GTK version.
11
12 * xterm.h: Add xt_or_gtk_widget.
13 Include gtk files for USE_GTK.
14 (struct x_output): Add toolbar_height.
15 (struct x_output): Add GTK widgets and Gdk size_hints.
16 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
17 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
18 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
19
20 * xterm.c: Include gtkutil.h for USE_GTK.
21 Declare extern void free_frame_menubar for USE_GTK.
22 (note_mouse_highlight): Check popup_activated for USE_GTK.
23 (xt_action_hook): Don't compile if USE_GTK.
24 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
25 (xg_scroll_callback): New function.
26 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
27 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
28 for USE_GTK.
29 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
30 xg_show_scroll_bar for USE_GTK.
31 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
32 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
33 (event_handler_gdk): New function for USE_GTK.
34 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
35 (handle_one_xevent): Make sure widget is mapped before
36 calling x_real_positions for USE_GTK.
37 (XTread_socket): Add GTK event loop for USE_GTK.
38 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
39 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
40 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
41 (x_iconify_frame): Add code for USE_GTK.
42 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
43 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
44 is in gtkutil.c.
45 (x_term_init): Add initialization for GTK.
46 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
47
48 * xmenu.c: Include gtkutil.h for USE_GTK.
49 (Fx_popup_menu): Use current position if x and y is NIL.
50 (single_menu_item, single_menu_item, Fx_popup_dialog): Check
51 for USE_GTK.
52 (popup_widget_loop): New function for USE_GTK.
53 (x_activate_menubar): Add code for USE_GTK.
54 (popup_activate_callback, popup_deactivate_callback)
55 (menu_highlight_callback, menubar_selection_callback): USE_GTK versions
56 added.
57 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
58 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
59 (free_frame_menubar): Only compile if not USE_GTK. GTK version
60 is in gtkutil.c.
61 (popup_selection_callback): New version for USE_GTK.
62 (create_and_show_popup_menu): New fuction, one USE_GTK version and
63 one USE_X_TOOLKIT version.
64 (xmenu_show): Call create_and_show_popup_menu.
65 (dialog_selection_callback): New version for USE_GTK.
66 (create_and_show_dialog): New fuction, one USE_GTK version and
67 one USE_X_TOOLKIT version.
68 (xdialog_show): Call create_and_show_dialog.
69
70 * xfns.c: Include gtkutil for USE_GTK.
71 (x_window_to_frame, x_any_window_to_frame)
72 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
73 (x_top_window_to_frame): Add code for USE_GTK.
74 (x_set_background_color): Call xg_set_background_color for GTK.
75 (x_set_menu_bar_lines): Check for USE_GTK.
76 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
77 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
78 (x_window): Call xg_create_frame_widgets for USE_GTK.
79 (Fx_create_frame): Check for USE_GTK
80 (Fx_file_dialog): New implementation for USE_GTK.
81
82
83 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
84 (update_menu_bar): Add check for USE_GTK.
85 (update_tool_bar): Add check for USE_GTK and external tool bar.
86 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
87 (redisplay_internal): Add check for USE_GTK and popup_activated.
88 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
89 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
90 (display_menu_bar): Add check for USE_GTK
91
92 * lisp.h: Declare Vx_resource_name extern.
93
94 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
95 for USE_GTK.
96 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
97
98 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
99 (FRAME_EXTERNAL_TOOL_BAR): New macro.
100 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
101
102 * fileio.c (Fread_file_name): Add check for USE_GTK.
103
104 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
105 check for USE_GTK.
106
107 * config.in: Added HAVE_GTK
108
109 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
110
12003-01-18 Stefan Monnier <monnier@cs.yale.edu> 1112003-01-18 Stefan Monnier <monnier@cs.yale.edu>
2 112
3 * charset.h (Funibyte_char_to_multibyte): Export. 113 * charset.h (Funibyte_char_to_multibyte): Export.