`const' fixups.

Thu Sep  3 07:16:54 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkctree.h:
        * gtk/gtkctree.c: `const' fixups.

        * gtk/gtkclist.h:
        * gtk/gtkclist.c: `const' fixups and some coding style adaptions.

        * gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
        if it is passed as NULL.
This commit is contained in:
Tim Janik
1998-09-03 07:28:37 +00:00
committed by Tim Janik
parent ebe76c752c
commit 0f0d9509c0
11 changed files with 365 additions and 268 deletions

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -1,3 +1,14 @@
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Wed Sep 2 22:41:40 1998 Raph Levien <raph@gimp.org>
* gdk/gdkrgb.c (gdk_rgb_select_conv): Fixed 32bpp image depth

View File

@ -285,23 +285,23 @@ static void hadjustment_value_changed (GtkAdjustment * adjustment,
/* Memory Allocation/Distruction Routines */
static GtkCListColumn *columns_new (GtkCList * clist);
static void column_title_new (GtkCList * clist,
static void column_title_new (GtkCList *clist,
gint column,
gchar * title);
const gchar *title);
static void columns_delete (GtkCList * clist);
static GtkCListRow *row_new (GtkCList * clist);
static void row_delete (GtkCList * clist,
GtkCListRow * clist_row);
static void set_cell_contents (GtkCList * clist,
GtkCListRow * clist_row,
static void set_cell_contents (GtkCList *clist,
GtkCListRow *clist_row,
gint column,
GtkCellType type,
gchar * text,
const gchar *text,
guint8 spacing,
GdkPixmap * pixmap,
GdkBitmap * mask);
GdkPixmap *pixmap,
GdkBitmap *mask);
static gint real_insert_row (GtkCList * clist,
gint row,
gchar * text[]);
@ -1074,9 +1074,9 @@ gtk_clist_column_titles_passive (GtkCList * clist)
}
void
gtk_clist_set_column_title (GtkCList * clist,
gtk_clist_set_column_title (GtkCList *clist,
gint column,
gchar * title)
const gchar *title)
{
gint new_button = 0;
GtkWidget *old_widget;
@ -1348,10 +1348,10 @@ gtk_clist_get_cell_type (GtkCList * clist,
}
void
gtk_clist_set_text (GtkCList * clist,
gtk_clist_set_text (GtkCList *clist,
gint row,
gint column,
gchar * text)
const gchar *text)
{
GtkCListRow *clist_row;
@ -1471,13 +1471,13 @@ gtk_clist_get_pixmap (GtkCList * clist,
}
void
gtk_clist_set_pixtext (GtkCList * clist,
gtk_clist_set_pixtext (GtkCList *clist,
gint row,
gint column,
gchar * text,
const gchar *text,
guint8 spacing,
GdkPixmap * pixmap,
GdkBitmap * mask)
GdkPixmap *pixmap,
GdkBitmap *mask)
{
GtkCListRow *clist_row;
@ -4676,9 +4676,9 @@ columns_new (GtkCList * clist)
}
static void
column_title_new (GtkCList * clist,
column_title_new (GtkCList *clist,
gint column,
gchar * title)
const gchar *title)
{
if (clist->column[column].title)
g_free (clist->column[column].title);
@ -4741,14 +4741,14 @@ row_delete (GtkCList * clist,
}
static void
set_cell_contents (GtkCList * clist,
GtkCListRow * clist_row,
set_cell_contents (GtkCList *clist,
GtkCListRow *clist_row,
gint column,
GtkCellType type,
gchar * text,
const gchar *text,
guint8 spacing,
GdkPixmap * pixmap,
GdkBitmap * mask)
GdkPixmap *pixmap,
GdkBitmap *mask)
{
g_return_if_fail (clist_row != NULL);

View File

@ -30,8 +30,8 @@
#include <gtk/gtkenums.h>
#ifdef __cplusplus
extern "C"
{
extern "C" {
#pragma }
#endif /* __cplusplus */
/* clist flags */
@ -192,60 +192,60 @@ struct _GtkCListClass
{
GtkContainerClass parent_class;
void (*select_row) (GtkCList * clist,
void (*select_row) (GtkCList *clist,
gint row,
gint column,
GdkEvent * event);
void (*unselect_row) (GtkCList * clist,
GdkEvent *event);
void (*unselect_row) (GtkCList *clist,
gint row,
gint column,
GdkEvent * event);
void (*click_column) (GtkCList * clist,
GdkEvent *event);
void (*click_column) (GtkCList *clist,
gint column);
void (*toggle_focus_row) (GtkCList * clist);
void (*select_all) (GtkCList * clist);
void (*unselect_all) (GtkCList * clist);
void (*undo_selection) (GtkCList * clist);
void (*start_selection) (GtkCList * clist);
void (*end_selection) (GtkCList * clist);
void (*extend_selection) (GtkCList * clist,
void (*toggle_focus_row) (GtkCList *clist);
void (*select_all) (GtkCList *clist);
void (*unselect_all) (GtkCList *clist);
void (*undo_selection) (GtkCList *clist);
void (*start_selection) (GtkCList *clist);
void (*end_selection) (GtkCList *clist);
void (*extend_selection) (GtkCList *clist,
GtkScrollType scroll_type,
gfloat position,
gboolean auto_start_selection);
void (*scroll_horizontal) (GtkCList * clist,
void (*scroll_horizontal) (GtkCList *clist,
GtkScrollType scroll_type,
gfloat position);
void (*scroll_vertical) (GtkCList * clist,
void (*scroll_vertical) (GtkCList *clist,
GtkScrollType scroll_type,
gfloat position);
void (*toggle_add_mode) (GtkCList * clist);
void (*abort_column_resize) (GtkCList * clist);
void (*resync_selection) (GtkCList * clist,
GdkEvent * event);
GList * (*selection_find) (GtkCList *clist,
void (*toggle_add_mode) (GtkCList *clist);
void (*abort_column_resize) (GtkCList *clist);
void (*resync_selection) (GtkCList *clist,
GdkEvent *event);
GList* (*selection_find) (GtkCList *clist,
gint row_number,
GList *row_list_element);
void (*draw_row) (GtkCList * clist,
GdkRectangle * area,
void (*draw_row) (GtkCList *clist,
GdkRectangle *area,
gint row,
GtkCListRow * clist_row);
void (*clear) (GtkCList * clist);
void (*fake_unselect_all) (GtkCList * clist,
GtkCListRow *clist_row);
void (*clear) (GtkCList *clist);
void (*fake_unselect_all) (GtkCList *clist,
gint row);
void (*sort_list) (GtkCList * clist);
gint (*insert_row) (GtkCList * clist,
void (*sort_list) (GtkCList *clist);
gint (*insert_row) (GtkCList *clist,
gint row,
gchar * text[]);
void (*remove_row) (GtkCList * clist,
gchar *text[]);
void (*remove_row) (GtkCList *clist,
gint row);
void (*set_cell_contents) (GtkCList * clist,
GtkCListRow * clist_row,
void (*set_cell_contents) (GtkCList *clist,
GtkCListRow *clist_row,
gint column,
GtkCellType type,
gchar * text,
const gchar *text,
guint8 spacing,
GdkPixmap * pixmap,
GdkBitmap * mask);
GdkPixmap *pixmap,
GdkBitmap *mask);
gint scrollbar_spacing;
};
@ -353,203 +353,216 @@ struct _GtkCell
GtkType gtk_clist_get_type (void);
/* constructers useful for gtk-- wrappers */
void gtk_clist_construct (GtkCList * clist,
void gtk_clist_construct (GtkCList *clist,
gint columns,
gchar * titles[]);
gchar *titles[]);
/* create a new GtkCList */
GtkWidget *gtk_clist_new (gint columns);
GtkWidget *gtk_clist_new_with_titles (gint columns,
gchar * titles[]);
gchar *titles[]);
/* set the border style of the clist */
void gtk_clist_set_border (GtkCList * clist,
void gtk_clist_set_border (GtkCList *clist,
GtkShadowType border);
/* set the clist's selection mode */
void gtk_clist_set_selection_mode (GtkCList * clist,
void gtk_clist_set_selection_mode (GtkCList *clist,
GtkSelectionMode mode);
/* set policy on the scrollbar, to either show them all the time
* or show them only when they are needed, ie., when there is more than one page
* of information */
void gtk_clist_set_policy (GtkCList * clist,
* of information
*/
void gtk_clist_set_policy (GtkCList *clist,
GtkPolicyType vscrollbar_policy,
GtkPolicyType hscrollbar_policy);
/* freeze all visual updates of the list, and then thaw the list after you have made
* a number of changes and the updates wil occure in a more efficent mannor than if
* you made them on a unfrozen list */
void gtk_clist_freeze (GtkCList * clist);
void gtk_clist_thaw (GtkCList * clist);
* you made them on a unfrozen list
*/
void gtk_clist_freeze (GtkCList *clist);
void gtk_clist_thaw (GtkCList *clist);
/* show and hide the column title buttons */
void gtk_clist_column_titles_show (GtkCList * clist);
void gtk_clist_column_titles_hide (GtkCList * clist);
void gtk_clist_column_titles_show (GtkCList *clist);
void gtk_clist_column_titles_hide (GtkCList *clist);
/* set the column title to be a active title (responds to button presses,
* prelights, and grabs keyboard focus), or passive where it acts as just
* a title */
void gtk_clist_column_title_active (GtkCList * clist,
* a title
*/
void gtk_clist_column_title_active (GtkCList *clist,
gint column);
void gtk_clist_column_title_passive (GtkCList * clist,
void gtk_clist_column_title_passive (GtkCList *clist,
gint column);
void gtk_clist_column_titles_active (GtkCList * clist);
void gtk_clist_column_titles_passive (GtkCList * clist);
void gtk_clist_column_titles_active (GtkCList *clist);
void gtk_clist_column_titles_passive (GtkCList *clist);
/* set the title in the column title button */
void gtk_clist_set_column_title (GtkCList * clist,
void gtk_clist_set_column_title (GtkCList *clist,
gint column,
gchar * title);
const gchar *title);
/* set a widget instead of a title for the column title button */
void gtk_clist_set_column_widget (GtkCList * clist,
void gtk_clist_set_column_widget (GtkCList *clist,
gint column,
GtkWidget * widget);
GtkWidget *widget);
/* set the justification on a column */
void gtk_clist_set_column_justification (GtkCList * clist,
void gtk_clist_set_column_justification (GtkCList *clist,
gint column,
GtkJustification justification);
/* set the pixel width of a column; this is a necessary step in
* creating a CList because otherwise the column width is chozen from
* the width of the column title, which will never be right */
void gtk_clist_set_column_width (GtkCList * clist,
* the width of the column title, which will never be right
*/
void gtk_clist_set_column_width (GtkCList *clist,
gint column,
gint width);
/* change the height of the rows, the default is the hight of the current
* font */
void gtk_clist_set_row_height (GtkCList * clist,
/* change the height of the rows, the default is the hight
* of the current font
*/
void gtk_clist_set_row_height (GtkCList *clist,
gint height);
/* scroll the viewing area of the list to the given column
* and row; row_align and col_align are between 0-1 representing the
* location the row should appear on the screnn, 0.0 being top or left,
* 1.0 being bottom or right; if row or column is -1 then then there
* is no change */
void gtk_clist_moveto (GtkCList * clist,
* is no change
*/
void gtk_clist_moveto (GtkCList *clist,
gint row,
gint column,
gfloat row_align,
gfloat col_align);
/* returns whether the row is visible */
GtkVisibility gtk_clist_row_is_visible (GtkCList * clist,
GtkVisibility gtk_clist_row_is_visible (GtkCList *clist,
gint row);
/* returns the cell type */
GtkCellType gtk_clist_get_cell_type (GtkCList * clist,
GtkCellType gtk_clist_get_cell_type (GtkCList *clist,
gint row,
gint column);
/* sets a given cell's text, replacing it's current contents */
void gtk_clist_set_text (GtkCList * clist,
void gtk_clist_set_text (GtkCList *clist,
gint row,
gint column,
gchar * text);
const gchar *text);
/* for the "get" functions, any of the return pointer can be
* NULL if you are not interested */
gint gtk_clist_get_text (GtkCList * clist,
* NULL if you are not interested
*/
gint gtk_clist_get_text (GtkCList *clist,
gint row,
gint column,
gchar ** text);
gchar **text);
/* sets a given cell's pixmap, replacing it's current contents */
void gtk_clist_set_pixmap (GtkCList * clist,
void gtk_clist_set_pixmap (GtkCList *clist,
gint row,
gint column,
GdkPixmap * pixmap,
GdkBitmap * mask);
GdkPixmap *pixmap,
GdkBitmap *mask);
gint gtk_clist_get_pixmap (GtkCList * clist,
gint gtk_clist_get_pixmap (GtkCList *clist,
gint row,
gint column,
GdkPixmap ** pixmap,
GdkBitmap ** mask);
GdkPixmap **pixmap,
GdkBitmap **mask);
/* sets a given cell's pixmap and text, replacing it's current contents */
void gtk_clist_set_pixtext (GtkCList * clist,
void gtk_clist_set_pixtext (GtkCList *clist,
gint row,
gint column,
gchar * text,
const gchar *text,
guint8 spacing,
GdkPixmap * pixmap,
GdkBitmap * mask);
GdkPixmap *pixmap,
GdkBitmap *mask);
gint gtk_clist_get_pixtext (GtkCList * clist,
gint gtk_clist_get_pixtext (GtkCList *clist,
gint row,
gint column,
gchar ** text,
guint8 * spacing,
GdkPixmap ** pixmap,
GdkBitmap ** mask);
gchar **text,
guint8 *spacing,
GdkPixmap **pixmap,
GdkBitmap **mask);
/* sets the foreground color of a row, the colar must already
* be allocated */
void gtk_clist_set_foreground (GtkCList * clist,
* be allocated
*/
void gtk_clist_set_foreground (GtkCList *clist,
gint row,
GdkColor * color);
GdkColor *color);
/* sets the background color of a row, the colar must already
* be allocated */
void gtk_clist_set_background (GtkCList * clist,
* be allocated
*/
void gtk_clist_set_background (GtkCList *clist,
gint row,
GdkColor * color);
GdkColor *color);
/* this sets a horizontal and vertical shift for drawing
* the contents of a cell; it can be positive or negitive; this is
* partuculary useful for indenting items in a column */
void gtk_clist_set_shift (GtkCList * clist,
* particulary useful for indenting items in a column
*/
void gtk_clist_set_shift (GtkCList *clist,
gint row,
gint column,
gint vertical,
gint horizontal);
/* append returns the index of the row you just added, making
* it easier to append and modify a row */
gint gtk_clist_append (GtkCList * clist,
gchar * text[]);
* it easier to append and modify a row
*/
gint gtk_clist_append (GtkCList *clist,
gchar *text[]);
/* inserts a row at index row and returns the row where it was actually
inserted (may be different from "row" in auto_sort mode) */
gint gtk_clist_insert (GtkCList * clist,
* inserted (may be different from "row" in auto_sort mode)
*/
gint gtk_clist_insert (GtkCList *clist,
gint row,
gchar * text[]);
gchar *text[]);
/* removes row at index row */
void gtk_clist_remove (GtkCList * clist,
void gtk_clist_remove (GtkCList *clist,
gint row);
/* sets a arbitrary data pointer for a given row */
void gtk_clist_set_row_data (GtkCList * clist,
void gtk_clist_set_row_data (GtkCList *clist,
gint row,
gpointer data);
/* sets a data pointer for a given row with destroy notification */
void gtk_clist_set_row_data_full (GtkCList * clist,
void gtk_clist_set_row_data_full (GtkCList *clist,
gint row,
gpointer data,
GtkDestroyNotify destroy);
/* returns the data set for a row */
gpointer gtk_clist_get_row_data (GtkCList * clist,
gpointer gtk_clist_get_row_data (GtkCList *clist,
gint row);
/* givin a data pointer, find the first (and hopefully only!)
* row that points to that data, or -1 if none do */
gint gtk_clist_find_row_from_data (GtkCList * clist,
* row that points to that data, or -1 if none do
*/
gint gtk_clist_find_row_from_data (GtkCList *clist,
gpointer data);
/* force selection of a row */
void gtk_clist_select_row (GtkCList * clist,
void gtk_clist_select_row (GtkCList *clist,
gint row,
gint column);
/* force unselection of a row */
void gtk_clist_unselect_row (GtkCList * clist,
void gtk_clist_unselect_row (GtkCList *clist,
gint row,
gint column);
@ -557,15 +570,16 @@ void gtk_clist_unselect_row (GtkCList * clist,
void gtk_clist_undo_selection (GtkCList *clist);
/* clear the entire list -- this is much faster than removing each item
* with gtk_clist_remove */
void gtk_clist_clear (GtkCList * clist);
* with gtk_clist_remove
*/
void gtk_clist_clear (GtkCList *clist);
/* return the row column corresponding to the x and y coordinates */
gint gtk_clist_get_selection_info (GtkCList * clist,
gint gtk_clist_get_selection_info (GtkCList *clist,
gint x,
gint y,
gint * row,
gint * column);
gint *row,
gint *column);
/* in multiple or extended mode, select all rows */
void gtk_clist_select_all (GtkCList *clist);
@ -574,7 +588,9 @@ void gtk_clist_select_all (GtkCList *clist);
void gtk_clist_unselect_all (GtkCList *clist);
/* swap the position of two rows */
void gtk_clist_swap_rows (GtkCList * clist, gint row1, gint row2);
void gtk_clist_swap_rows (GtkCList *clist,
gint row1,
gint row2);
/* sets a compare function different to the default */
void gtk_clist_set_compare_func (GtkCList *clist,

View File

@ -74,13 +74,13 @@ static void set_cell_contents (GtkCList *clist,
GtkCListRow *clist_row,
gint column,
GtkCellType type,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap,
GdkBitmap *mask);
static void set_node_info (GtkCTree *ctree,
GtkCTreeNode *node,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap_closed,
GdkBitmap *mask_closed,
@ -3018,14 +3018,14 @@ real_tree_collapse (GtkCTree *ctree,
}
static void
set_cell_contents (GtkCList * clist,
GtkCListRow * clist_row,
set_cell_contents (GtkCList *clist,
GtkCListRow *clist_row,
gint column,
GtkCellType type,
gchar * text,
const gchar *text,
guint8 spacing,
GdkPixmap * pixmap,
GdkBitmap * mask)
GdkPixmap *pixmap,
GdkBitmap *mask)
{
GtkCTree *ctree;
@ -3133,7 +3133,7 @@ set_cell_contents (GtkCList * clist,
static void
set_node_info (GtkCTree *ctree,
GtkCTreeNode *node,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap_closed,
GdkBitmap *mask_closed,
@ -3803,7 +3803,7 @@ gtk_ctree_insert_node (GtkCTree *ctree,
GTK_CLIST_CLASS_FW (clist)->set_cell_contents
(clist, &(new_row->row), i, GTK_CELL_TEXT, text[i], 0, NULL, NULL);
set_node_info (ctree, node, text[ctree->tree_column], spacing, pixmap_closed,
set_node_info (ctree, node, text ? text[ctree->tree_column] : NULL, spacing, pixmap_closed,
mask_closed, pixmap_opened, mask_opened, is_leaf, expanded);
/* sorted insertion */
@ -4641,7 +4641,7 @@ void
gtk_ctree_node_set_text (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar *text)
const gchar *text)
{
GtkCList *clist;
@ -4695,7 +4695,7 @@ void
gtk_ctree_node_set_pixtext (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap,
GdkBitmap *mask)
@ -4729,7 +4729,7 @@ gtk_ctree_node_set_pixtext (GtkCTree *ctree,
void
gtk_ctree_set_node_info (GtkCTree *ctree,
GtkCTreeNode *node,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap_closed,
GdkBitmap *mask_closed,
@ -5068,6 +5068,8 @@ gtk_ctree_show_stub (GtkCTree *ctree,
g_return_if_fail (ctree != NULL);
g_return_if_fail (GTK_IS_CTREE (ctree));
show_stub = show_stub != FALSE;
if (show_stub != ctree->show_stub)
{
GtkCList *clist;
@ -5089,10 +5091,12 @@ gtk_ctree_set_reorderable (GtkCTree *ctree,
g_return_if_fail (ctree != NULL);
g_return_if_fail (GTK_IS_CTREE (ctree));
if (ctree->reorderable == (reorderable != 0))
reorderable = reorderable != FALSE;
if (ctree->reorderable == reorderable)
return;
ctree->reorderable = (reorderable != 0);
ctree->reorderable = reorderable;
if (GTK_WIDGET_REALIZED (ctree))
{

View File

@ -293,7 +293,7 @@ void gtk_ctree_real_select_recursive (GtkCTree *ctree,
void gtk_ctree_node_set_text (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar *text);
const gchar *text);
void gtk_ctree_node_set_pixmap (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
@ -302,13 +302,13 @@ void gtk_ctree_node_set_pixmap (GtkCTree *ctree,
void gtk_ctree_node_set_pixtext (GtkCTree *ctree,
GtkCTreeNode *node,
gint column,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap,
GdkBitmap *mask);
void gtk_ctree_set_node_info (GtkCTree *ctree,
GtkCTreeNode *node,
gchar *text,
const gchar *text,
guint8 spacing,
GdkPixmap *pixmap_closed,
GdkBitmap *mask_closed,