OS.g_object_set (textRenderer, OS.xalign, 1f); OS.g_object_set (pixbufRenderer, OS.xalign, 1f);
OS.g_object_set (textRenderer, OS.xalign, 1f, 0); OS.g_object_set (pixbufRenderer, OS.xalign, 1f, 0);
void createRenderers (int columnHandle, int modelIndex, boolean check, int columnStyle) {	OS.gtk_tree_view_column_clear (columnHandle);	if ((style & SWT.CHECK) != 0 && check) {		OS.gtk_tree_view_column_pack_start (columnHandle, checkRenderer, false);		OS.gtk_tree_view_column_add_attribute (columnHandle, checkRenderer, "active", CHECKED_COLUMN);				/*		* Feature in GTK. The inconsistent property only exists in GTK 2.2.x.		*/		if (OS.gtk_major_version () >= 2 || (OS.gtk_major_version () == 2 && OS.gtk_minor_version () >= 2)) {			OS.gtk_tree_view_column_add_attribute (columnHandle, checkRenderer, "inconsistent", GRAYED_COLUMN);		}	}	int pixbufRenderer = OS.gtk_cell_renderer_pixbuf_new ();	if (pixbufRenderer == 0) error (SWT.ERROR_NO_HANDLES);	int textRenderer = OS.gtk_cell_renderer_text_new ();	if (textRenderer == 0) error (SWT.ERROR_NO_HANDLES);		/*	* Feature on GTK.  When a tree view column contains only one activatable	* cell renderer such as a toggle renderer, mouse clicks anywhere in a cell	* activate that renderer. The workaround is to set a second  cell renderer	* to be activatable.	*/	if ((style & SWT.CHECK) != 0 && check) {		OS.g_object_set (pixbufRenderer, OS.mode, OS.GTK_CELL_RENDERER_MODE_ACTIVATABLE);	}	/* Set alignment */	if ((columnStyle & SWT.RIGHT) != 0) {		OS.g_object_set (textRenderer, OS.xalign, 1f);		OS.g_object_set (pixbufRenderer, OS.xalign, 1f);		OS.gtk_tree_view_column_pack_start (columnHandle, pixbufRenderer, true);		OS.gtk_tree_view_column_pack_start (columnHandle, textRenderer, false);		OS.gtk_tree_view_column_set_alignment (columnHandle, 1f);	} else if ((columnStyle & SWT.CENTER) != 0) {		OS.g_object_set (pixbufRenderer, OS.xalign, 1f);		OS.gtk_tree_view_column_pack_start (columnHandle, pixbufRenderer, true);		OS.gtk_tree_view_column_pack_end (columnHandle, textRenderer, true);		OS.gtk_tree_view_column_set_alignment (columnHandle, 0.5f);	} else {		OS.gtk_tree_view_column_pack_start (columnHandle, pixbufRenderer, false);		OS.gtk_tree_view_column_pack_start (columnHandle, textRenderer, true);		OS.gtk_tree_view_column_set_alignment (columnHandle, 0f);	}	/* Add attributes */	OS.gtk_tree_view_column_add_attribute (columnHandle, pixbufRenderer, "pixbuf", modelIndex);	OS.gtk_tree_view_column_add_attribute (columnHandle, textRenderer, "text", modelIndex + 1);	OS.gtk_tree_view_column_add_attribute (columnHandle, textRenderer, "foreground-gdk", FOREGROUND_COLUMN);	OS.gtk_tree_view_column_add_attribute (columnHandle, textRenderer, "background-gdk", BACKGROUND_COLUMN);}