Applied patch from Nils Barth (bug # 51041) to replace "gint" with

2001-03-16  Havoc Pennington  <hp@redhat.com>

	* Applied patch from Nils Barth (bug # 51041) to
	replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
	in various places.
This commit is contained in:
Havoc Pennington 2001-03-16 20:12:40 +00:00 committed by Havoc Pennington
parent e7a21a2eec
commit 52658cd3dc
42 changed files with 207 additions and 161 deletions

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -1,3 +1,9 @@
2001-03-16 Havoc Pennington <hp@redhat.com>
* Applied patch from Nils Barth (bug # 51041) to
replace "gint" with "gboolean" and 0/1 with TRUE/FALSE
in various places.
2001-03-15 Havoc Pennington <hp@redhat.com>
* gtk/gtktextbuffer.c (gtk_text_buffer_create_tag): add varargs

View File

@ -30,6 +30,7 @@ GtkCellRenderer
</para>
@parent:
@can_activate:
@visible:
@xalign:
@yalign:
@ -43,6 +44,9 @@ GtkCellRenderer
@cell:
@widget:
@cell_area:
@x_offset:
@y_offset:
@width:
@height:

View File

@ -64,7 +64,7 @@ static GMemChunk *accel_entries_mem_chunk = NULL;
/* --- functions --- */
static gint
static gboolean
gtk_accel_entries_equal (gconstpointer a,
gconstpointer b)
{

View File

@ -39,21 +39,21 @@ enum {
ARG_ACCEL_WIDGET
};
static void gtk_accel_label_class_init (GtkAccelLabelClass *klass);
static void gtk_accel_label_init (GtkAccelLabel *accel_label);
static void gtk_accel_label_set_arg (GtkObject *object,
GtkArg *arg,
guint arg_id);
static void gtk_accel_label_get_arg (GtkObject *object,
GtkArg *arg,
guint arg_id);
static void gtk_accel_label_destroy (GtkObject *object);
static void gtk_accel_label_finalize (GObject *object);
static void gtk_accel_label_size_request (GtkWidget *widget,
GtkRequisition *requisition);
static gint gtk_accel_label_expose_event (GtkWidget *widget,
GdkEventExpose *event);
static gboolean gtk_accel_label_refetch_idle (GtkAccelLabel *accel_label);
static void gtk_accel_label_class_init (GtkAccelLabelClass *klass);
static void gtk_accel_label_init (GtkAccelLabel *accel_label);
static void gtk_accel_label_set_arg (GtkObject *object,
GtkArg *arg,
guint arg_id);
static void gtk_accel_label_get_arg (GtkObject *object,
GtkArg *arg,
guint arg_id);
static void gtk_accel_label_destroy (GtkObject *object);
static void gtk_accel_label_finalize (GObject *object);
static void gtk_accel_label_size_request (GtkWidget *widget,
GtkRequisition *requisition);
static gboolean gtk_accel_label_expose_event (GtkWidget *widget,
GdkEventExpose *event);
static gboolean gtk_accel_label_refetch_idle (GtkAccelLabel *accel_label);
static GtkAccelLabelClass *accel_label_class = NULL;
static GtkLabelClass *parent_class = NULL;
@ -249,7 +249,7 @@ gtk_accel_label_size_request (GtkWidget *widget,
g_object_unref (G_OBJECT (layout));
}
static gint
static gboolean
gtk_accel_label_expose_event (GtkWidget *widget,
GdkEventExpose *event)
{

View File

@ -166,7 +166,7 @@ gtk_adjustment_clamp_page (GtkAdjustment *adjustment,
gfloat lower,
gfloat upper)
{
gint need_emission;
gboolean need_emission;
g_return_if_fail (adjustment != NULL);
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));

View File

@ -450,7 +450,7 @@ gtk_arg_reset (GtkArg *arg)
arg->type = GTK_TYPE_INVALID;
}
gint
gboolean
gtk_arg_info_equal (gconstpointer arg_info_1,
gconstpointer arg_info_2)
{

View File

@ -92,7 +92,7 @@ GtkArg* gtk_args_query (GtkType class_type,
guint32 **arg_flags,
guint *n_args_p);
gchar* gtk_arg_name_strip_type (const gchar *arg_name);
gint gtk_arg_info_equal (gconstpointer arg_info_1,
gboolean gtk_arg_info_equal (gconstpointer arg_info_1,
gconstpointer arg_info_2);
guint gtk_arg_info_hash (gconstpointer arg_info);
void gtk_arg_to_valueloc (GtkArg *arg,

View File

@ -221,7 +221,7 @@ gtk_arrow_set (GtkArrow *arrow,
}
static gint
static gboolean
gtk_arrow_expose (GtkWidget *widget,
GdkEventExpose *event)
{

View File

@ -709,7 +709,7 @@ gtk_button_paint (GtkWidget *widget,
}
}
static gint
static gboolean
gtk_button_expose (GtkWidget *widget,
GdkEventExpose *event)
{
@ -731,7 +731,7 @@ gtk_button_expose (GtkWidget *widget,
return FALSE;
}
static gint
static gboolean
gtk_button_button_press (GtkWidget *widget,
GdkEventButton *event)
{
@ -755,7 +755,7 @@ gtk_button_button_press (GtkWidget *widget,
return TRUE;
}
static gint
static gboolean
gtk_button_button_release (GtkWidget *widget,
GdkEventButton *event)
{
@ -791,7 +791,7 @@ gtk_button_key_release (GtkWidget *widget,
return FALSE;
}
static gint
static gboolean
gtk_button_enter_notify (GtkWidget *widget,
GdkEventCrossing *event)
{
@ -815,7 +815,7 @@ gtk_button_enter_notify (GtkWidget *widget,
return FALSE;
}
static gint
static gboolean
gtk_button_leave_notify (GtkWidget *widget,
GdkEventCrossing *event)
{

View File

@ -1449,7 +1449,7 @@ gtk_calendar_draw_focus (GtkWidget *widget)
}
}
static gint
static gboolean
gtk_calendar_expose (GtkWidget *widget,
GdkEventExpose *event)
{
@ -2161,7 +2161,7 @@ gtk_calendar_display_options (GtkCalendar *calendar,
}
gint
gboolean
gtk_calendar_select_month (GtkCalendar *calendar,
guint month,
guint year)
@ -2238,7 +2238,7 @@ gtk_calendar_clear_marks (GtkCalendar *calendar)
}
}
gint
gboolean
gtk_calendar_mark_day (GtkCalendar *calendar,
guint day)
{
@ -2258,7 +2258,7 @@ gtk_calendar_mark_day (GtkCalendar *calendar,
return TRUE;
}
gint
gboolean
gtk_calendar_unmark_day (GtkCalendar *calendar,
guint day)
{
@ -2298,7 +2298,7 @@ gtk_calendar_get_date (GtkCalendar *calendar,
*day = calendar->selected_day;
}
static gint
static gboolean
gtk_calendar_button_press (GtkWidget *widget,
GdkEventButton *event)
{
@ -2337,7 +2337,7 @@ gtk_calendar_button_press (GtkWidget *widget,
return FALSE;
}
static gint
static gboolean
gtk_calendar_motion_notify (GtkWidget *widget,
GdkEventMotion *event)
{
@ -2379,7 +2379,7 @@ gtk_calendar_motion_notify (GtkWidget *widget,
return TRUE;
}
static gint
static gboolean
gtk_calendar_enter_notify (GtkWidget *widget,
GdkEventCrossing *event)
{
@ -2419,7 +2419,7 @@ gtk_calendar_enter_notify (GtkWidget *widget,
return TRUE;
}
static gint
static gboolean
gtk_calendar_leave_notify (GtkWidget *widget,
GdkEventCrossing *event)
{
@ -2625,7 +2625,7 @@ gtk_calendar_destroy (GtkObject *object)
(* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
static gint
static gboolean
gtk_calendar_key_press (GtkWidget *widget,
GdkEventKey *event)
{

View File

@ -110,15 +110,15 @@ struct _GtkCalendarClass
GtkType gtk_calendar_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_calendar_new (void);
gint gtk_calendar_select_month (GtkCalendar *calendar,
gboolean gtk_calendar_select_month (GtkCalendar *calendar,
guint month,
guint year);
void gtk_calendar_select_day (GtkCalendar *calendar,
guint day);
gint gtk_calendar_mark_day (GtkCalendar *calendar,
gboolean gtk_calendar_mark_day (GtkCalendar *calendar,
guint day);
gint gtk_calendar_unmark_day (GtkCalendar *calendar,
gboolean gtk_calendar_unmark_day (GtkCalendar *calendar,
guint day);
void gtk_calendar_clear_marks (GtkCalendar *calendar);

View File

@ -724,11 +724,11 @@ gtk_combo_init (GtkCombo * combo)
GtkWidget *event_box;
GdkCursor *cursor;
combo->case_sensitive = 0;
combo->value_in_list = 0;
combo->ok_if_empty = 1;
combo->use_arrows = 1;
combo->use_arrows_always = 0;
combo->case_sensitive = FALSE;
combo->value_in_list = FALSE;
combo->ok_if_empty = TRUE;
combo->use_arrows = TRUE;
combo->use_arrows_always = FALSE;
combo->entry = gtk_entry_new ();
combo->button = gtk_button_new ();
combo->current_button = 0;
@ -849,7 +849,7 @@ gtk_combo_new (void)
}
void
gtk_combo_set_value_in_list (GtkCombo * combo, gint val, gint ok_if_empty)
gtk_combo_set_value_in_list (GtkCombo * combo, gboolean val, gboolean ok_if_empty)
{
g_return_if_fail (combo != NULL);
g_return_if_fail (GTK_IS_COMBO (combo));
@ -859,7 +859,7 @@ gtk_combo_set_value_in_list (GtkCombo * combo, gint val, gint ok_if_empty)
}
void
gtk_combo_set_case_sensitive (GtkCombo * combo, gint val)
gtk_combo_set_case_sensitive (GtkCombo * combo, gboolean val)
{
g_return_if_fail (combo != NULL);
g_return_if_fail (GTK_IS_COMBO (combo));
@ -869,7 +869,7 @@ gtk_combo_set_case_sensitive (GtkCombo * combo, gint val)
}
void
gtk_combo_set_use_arrows (GtkCombo * combo, gint val)
gtk_combo_set_use_arrows (GtkCombo * combo, gboolean val)
{
g_return_if_fail (combo != NULL);
g_return_if_fail (GTK_IS_COMBO (combo));
@ -879,13 +879,13 @@ gtk_combo_set_use_arrows (GtkCombo * combo, gint val)
}
void
gtk_combo_set_use_arrows_always (GtkCombo * combo, gint val)
gtk_combo_set_use_arrows_always (GtkCombo * combo, gboolean val)
{
g_return_if_fail (combo != NULL);
g_return_if_fail (GTK_IS_COMBO (combo));
combo->use_arrows_always = val;
combo->use_arrows = 1;
combo->use_arrows = TRUE;
g_object_notify (G_OBJECT (combo), "enable_arrows");
g_object_notify (G_OBJECT (combo), "enable_arrows_always");
}

View File

@ -76,17 +76,17 @@ GtkType gtk_combo_get_type (void) G_GNUC_CONST;
GtkWidget* gtk_combo_new (void);
/* the text in the entry must be or not be in the list */
void gtk_combo_set_value_in_list (GtkCombo* combo,
gint val,
gint ok_if_empty);
/* set/unset arrows working for changing the value (can be annoying */
gboolean val,
gboolean ok_if_empty);
/* set/unset arrows working for changing the value (can be annoying) */
void gtk_combo_set_use_arrows (GtkCombo* combo,
gint val);
gboolean val);
/* up/down arrows change value if current value not in list */
void gtk_combo_set_use_arrows_always (GtkCombo* combo,
gint val);
gboolean val);
/* perform case-sensitive compares */
void gtk_combo_set_case_sensitive (GtkCombo* combo,
gint val);
gboolean val);
/* call this function on an item if it isn't a label or you
want it to have a different value to be displayed in the entry */
void gtk_combo_set_item_string (GtkCombo* combo,

View File

@ -4884,54 +4884,54 @@ gtk_ctree_node_get_cell_type (GtkCTree *ctree,
return GTK_CTREE_ROW (node)->row.cell[column].type;
}
gint
gboolean
gtk_ctree_node_get_text (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar **text)
{
g_return_val_if_fail (ctree != NULL, 0);
g_return_val_if_fail (GTK_IS_CTREE (ctree), 0);
g_return_val_if_fail (node != NULL, 0);
g_return_val_if_fail (ctree != NULL, FALSE);
g_return_val_if_fail (GTK_IS_CTREE (ctree), FALSE);
g_return_val_if_fail (node != NULL, FALSE);
if (column < 0 || column >= GTK_CLIST (ctree)->columns)
return 0;
return FALSE;
if (GTK_CTREE_ROW (node)->row.cell[column].type != GTK_CELL_TEXT)
return 0;
return FALSE;
if (text)
*text = GTK_CELL_TEXT (GTK_CTREE_ROW (node)->row.cell[column])->text;
return 1;
return TRUE;
}
gint
gboolean
gtk_ctree_node_get_pixmap (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
GdkPixmap **pixmap,
GdkBitmap **mask)
{
g_return_val_if_fail (ctree != NULL, 0);
g_return_val_if_fail (GTK_IS_CTREE (ctree), 0);
g_return_val_if_fail (node != NULL, 0);
g_return_val_if_fail (ctree != NULL, FALSE);
g_return_val_if_fail (GTK_IS_CTREE (ctree), FALSE);
g_return_val_if_fail (node != NULL, FALSE);
if (column < 0 || column >= GTK_CLIST (ctree)->columns)
return 0;
return FALSE;
if (GTK_CTREE_ROW (node)->row.cell[column].type != GTK_CELL_PIXMAP)
return 0;
return FALSE;
if (pixmap)
*pixmap = GTK_CELL_PIXMAP (GTK_CTREE_ROW(node)->row.cell[column])->pixmap;
if (mask)
*mask = GTK_CELL_PIXMAP (GTK_CTREE_ROW (node)->row.cell[column])->mask;
return 1;
return TRUE;
}
gint
gboolean
gtk_ctree_node_get_pixtext (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
@ -4940,15 +4940,15 @@ gtk_ctree_node_get_pixtext (GtkCTree *ctree,
GdkPixmap **pixmap,
GdkBitmap **mask)
{
g_return_val_if_fail (ctree != NULL, 0);
g_return_val_if_fail (GTK_IS_CTREE (ctree), 0);
g_return_val_if_fail (node != NULL, 0);
g_return_val_if_fail (ctree != NULL, FALSE);
g_return_val_if_fail (GTK_IS_CTREE (ctree), FALSE);
g_return_val_if_fail (node != NULL, FALSE);
if (column < 0 || column >= GTK_CLIST (ctree)->columns)
return 0;
return FALSE;
if (GTK_CTREE_ROW (node)->row.cell[column].type != GTK_CELL_PIXTEXT)
return 0;
return FALSE;
if (text)
*text = GTK_CELL_PIXTEXT (GTK_CTREE_ROW (node)->row.cell[column])->text;
@ -4961,10 +4961,10 @@ gtk_ctree_node_get_pixtext (GtkCTree *ctree,
if (mask)
*mask = GTK_CELL_PIXTEXT (GTK_CTREE_ROW (node)->row.cell[column])->mask;
return 1;
return TRUE;
}
gint
gboolean
gtk_ctree_get_node_info (GtkCTree *ctree,
GtkCTreeNode *node,
gchar **text,
@ -4976,9 +4976,9 @@ gtk_ctree_get_node_info (GtkCTree *ctree,
gboolean *is_leaf,
gboolean *expanded)
{
g_return_val_if_fail (ctree != NULL, 0);
g_return_val_if_fail (GTK_IS_CTREE (ctree), 0);
g_return_val_if_fail (node != NULL, 0);
g_return_val_if_fail (ctree != NULL, FALSE);
g_return_val_if_fail (GTK_IS_CTREE (ctree), FALSE);
g_return_val_if_fail (node != NULL, FALSE);
if (text)
*text = GTK_CELL_PIXTEXT
@ -4999,7 +4999,7 @@ gtk_ctree_get_node_info (GtkCTree *ctree,
if (expanded)
*expanded = GTK_CTREE_ROW (node)->expanded;
return 1;
return TRUE;
}
void

View File

@ -342,23 +342,23 @@ gboolean gtk_ctree_node_get_selectable (GtkCTree *ctree,
GtkCellType gtk_ctree_node_get_cell_type (GtkCTree *ctree,
GtkCTreeNode *node,
gint column);
gint gtk_ctree_node_get_text (GtkCTree *ctree,
gboolean gtk_ctree_node_get_text (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar **text);
gint gtk_ctree_node_get_pixmap (GtkCTree *ctree,
gboolean gtk_ctree_node_get_pixmap (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
GdkPixmap **pixmap,
GdkBitmap **mask);
gint gtk_ctree_node_get_pixtext (GtkCTree *ctree,
gboolean gtk_ctree_node_get_pixtext (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar **text,
guint8 *spacing,
GdkPixmap **pixmap,
GdkBitmap **mask);
gint gtk_ctree_get_node_info (GtkCTree *ctree,
gboolean gtk_ctree_get_node_info (GtkCTree *ctree,
GtkCTreeNode *node,
gchar **text,
guint8 *spacing,

View File

@ -717,7 +717,7 @@ gtk_events_pending (void)
return result;
}
gint
gboolean
gtk_main_iteration (void)
{
GDK_THREADS_LEAVE ();
@ -730,7 +730,7 @@ gtk_main_iteration (void)
return TRUE;
}
gint
gboolean
gtk_main_iteration_do (gboolean blocking)
{
GDK_THREADS_LEAVE ();
@ -950,13 +950,13 @@ gtk_main_do_event (GdkEvent *event)
g_list_free_1 (tmp_list);
}
gint
gboolean
gtk_true (void)
{
return TRUE;
}
gint
gboolean
gtk_false (void)
{
return FALSE;

View File

@ -116,17 +116,17 @@ gint gtk_events_pending (void);
* we expose it mainly to allow filtering of events between
* GDK and GTK+.
*/
void gtk_main_do_event (GdkEvent *event);
void gtk_main_do_event (GdkEvent *event);
void gtk_main (void);
guint gtk_main_level (void);
void gtk_main_quit (void);
gint gtk_main_iteration (void);
void gtk_main (void);
guint gtk_main_level (void);
void gtk_main_quit (void);
gboolean gtk_main_iteration (void);
/* gtk_main_iteration() calls gtk_main_iteration_do(TRUE) */
gint gtk_main_iteration_do (gboolean blocking);
gboolean gtk_main_iteration_do (gboolean blocking);
gint gtk_true (void) G_GNUC_CONST;
gint gtk_false (void) G_GNUC_CONST;
gboolean gtk_true (void) G_GNUC_CONST;
gboolean gtk_false (void) G_GNUC_CONST;
void gtk_grab_add (GtkWidget *widget);
GtkWidget* gtk_grab_get_current (void);

View File

@ -300,14 +300,14 @@ gtk_menu_item_set_placement (GtkMenuItem *menu_item,
void
gtk_menu_item_configure (GtkMenuItem *menu_item,
gint show_toggle_indicator,
gint show_submenu_indicator)
gboolean show_toggle_indicator,
gboolean show_submenu_indicator)
{
g_return_if_fail (menu_item != NULL);
g_return_if_fail (GTK_IS_MENU_ITEM (menu_item));
menu_item->show_toggle_indicator = (show_toggle_indicator == TRUE);
menu_item->show_submenu_indicator = (show_submenu_indicator == TRUE);
menu_item->show_toggle_indicator = show_toggle_indicator;
menu_item->show_submenu_indicator = show_submenu_indicator;
}
void

View File

@ -96,8 +96,8 @@ void gtk_menu_item_remove_submenu (GtkMenuItem *menu_item);
void gtk_menu_item_set_placement (GtkMenuItem *menu_item,
GtkSubmenuPlacement placement);
void gtk_menu_item_configure (GtkMenuItem *menu_item,
gint show_toggle_indicator,
gint show_submenu_indicator);
gboolean show_toggle_indicator,
gboolean show_submenu_indicator);
void gtk_menu_item_select (GtkMenuItem *menu_item);
void gtk_menu_item_deselect (GtkMenuItem *menu_item);
void gtk_menu_item_activate (GtkMenuItem *menu_item);

View File

@ -245,7 +245,7 @@ gtk_pixmap_expose (GtkWidget *widget,
}
void
gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap, guint build)
gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap, gboolean build)
{
g_return_if_fail (pixmap != NULL);
g_return_if_fail (GTK_IS_PIXMAP (pixmap));

View File

@ -78,7 +78,7 @@ void gtk_pixmap_get (GtkPixmap *pixmap,
GdkBitmap **mask);
void gtk_pixmap_set_build_insensitive (GtkPixmap *pixmap,
guint build);
gboolean build);
#ifdef __cplusplus

View File

@ -53,7 +53,7 @@ struct _GtkPlug
GtkWindow window;
GdkWindow *socket_window;
gint same_app;
gboolean same_app;
};
struct _GtkPlugClass

View File

@ -171,10 +171,10 @@ gtk_progress_get_arg (GtkObject *object,
switch (arg_id)
{
case ARG_ACTIVITY_MODE:
GTK_VALUE_BOOL (*arg) = (progress->activity_mode != 0);
GTK_VALUE_BOOL (*arg) = (progress->activity_mode != FALSE);
break;
case ARG_SHOW_TEXT:
GTK_VALUE_BOOL (*arg) = (progress->show_text != 0);
GTK_VALUE_BOOL (*arg) = (progress->show_text != FALSE);
break;
case ARG_TEXT_XALIGN:
GTK_VALUE_FLOAT (*arg) = progress->x_align;
@ -591,7 +591,7 @@ gtk_progress_get_value (GtkProgress *progress)
void
gtk_progress_set_show_text (GtkProgress *progress,
gint show_text)
gboolean show_text)
{
g_return_if_fail (progress != NULL);
g_return_if_fail (GTK_IS_PROGRESS (progress));
@ -677,14 +677,14 @@ gtk_progress_get_text_from_value (GtkProgress *progress,
void
gtk_progress_set_activity_mode (GtkProgress *progress,
guint activity_mode)
gboolean activity_mode)
{
g_return_if_fail (progress != NULL);
g_return_if_fail (GTK_IS_PROGRESS (progress));
if (progress->activity_mode != (activity_mode != 0))
if (progress->activity_mode != (activity_mode != FALSE))
{
progress->activity_mode = (activity_mode != 0);
progress->activity_mode = (activity_mode != FALSE);
if (progress->activity_mode)
GTK_PROGRESS_GET_CLASS (progress)->act_mode_enter (progress);

View File

@ -84,7 +84,7 @@ struct _GtkProgressClass
GtkType gtk_progress_get_type (void) G_GNUC_CONST;
void gtk_progress_set_show_text (GtkProgress *progress,
gint show_text);
gboolean show_text);
void gtk_progress_set_text_alignment (GtkProgress *progress,
gfloat x_align,
gfloat y_align);
@ -102,7 +102,7 @@ void gtk_progress_set_value (GtkProgress *progress,
gfloat value);
gfloat gtk_progress_get_value (GtkProgress *progress);
void gtk_progress_set_activity_mode (GtkProgress *progress,
guint activity_mode);
gboolean activity_mode);
gchar* gtk_progress_get_current_text (GtkProgress *progress);
gchar* gtk_progress_get_text_from_value (GtkProgress *progress,
gfloat value);

View File

@ -628,7 +628,7 @@ gtk_selection_remove_all (GtkWidget *widget)
* this widget).
*************************************************************/
gint
gboolean
gtk_selection_convert (GtkWidget *widget,
GdkAtom selection,
GdkAtom target,
@ -902,7 +902,7 @@ gtk_selection_init (void)
* results:
*************************************************************/
gint
gboolean
gtk_selection_clear (GtkWidget *widget,
GdkEventSelection *event)
{
@ -945,7 +945,7 @@ gtk_selection_clear (GtkWidget *widget,
* results:
*************************************************************/
gint
gboolean
gtk_selection_request (GtkWidget *widget,
GdkEventSelection *event)
{
@ -1160,7 +1160,7 @@ gtk_selection_request (GtkWidget *widget,
* results:
*************************************************************/
gint
gboolean
gtk_selection_incr_event (GdkWindow *window,
GdkEventProperty *event)
{
@ -1334,7 +1334,7 @@ gtk_selection_incr_timeout (GtkIncrInfo *info)
* was event handled?
*************************************************************/
gint
gboolean
gtk_selection_notify (GtkWidget *widget,
GdkEventSelection *event)
{
@ -1421,7 +1421,7 @@ gtk_selection_notify (GtkWidget *widget,
* was event handled?
*************************************************************/
gint
gboolean
gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event)
{

View File

@ -116,7 +116,7 @@ void gtk_selection_add_targets (GtkWidget *widget,
guint ntargets);
void gtk_selection_clear_targets (GtkWidget *widget,
GdkAtom selection);
gint gtk_selection_convert (GtkWidget *widget,
gboolean gtk_selection_convert (GtkWidget *widget,
GdkAtom selection,
GdkAtom target,
guint32 time);
@ -135,16 +135,16 @@ void gtk_selection_remove_all (GtkWidget *widget);
/* Event handlers */
gint gtk_selection_clear (GtkWidget *widget,
GdkEventSelection *event);
gint gtk_selection_request (GtkWidget *widget,
GdkEventSelection *event);
gint gtk_selection_incr_event (GdkWindow *window,
GdkEventProperty *event);
gint gtk_selection_notify (GtkWidget *widget,
GdkEventSelection *event);
gint gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event);
gboolean gtk_selection_clear (GtkWidget *widget,
GdkEventSelection *event);
gboolean gtk_selection_request (GtkWidget *widget,
GdkEventSelection *event);
gboolean gtk_selection_incr_event (GdkWindow *window,
GdkEventProperty *event);
gboolean gtk_selection_notify (GtkWidget *widget,
GdkEventSelection *event);
gboolean gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event);
GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
void gtk_selection_data_free (GtkSelectionData *data);

View File

@ -745,7 +745,7 @@ gtk_text_new (GtkAdjustment *hadj,
void
gtk_text_set_word_wrap (GtkText *text,
gint word_wrap)
gboolean word_wrap)
{
g_return_if_fail (text != NULL);
g_return_if_fail (GTK_IS_TEXT (text));
@ -761,7 +761,7 @@ gtk_text_set_word_wrap (GtkText *text,
void
gtk_text_set_line_wrap (GtkText *text,
gint line_wrap)
gboolean line_wrap)
{
g_return_if_fail (text != NULL);
g_return_if_fail (GTK_IS_TEXT (text));
@ -1047,12 +1047,12 @@ gtk_text_insert (GtkText *text,
gtk_text_thaw (text);
}
gint
gboolean
gtk_text_backward_delete (GtkText *text,
guint nchars)
{
g_return_val_if_fail (text != NULL, 0);
g_return_val_if_fail (GTK_IS_TEXT (text), 0);
g_return_val_if_fail (text != NULL, FALSE);
g_return_val_if_fail (GTK_IS_TEXT (text), FALSE);
if (nchars > text->point.index || nchars <= 0)
return FALSE;
@ -1062,7 +1062,7 @@ gtk_text_backward_delete (GtkText *text,
return gtk_text_forward_delete (text, nchars);
}
gint
gboolean
gtk_text_forward_delete (GtkText *text,
guint nchars)
{
@ -1070,8 +1070,8 @@ gtk_text_forward_delete (GtkText *text,
GtkOldEditable *old_editable = GTK_OLD_EDITABLE (text);
gboolean frozen = FALSE;
g_return_val_if_fail (text != NULL, 0);
g_return_val_if_fail (GTK_IS_TEXT (text), 0);
g_return_val_if_fail (text != NULL, FALSE);
g_return_val_if_fail (GTK_IS_TEXT (text), FALSE);
if (text->point.index + nchars > TEXT_LENGTH (text) || nchars <= 0)
return FALSE;

View File

@ -185,9 +185,9 @@ GtkWidget* gtk_text_new (GtkAdjustment *hadj,
void gtk_text_set_editable (GtkText *text,
gboolean editable);
void gtk_text_set_word_wrap (GtkText *text,
gint word_wrap);
gboolean word_wrap);
void gtk_text_set_line_wrap (GtkText *text,
gint line_wrap);
gboolean line_wrap);
void gtk_text_set_adjustments (GtkText *text,
GtkAdjustment *hadj,
GtkAdjustment *vadj);
@ -203,9 +203,9 @@ void gtk_text_insert (GtkText *text,
GdkColor *back,
const char *chars,
gint length);
gint gtk_text_backward_delete (GtkText *text,
gboolean gtk_text_backward_delete (GtkText *text,
guint nchars);
gint gtk_text_forward_delete (GtkText *text,
gboolean gtk_text_forward_delete (GtkText *text,
guint nchars);
#define GTK_TEXT_INDEX(t, index) (((t)->use_wchar) \

View File

@ -1144,7 +1144,7 @@ gtk_toolbar_set_space_style (GtkToolbar *toolbar,
void
gtk_toolbar_set_tooltips (GtkToolbar *toolbar,
gint enable)
gboolean enable)
{
g_return_if_fail (toolbar != NULL);
g_return_if_fail (GTK_IS_TOOLBAR (toolbar));

View File

@ -211,7 +211,7 @@ void gtk_toolbar_set_space_size (GtkToolbar *toolbar,
void gtk_toolbar_set_space_style (GtkToolbar *toolbar,
GtkToolbarSpaceStyle space_style);
void gtk_toolbar_set_tooltips (GtkToolbar *toolbar,
gint enable);
gboolean enable);
void gtk_toolbar_set_button_relief (GtkToolbar *toolbar,
GtkReliefStyle relief);
GtkReliefStyle gtk_toolbar_get_button_relief (GtkToolbar *toolbar);

View File

@ -178,7 +178,7 @@ gtk_tree_init (GtkTree *tree)
tree->current_indent = 0;
tree->level = 0;
tree->view_mode = GTK_TREE_VIEW_LINE;
tree->view_line = 1;
tree->view_line = TRUE;
}
GtkWidget*
@ -1194,7 +1194,7 @@ gtk_tree_set_view_mode (GtkTree *tree,
void
gtk_tree_set_view_lines (GtkTree *tree,
guint flag)
gboolean flag)
{
g_return_if_fail (tree != NULL);
g_return_if_fail (GTK_IS_TREE (tree));

View File

@ -120,7 +120,7 @@ void gtk_tree_set_selection_mode (GtkTree *tree,
void gtk_tree_set_view_mode (GtkTree *tree,
GtkTreeViewMode mode);
void gtk_tree_set_view_lines (GtkTree *tree,
guint flag);
gboolean flag);
/* deprecated function, use gtk_container_remove instead.
*/

View File

@ -1428,7 +1428,7 @@ gtk_widget_real_hide (GtkWidget *widget)
*
* Return value: %TRUE
**/
gint
gboolean
gtk_widget_hide_on_delete (GtkWidget *widget)
{
g_return_val_if_fail (widget != NULL, FALSE);
@ -2242,7 +2242,7 @@ gtk_widget_real_focus_out_event (GtkWidget *widget,
*
* Return value: return from the event signal emission (%TRUE if the event was handled)
**/
gint
gboolean
gtk_widget_event (GtkWidget *widget,
GdkEvent *event)
{

View File

@ -464,7 +464,7 @@ guint gtk_widget_accelerator_signal (GtkWidget *widget,
void gtk_widget_lock_accelerators (GtkWidget *widget);
void gtk_widget_unlock_accelerators (GtkWidget *widget);
gboolean gtk_widget_accelerators_locked (GtkWidget *widget);
gint gtk_widget_event (GtkWidget *widget,
gboolean gtk_widget_event (GtkWidget *widget,
GdkEvent *event);
gint gtk_widget_send_expose (GtkWidget *widget,
GdkEvent *event);
@ -544,7 +544,7 @@ gboolean gtk_widget_is_ancestor (GtkWidget *widget,
/* Hide widget and return TRUE.
*/
gint gtk_widget_hide_on_delete (GtkWidget *widget);
gboolean gtk_widget_hide_on_delete (GtkWidget *widget);
/* Widget styles.
*/

View File

@ -737,9 +737,9 @@ gtk_window_set_default (GtkWindow *window,
void
gtk_window_set_policy (GtkWindow *window,
gint allow_shrink,
gint allow_grow,
gint auto_shrink)
gboolean allow_shrink,
gboolean allow_grow,
gboolean auto_shrink)
{
g_return_if_fail (window != NULL);
g_return_if_fail (GTK_IS_WINDOW (window));
@ -812,7 +812,7 @@ gtk_window_set_position (GtkWindow *window,
g_object_notify (G_OBJECT (window), "window_position");
}
gint
gboolean
gtk_window_activate_focus (GtkWindow *window)
{
g_return_val_if_fail (window != NULL, FALSE);
@ -828,7 +828,7 @@ gtk_window_activate_focus (GtkWindow *window)
return FALSE;
}
gint
gboolean
gtk_window_activate_default (GtkWindow *window)
{
g_return_val_if_fail (window != NULL, FALSE);

View File

@ -122,17 +122,17 @@ void gtk_window_set_wmclass (GtkWindow *window,
void gtk_window_set_role (GtkWindow *window,
const gchar *role);
void gtk_window_set_policy (GtkWindow *window,
gint allow_shrink,
gint allow_grow,
gint auto_shrink);
gboolean allow_shrink,
gboolean allow_grow,
gboolean auto_shrink);
void gtk_window_add_accel_group (GtkWindow *window,
GtkAccelGroup *accel_group);
void gtk_window_remove_accel_group (GtkWindow *window,
GtkAccelGroup *accel_group);
void gtk_window_set_position (GtkWindow *window,
GtkWindowPosition position);
gint gtk_window_activate_focus (GtkWindow *window);
gint gtk_window_activate_default (GtkWindow *window);
gboolean gtk_window_activate_focus (GtkWindow *window);
gboolean gtk_window_activate_default (GtkWindow *window);
void gtk_window_set_transient_for (GtkWindow *window,
GtkWindow *parent);