summaryrefslogtreecommitdiff
path: root/src/gtkutil.c
Commit message (Collapse)AuthorAgeFilesLines
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* (xg_update_menubar, create_menus): Create emptyJan Djärv2007-04-271-1/+9
| | | | submenu for menu bar items.
* (xg_update_menubar): Call g_list_next after movingJan Djärv2007-04-031-0/+1
| | | | menu bar item.
* (update_frame_tool_bar): Initialize h/vmargin to 0.Jan Djärv2007-01-311-1/+1
|
* (xg_initialize): Call XftInit if HAVE_XFT.Jan Djärv2007-01-261-0/+5
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (menuitem_highlight_callback): Invoked widget is theJan Djärv2007-01-021-55/+25
| | | | | | | | parent of the menu item. Get menu item widget from event. (xg_create_one_menuitem, xg_update_menu_item): highlight_id and unhighlight_id has been removed. (create_menus): Connect enter/leave-notify-event to the menu instead of individual items.
* (update_frame_tool_bar): Connect create-menu-proxy withJan Djärv2006-12-311-1/+95
| | | | | | xg_tool_bar_menu_proxy. (xg_tool_bar_menu_proxy): New function. (xg_tool_bar_proxy_callback): New function.
* (xg_tool_bar_button_cb): Save last modifier on widget.Jan Djärv2006-12-301-79/+56
| | | | | | (xg_tool_bar_callback): Remove check for button. (update_frame_tool_bar): Put an event box in the tool bar and a button in the event box. Attach enter/leave-notify-event to the event box.
* (update_frame_tool_bar): Handle modifying a toolbar itemJan Djärv2006-12-031-6/+27
| | | | without an image.
* * gtkutil.c (update_frame_tool_bar): If icon image is invalid andChong Yidong2006-11-041-1/+6
| | | | wicon is null, insert an empty button.
* * gtkutil.c (get_utf8_string): Remove warnings with casts.Jan Djärv2006-10-161-8/+10
| | | | | (xg_tool_bar_button_cb): Ditto (xg_tool_bar_callback): Ditto.
* Whitespace fix.Richard M. Stallman2006-09-231-1/+1
|
* * gtkutil.c (xg_get_file_with_chooser): Only chow C-l help forJan Djärv2006-09-221-1/+3
| | | | Gtk+ versions < 2.10.
* * gtkutil.c (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text toJan Djärv2006-09-181-3/+3
| | | | x_gtk_file_dialog_help_text.
* * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialogJan Djärv2006-09-181-2/+2
| | | | to x-gtk-use-old-file-dialog.
* * gtkutil.c (xg_get_file_with_chooser): CheckJan Djärv2006-09-161-9/+16
| | | | x-gtk-show-chooser-help-text before adding the help text.
* * gtkutil.c (get_utf8_string): Try harder to convert to UTF8. Gtk+Jan Djärv2006-09-161-1/+57
| | | | will simply crash if we fail.
* * gtkutil.c (xg_display_close): Always change default display if needed,Jan Djärv2006-09-101-9/+7
| | | | check for < Gtk+ version 2.10 before calling gdk_display_close.
* * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys inJan Djärv2006-09-041-10/+10
| | | | | the file chooser message. Only call gtk_file_chooser_set_current_name when action is SAVE.
* * gtkutil.c (xg_get_file_with_chooser): Change file chooser messageJan Djärv2006-09-021-8/+19
| | | | | for writing files. Call gtk_file_chooser_set_current_name to keep default filename.
* * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.Jan Djärv2006-06-021-5/+9
|
* * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.Jan Djärv2006-06-011-1/+1
|
* Connect menu_nav_ended to "selection-done" to fix grabsJan Djärv2006-05-291-0/+30
|
* * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returnsJan Djärv2006-02-241-11/+7
| | | | | nil the image file has been removed, in that case use the (cached) pixmap.
* (malloc_widget_value): Use xmalloc.Richard M. Stallman2006-02-201-1/+1
|
* Indentation fixJan Djärv2006-02-151-3/+3
|
* * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to theJan Djärv2006-02-141-0/+5
| | | | value of x-gtk-whole-detached-tool-bar.
* * gtkutil.c (xg_tool_bar_button_cb): New function.Jan Djärv2006-02-141-1/+30
| | | | | | | (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to store modifiers in event. (update_frame_tool_bar): Connect button-release-event to xg_tool_bar_button_cb.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* * gtkutil.c (update_frame_tool_bar): Use new tool bar functionsJan Djärv2006-01-311-32/+32
| | | | (gtk_toolbar_insert) so we can have tool bars of different sizes.
* * gtkutil.c (xg_toggle_notify_cb): New function.Jan Djärv2006-01-091-3/+45
| | | | | | | (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to xg_toggle_notify_cb. (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when parameter value changes so the toggle button gets updated.
* * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,Jan Djärv2006-01-041-29/+29
| | | | | let GTK do all image processing. Importing Emacs own pixmaps to GTK looks bad for inactive tool bar items with some Gnome themes.
* * gtkutil.c (xg_get_file_with_chooser): Changed message shownJan Djärv2005-12-281-14/+5
| | | | in file chooser.
* FormattingJan Djärv2005-12-271-7/+8
|
* * gtkutil.c (xg_toggle_visibility_cb): New function.Jan Djärv2005-12-271-1/+50
| | | | | | (xg_get_file_with_chooser): Add toggle hidden files and a message to the new file chooser dialog. Show hidden files if x_show_hidden_files is non-zero.
* * xfns.c (Fx_uses_old_gtk_dialog): New function.Jan Djärv2005-12-231-2/+22
| | | | | | | * gtkutil.c (xg_uses_old_file_dialog): New function. (xg_get_file_name): Use xg_uses_old_file_dialog. * gtkutil.h: Declare xg_uses_old_file_dialog.
* * gtkutil.c (SSDATA): New macro to remove compiler warnings.Jan Djärv2005-12-121-8/+11
| | | | | (xg_get_image_for_pixmap, xg_create_frame_widgets) (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
* * gtkutil.c (xg_set_geometry): Do a gtk_window_move if programJan Djärv2005-09-201-0/+3
| | | | | positions have been set for the frame (as is done for frames in special-display-buffer-names).
* * gtkutil.c (xg_set_frame_icon): New function.Jan Djärv2005-08-161-1/+19
|
* * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.Jan Djärv2005-08-131-48/+61
| | | | | (xg_get_image_for_pixmap): Move some code to xg_get_pixbuf_from_pix_and_mask, and call it.
* * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon thatJan Djärv2005-08-081-1/+1
| | | | should not be there, causing menu display errors in GTK 2.6.9.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that theJan Djärv2005-03-101-2/+7
| | | | GTK main loop is entered in xterm.c, thus doing the redraw.
* * gtkutil.c (xg_resize_outer_widget): Removed unneeded call toJan Djärv2005-02-271-6/+0
| | | | gtk_window_resize and x_wm_set_size_hint.
* (xg_create_frame_widgets): UNBLOCK_INPUT on error.Kim F. Storm2005-02-211-8/+9
|
* * gtkutil.c (create_menus): Connect selection-done event instead ofJan Djärv2005-02-031-1/+1
| | | | | | the deactivate event to deactivate_cb. This will make the last leave event come before the call to deactivate_cb, so the leave event does not make sit-for exit after a menu selection.
* * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.Jan Djärv2005-01-211-2/+1
| | | | | (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to start of function for older compilers.
* * xterm.h (struct x_output): New member, toolbar_detached.Jan Djärv2005-01-081-3/+10
| | | | | | | | | | * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to 38. (xg_tool_bar_detach_callback): Set toolbar_detached to 1. (xg_tool_bar_attach_callback): Set toolbar_detached to 0. (xg_create_tool_bar): Initialize toolbar_detached. (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if toolbar_detached is zero.