diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-23 12:36:31 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-23 12:36:31 -0700 |
commit | 18e27ea822e42697a32a9757e7931004b86b1188 (patch) | |
tree | 075e0a04fbc1b55f37037c5be8ee50f2b672339d /src/gtkutil.h | |
parent | 67d63151f28c1188dc22a525138198dd0ea81d8a (diff) | |
download | emacs-18e27ea822e42697a32a9757e7931004b86b1188.tar.gz |
gnutls.c, gtkutil.c: Use bool for boolean.
* gnutls.c (gnutls_global_initialized, init_gnutls_functions)
(emacs_gnutls_handle_error):
* gtkutil.c (xg_check_special_colors, xg_prepare_tooltip)
(xg_hide_tooltip, xg_create_frame_widgets)
(create_dialog, xg_uses_old_file_dialog)
(xg_get_file_with_chooser, xg_get_file_with_selection)
(xg_get_file_name, xg_have_tear_offs, create_menus, xg_create_widget)
(xg_item_label_same_p, xg_update_menubar)
(xg_modify_menubar_widgets, xg_event_is_for_menubar)
(xg_ignore_gtk_scrollbar, xg_set_toolkit_scroll_bar_thumb)
(xg_event_is_for_scrollbar, xg_pack_tool_bar, xg_make_tool_item)
(is_box_type, xg_tool_item_stale_p, xg_update_tool_bar_sizes)
(update_frame_tool_bar, free_frame_tool_bar):
* gtkutil.c, w32term.c, xterm.c (x_wm_set_size_hint):
* nsmenu.m (ns_update_menubar):
* nsmenu.m, w32menu.c, xmenu.c (set_frame_menubar):
* xfns.c (Fx_show_tip) [USE_GTK]:
Use bool for boolean.
* gtkutil.c (xg_update_frame_menubar):
* xmenu.c (update_frame_menubar):
Return void, not int, since caller ignores return value.
* gtkutil.c (xg_change_toolbar_position):
Return void, not 1.
Diffstat (limited to 'src/gtkutil.h')
-rw-r--r-- | src/gtkutil.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/gtkutil.h b/src/gtkutil.h index 926478dd728..43f2b237a68 100644 --- a/src/gtkutil.h +++ b/src/gtkutil.h @@ -79,13 +79,13 @@ struct _widget_value; extern struct _widget_value *malloc_widget_value (void); extern void free_widget_value (struct _widget_value *); -extern int xg_uses_old_file_dialog (void) ATTRIBUTE_CONST; +extern bool xg_uses_old_file_dialog (void) ATTRIBUTE_CONST; extern char *xg_get_file_name (FRAME_PTR f, char *prompt, char *default_filename, - int mustmatch_p, - int only_dir_p); + bool mustmatch_p, + bool only_dir_p); extern Lisp_Object xg_get_font (FRAME_PTR f, const char *); @@ -100,16 +100,16 @@ extern GtkWidget *xg_create_widget (const char *type, extern void xg_modify_menubar_widgets (GtkWidget *menubar, FRAME_PTR f, struct _widget_value *val, - int deep_p, + bool deep_p, GCallback select_cb, GCallback deactivate_cb, GCallback highlight_cb); -extern int xg_update_frame_menubar (FRAME_PTR f); +extern void xg_update_frame_menubar (FRAME_PTR f); -extern int xg_event_is_for_menubar (FRAME_PTR f, XEvent *event); +extern bool xg_event_is_for_menubar (FRAME_PTR f, XEvent *event); -extern int xg_have_tear_offs (void); +extern bool xg_have_tear_offs (void); extern ptrdiff_t xg_get_scroll_id_for_window (Display *dpy, Window wid); @@ -131,12 +131,12 @@ extern void xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int position, int whole); -extern int xg_event_is_for_scrollbar (FRAME_PTR f, XEvent *event); +extern bool xg_event_is_for_scrollbar (FRAME_PTR f, XEvent *event); extern int xg_get_default_scrollbar_width (void); extern void update_frame_tool_bar (FRAME_PTR f); extern void free_frame_tool_bar (FRAME_PTR f); -extern int xg_change_toolbar_position (FRAME_PTR f, Lisp_Object pos); +extern void xg_change_toolbar_position (FRAME_PTR f, Lisp_Object pos); extern void xg_frame_resized (FRAME_PTR f, int pixelwidth, @@ -148,23 +148,23 @@ extern void xg_display_open (char *display_name, Display **dpy); extern void xg_display_close (Display *dpy); extern GdkCursor * xg_create_default_cursor (Display *dpy); -extern int xg_create_frame_widgets (FRAME_PTR f); +extern bool xg_create_frame_widgets (FRAME_PTR f); extern void xg_free_frame_widgets (FRAME_PTR f); extern void xg_set_background_color (FRAME_PTR f, unsigned long bg); -extern int xg_check_special_colors (struct frame *f, - const char *color_name, - XColor *color); +extern bool xg_check_special_colors (struct frame *f, + const char *color_name, + XColor *color); extern void xg_set_frame_icon (FRAME_PTR f, Pixmap icon_pixmap, Pixmap icon_mask); -extern int xg_prepare_tooltip (FRAME_PTR f, - Lisp_Object string, - int *width, - int *height); +extern bool xg_prepare_tooltip (FRAME_PTR f, + Lisp_Object string, + int *width, + int *height); extern void xg_show_tooltip (FRAME_PTR f, int root_x, int root_y); -extern int xg_hide_tooltip (FRAME_PTR f); +extern bool xg_hide_tooltip (FRAME_PTR f); /* Mark all callback data that are Lisp_object:s during GC. */ @@ -175,7 +175,7 @@ extern void xg_initialize (void); /* Setting scrollbar values invokes the callback. Use this variable to indicate that the callback should do nothing. */ -extern int xg_ignore_gtk_scrollbar; +extern bool xg_ignore_gtk_scrollbar; #endif /* USE_GTK */ #endif /* GTKUTIL_H */ |